How to program Attiny85






Matrials
-Arduino
-Attiny85
-Wires
-Arduino IDE software


Attiny is a micro processor and it can do what normal Arduino can do, but much smaller. Attiny has eight pins, reset, Analogput 1 ~3(also can be used as an digital input). 2 more Io that can be used to send PWM signal.






To program Attiny you will need an older version of the Arduino IDE (1.0.5), and then you have to download the Attiny library from this link(https://github.com/damellis/attiny/archive/ide-1.0.x.zip) add the unzipped library to the hardware folder in the main Arduino folder. After you have done that you will see bunch of board lists that means that you have completed with the libraries. Now you will connect your Arduino to your computer and Go to files and add ArduinoISP from the example. You don't want to change any thing on the ISP file just upload it to your Arduino.

Now we can connect our Attiny to Arduino.

This is how the Arduino and the Attiny should be connected.



Pin 13 -> io 2
Pin 12 -> io 1
Pin 11 -> io 0
Pin 10 -> Reset
5V -> Vcc
GND -> Ground


Chooses board to Attiny85 8MHz and change the programmer to "Arduino as ISP"
Now you can upload Arduino codes on to Attiny.

Here is a quick Demo video




Comments

Popular posts from this blog

How to make a very simple crystal radio

Turn your Pi into Retro Gaming Console!!!

Broken Jump rope counter