composants:attiny85

ATtiny85

attiny85-pins.jpg

You need an Arduino to act as ISP to flash programs to the ATtiny.

Also, the ATtiny85 runs by default at 1MHz so if you want it to run at 8MHz you need to burn the bootloader into it after having selected the appropriate frequency.

Note : Arduino in the past did not support ATtiny by default and additional libs had to be provided.

Sooner or later this might not be the case anymore.

The Arduino UNO should be flashed with the ISP program : File > Examples > ArduinoISP

programming-attiny85.jpg

Note : The SCK, MISO and MOSI pins can be directly wired to the Arduino's ICSP/SPI header pins. There is a 10μF electrolytic capacitor between RESET and GND (anode in GND) to avoid being auto-reset when we flash programs to the ATtiny

Set Arduino to ISP, usually located in the IDE in Tools > Programmer > Arduino as ISP

You can add Heartbeat, Error, Programming LEDs (choose your colors) respectively on 9, 8, 7.

  • composants/attiny85.txt
  • Last modified: 2020/06/01 16:35
  • by 127.0.0.1