This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
hardware:attiny85 [2021/04/12 04:22] nanodano created |
hardware:attiny85 [2021/04/13 02:01] (current) nanodano |
||
---|---|---|---|
Line 4: | Line 4: | ||
* Official product page: [[https:// | * Official product page: [[https:// | ||
+ | |||
===== Wiring/ | ===== Wiring/ | ||
SparkFun has a nice pinout diagram: https:// | SparkFun has a nice pinout diagram: https:// | ||
+ | |||
+ | SparkFun also has a nice one-page PDF reference guide for ATtiny85: [[https:// | ||
< | < | ||
Line 14: | Line 17: | ||
| | ||
- | | + | |
- | | + | |
- | | + | |
</ | </ | ||
Line 22: | Line 25: | ||
===== Programming ===== | ===== Programming ===== | ||
- | Use an Arduino as ISP to program | + | Since the ATtiny85 has no USB plug for serial over USB, you can use an Arduino |
+ | |||
+ | * Nice YouTube video by Mitch Davis on programming Attiny85 [[https:// | ||
+ | |||
+ | Wire up the Arduino UNO to the ATtiny85 over GPIO pins. | ||
+ | Also add a 10uF capacitor between RESET and GND in the Uno (anode to ground) to prevent the upload causing the board to reboot. | ||
+ | |||
+ | < | ||
+ | Uno: | ||
+ | =======: | ||
+ | | ||
+ | GND:GND | ||
+ | Pin 13:Pin 7 (SCK) | ||
+ | Pin 12:Pin 6 (MISO) | ||
+ | Pin 11:Pin 5 (MOSI) | ||
+ | Pin 10:RESET | ||
+ | </ | ||
+ | |||
+ | The MISO, MOSI, and SCK pings are used for SPI communication. | ||
+ | |||
+ | In the Arduino IDE, set the target board as the ATtiny85 1MHz speed. And select for the Programmer: Arduino as ISP. If you need to add the board, add this URL to your board manager: [[https:// |