Tuesday, February 4, 2014

ATTINY85 MCU

Received two ATTINY85 chips in the mail today.  Did a little internet research and found an easy way to program this type of chip with the Arduino IDE 1.05 and an UNO.


First download this archive, https://github.com/damellis/attiny/archive/master.zip
If there already isn't a hardware folder in the sketches folder, create it and then copy the attiny folder to the hardware folder.

Wire the UNO to the attiny85 on a breadboard with the following connections, or just build a mini shield to fit the UNO.
Attiny85 to Arduino Uno wirinG

Updated schematic with LEDs and ICSP connector

I put the 3 LEDs on a breadboard and jumpered them to the attiny shield.  The LEDs worked like they should, and did not interfere with the programming.  The next thing to check is ICSP programming


Attiny Pinout Reference

I created a mini shield to make it easier to program the ATTINY85 chip.  I used the above listed connections, couple of headers and a small perfboard.
 




Pix of the Arduino IDE for programming the Attiny



First load this sketch on the UNO

Then select the Attiny board type to be programmed


Select the Programmer type


Load a sketch.  You might see this error, but this particular error is not a problem.


Sketch load success, 2 leds set to blink



Sketch load success, 2 leds set to blink




Links to aid in programming Attiny

http://www.arvydas.co.uk/2012/09/using-usbtinyisp-to-program-attiny45-and-attiny85/
http://provideyourown.com/2011/arduino-program-attiny/
http://code.google.com/p/arduino-tiny/
http://highlowtech.org/?p=1695



No comments:

Post a Comment