Coder Social home page Coder Social logo

attiny's Introduction

attiny

ATtiny microcontroller support for the Arduino IDE

The AtTiny?5 microcontroller is an 8 pin AVR microcontroller, with different amounts of memory depending on the model. The AtTyiny?4 is a 14 pin chip. All these chips can be programmed using the Arduino IDE, using this package.

Installing AtTiny support for Arduino

In your Arduino ID, install AtTiny support. Paste the following URL as a new line in the following text box to tell the IDE there's a new source for board configurations:

Menu: File -> Preferences -> Settings -> Additional Boards Manager URLs:

https://raw.githubusercontent.com/sonyhome/attiny/master/package_damellis_attiny_index.json

Now go to the boards manager to fetch and install AtTiny support.

Menu: Tools/Board/Boards Manager...

Scroll until you find the AtTiny support, and click the install button.

Wiring the AtTiny

To program the chip, you will need a separate Arduino board with an USB board that you can program. The Arduino UNO is the ideal choice. You will need one capacitor, and wire 4 data pins plus 5V power and ground to the microcontroller. A breadboard is a good way to do so.

look up the ArduinoISP wiring diagram.

For example: http://highlowtech.org/?p=1695

Programming the AtTiny

Fist, program your board to be an ISP.

Menu: File -> Examples -> 11.ArduinoISP Compile this for your board.

Second: Install a capacitor between the board's reset pin and ground to prevent it from reseting. Also make sure your AtTiny is wired properly to your board.

Third: Select the AtTiny board and frequency at which you want it to run. Beware that if you pick External Clock, the Attiny will not work unless you wire it with an external crystal. For testing, stick with an internal clock (8 or 16MHz).

Change the programmer from AVRISP mkII to ArduinoISP.

Upload the code ( -> icon).

attiny's People

Contributors

carlosefr avatar cmaglie avatar damellis avatar giermann avatar per1234 avatar sonyhome avatar soundstorm avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.