Programming an Atmel AVR (AtTiny45 or AtTiny85 ) microcontroller can be achieved using a custom programmer or you can use an existing one. In my case, I have a Sparkfun Tiny AVR Programmer
Just to remember, here is the ATTINY pinout
Your Windows will identify corectly the board after drivers install. Download and install the drivers from
https://cdn.sparkfun.com/datasheets/Dev/AVR/usbtinyisp_libusb_1.2.6.0.zip
To add ATtiny’s to the standard Arduino IDE Board menu, you’ll need to add a few files that help define the hardware. The ATtiny hardware definitions are kept in a repository on GitHub.
Add aditional board URL
https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json
In arduino IDE make the following:
- select board Attiny25/45/85
- processor ATtiny85
- clock 1MHz
- programmer USBtinyISP
Compile and upload sketch!
Datasheet attiny25-attiny45-attiny8
Sources:
https://learn.sparkfun.com/tutorials/tiny-avr-programmer-hookup-guide/
https://github.com/sparkfun/Tiny-AVR-Programmer