Attiny85 e' un MCU in un solo chip, programmabile con Arduino IDE con una scheda Arduino Uno.

Link utili[modifica]


The high-performance, low-power Atmel 8-bit AVR RISC-based microcontroller combines 8KB ISP flash memory, 512B EEPROM, 512-Byte SRAM, 6 general purpose I/O lines, 32 general purpose working registers, one 8-bit timer/counter with compare modes, one 8-bit high speed timer/counter, USI, internal and external Interrupts, 4-channel 10-bit A/D converter, programmable watchdog timer with internal oscillator, three software selectable power saving modes, and debugWIRE for on-chip debugging. The device achieves a throughput of 20 MIPS at 20 MHz and operates between 2.7-5.5 volts.

By executing powerful instructions in a single clock cycle, the device achieves throughputs approaching 1 MIPS per MHz, balancing power consumption and processing speed.


Nelle nuove versioni della Arduino IDE e' possibile installare il supporto per questi MC tramite il board manager: aggiungere alla lista dei sorgenti ( ).


Per utilizzare la versione Digispark (montata su una piccola scheda che fa da adattatore USB):

Per poter caricare gli sketch da utente si dovra' aggiungere la seguente regola per udev: /etc/udev/rules.d/49-micronucleus.rules

  2. # UDEV Rules for Micronucleus boards including the Digispark.
  3. # This file must be placed at:
  4. #
  5. # /etc/udev/rules.d/49-micronucleus.rules (preferred location)
  6. # or
  7. # /lib/udev/rules.d/49-micronucleus.rules (req'd on some broken systems)
  8. #
  9. # After this file is copied, physically unplug and reconnect the board.
  10. #
  11. SUBSYSTEMS=="usb", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666"
  12. KERNEL=="ttyACM*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
  13. #
  14. # If you share your linux system with other users, or just don't like the
  15. # idea of write permission for everybody, you can replace MODE:="0666" with
  16. # OWNER:="yourusername" to create the device owned by you, or with
  17. # GROUP:="somegroupname" and mange access using standard unix groups.

E poi ricaricare le regole: udevadm control --reload-rules

Nota: senza le regole di UDEV che danno scrittura a tutti per il device solo root (che potrebbe lanciare arduino ide) puo' scrivere sul device.


Il LED onboard e' sul pin 1 oppure lo 0