How to program ATtiny's with Arduino UNO:
In Arduino 1.6.5 or above, you can install the ATtiny support using the built-in board's manager. Open the preferences dialog in the Arduino software.Find the “Additional Boards Manager URLs” field near the bottom of the dialog.
Works best with the Arduino 1.6.5 IDE or above. As programming can accommodate different types:
I just tried Arduino 1.8.1 and it works fine.
I am planning to make a video, but for now look at this one as it contains a little programming with this programmer. Cut and paste this link into your browser.
https://vimeo.com/204130614
Open the preferences dialog in the Arduino software.
Find the “Additional Boards Manager URLs” field near the bottom of the dialog.
Paste the below URL into the "Additional Boards Manager URLs:" field (use a comma to separate it from any URLs you’ve already added):
**********************************************************************
https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json
***********************************************************************
Click the OK button to save your updated preferences.
Connect wires from the Arduino to the ATtiny 85 chip to a breadboard as seen in the picture.
Or use my programmer. Simply clip it onto the Arduino Board and insert a chip or another surface mount board as shown in my pictures.
For safe purchases via PayPal email me.
$AUS 12.50 or make payment to the below email address.
FREE POSTAGE within Australia
International $5
Or check out my last Instructable "Where to buy" page if they are on eBay!
Change the pin numbers you want to use.
You have 0 to 4 available.
or use this sketch
Change the
Make sure you choose the 8MHz (internal oscillator) as there is no external oscillator connected.
Yes click the burn Bootloader to change the new chip from 1 MHz to 8 MHz.
Did you make changes to the Blink sketch?
The Tiny has only 5 usable pins. The Pin 1 is not used as it is the reset pin.
Do not confuse the pins on the chip 1 to 8 with the programming PB numbers.
Hold down the Shift key. Then you see a change in the top display when idling over the upload button.
Hold the Shift key (on PC) and click "upload to programmer" to upload the sketch. Then release the shift key.
Wait a few seconds for the sketch to upload.
I added photos for you if LED's to test the board directly are required.
And if things still don't work?
If you only have an Arduino Mega Board. the wiring is different as shown in the ArduinoISP sketch
What commands are supported:
The following Arduino commands should be supported:
Supported Libraries
A USBASP programmer allows you to program Tiny and also install new bootloaders and firmware on common AVR microcontrollers, such as those used in Arduino-compatible boards.
Instructions can be found here.
http://www.freetronics.com.au/pages/usbasp-icsp-programmer-quickstart-guide#.WJuX1jt95hE
This programmer is also described in Silicon Chip January 2017 edition to program an ATiny.
There they describe how to make your own cable.
A better way is to purchase a programmer for just over a dollar on eBay that works fine. Only do not solder all supplied 8 pins to the board. Only solder 3 rows at the top as shown in the picture.
Then you can connect the USBASP programmer to this programmer board. As those are sold as programmers but I never got them working as a programmer via USB.
(What inspired me to write this "the simple way" Instructables on "how to".
A complicated more expensive unnecessary way for the Tiny.
But very useful for new boot loading ATmega AVR chips.
Note that ones you program in this way you have to do it all the time.
The USB method will no longer work until you burn the bootloader again. And then without uploading a sketch change from the programmer to USB and upload a sketch the normal way with your PC.
I hope this is helpful to you.
Where to buy:
I have a current listing on eBay for the programmer.
http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&item=201793932921#ht_500wt_1212