How to Program Attiny Using Arduino Uno
Intro: How to Program Attiny Using Arduino Uno
I just wanted to make a small arduino for my few projects because buying a arduino for every project will be too expensive for a 15 yrs old guy !!!!!
STEP 1: Things You Need
arduino IDE
attiny files on ur arduino IDE
You can download the files given below and move the files in hardware
1- arduino uno
1- attiny 45 or 85
1- breadboard
few jumper wires
1- 10 uf capacitor
Optional (if you u want it permanent )
1- perfboard
1- 1 led any colour that u like
1- 220 ohms resistor
and some pin headers
attiny files on ur arduino IDE
You can download the files given below and move the files in hardware
1- arduino uno
1- attiny 45 or 85
1- breadboard
few jumper wires
1- 10 uf capacitor
Optional (if you u want it permanent )
1- perfboard
1- 1 led any colour that u like
1- 220 ohms resistor
and some pin headers
STEP 2: Lets Get Starded
Open the arduino IDE
and open the arduino isp sketch from the examples and upload it on your uno Note(don't connect anything to arduino while uploading the isp sketch).
and open the arduino isp sketch from the examples and upload it on your uno Note(don't connect anything to arduino while uploading the isp sketch).
STEP 3: Step 3:- Connecting It With Attiny
Unplug ur uno from the computer and connect it with attiny as shown in the picture below after wiring it then connect the 10uf capacitor the + wire to the reset pin and the - wire to gnd pin after wiring it connect it with usb
Here are the pinout
attiny pin 1- arduino pin 10
attiny pin 5- arduino pin 11
attiny pin 6- arduino pin 12
attiny pin 7- arduino pin 13
attiny pin 4- gnd
attiny pin 8- 5v
TA ADA!!!!!!!! now u can program attiny
UPDATE: Here is the schematic of the attiny programmer with the led and capacitor , there is also a pcb view of the shield
Here are the pinout
attiny pin 1- arduino pin 10
attiny pin 5- arduino pin 11
attiny pin 6- arduino pin 12
attiny pin 7- arduino pin 13
attiny pin 4- gnd
attiny pin 8- 5v
TA ADA!!!!!!!! now u can program attiny
UPDATE: Here is the schematic of the attiny programmer with the led and capacitor , there is also a pcb view of the shield
STEP 4: Making the Circuit Permanent
I made the circuit because i need to program more attiny's so it would be consume time for making the circuit again and again
here are some photos of the shield I hav also added a led in the shield and also check the video
here are some photos of the shield I hav also added a led in the shield and also check the video
29 Comments
dancopy 4 years ago
The ATtiny85 clock is chosen between 8MHz or 1MHz (Arduino Uno's is 16MHz) so let's say I will use ATtiny85 with the 8MHz clock to make a Led Matrix Clock; This clock, however, will not work at half the clock speed, and the Arduino Uno works at 16MHz, thus delaying the clock time? Thanks
dancopy 4 years ago
To load the sketch, it is not necessary to write the bootloader in Attiny?
Sauspin 10 years ago
Jamebonds1 10 years ago
No. Don't bootload ATtiny. It will damages your mircocontroller.
BLR_RAVI 9 years ago
Jamebonds1 4 years ago
Pranavthegreat 10 years ago
nhuber3 7 years ago
I was able to program an ATTiny 85! Thank you.
AshokB25 7 years ago
Hello. Can you please help me to program attiny102 using arduino. Thanks.
LukášM33 8 years ago
very thanks!
majdia1 8 years ago
Thanks for the diy. I saw some boards shield made with a reset switch button, could you tell why and for what it is used??
Pranavthegreat 8 years ago
To reset the code on your attiny
arduinomaster 8 years ago
purchase a shield to save frustration for only 8 bucks
http://arduinomaster.myfreesites.net/attiny-progra...
hann7911 9 years ago
Hi, if i need two digital outputs and four analog I/Os, can ATTINY24 does the job? Do I follow the same instruction as Attiny 45?
Pranavthegreat 9 years ago
dhepguler 9 years ago
Thx for the post... I am messing around with electronics and Arduino for years but never programmed an Attiny before... I had some Attiny45 lying around and wanted to peogram it using your shield... Made the shield according to the scheme and pics... downloaded the Tiny.zip and extracted to Arduino/hardware folder... Uploaded ArduinoISP and plugged the shield while not connected to USB... Later plugged the shielded arduino to usb and opened Blink example, selected Attiny45@8Mhz from board list and tried to upload sketch with no luck... It says:
avrdude: usbdev_open(): did not find any USB device "usb"
Tried the same on my other WinXP pc with a different response something like:
avrdude: attiny45 not present
Any ideas why? double checked my connections...
Pranavthegreat 9 years ago
if the arduino isp was uploaded perfectly then i suppose you should not face any problem and for the error i recommend you to search it on forums because i have never experienced this error before.
jamestav 9 years ago
Nice tutorial! If you want to know how to do this with an Arduino Mega, check out my blog at: http://jamestav.blogspot.com/2014/08/programming-attiny85-microchip-using.html
Fanima Dekoi 10 years ago
Thank You! I use this a LOT.
Pranavthegreat 10 years ago
your board looks better