Arduino IDE + ATtiny 85 on Raspberry Pi

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

First, we need to install loader for ATtiny 85. If you have GIT installed on your system, just ignore first command.

sudo apt install git [IF YOU DO NOT HAVE IT INSTALLED ALREADY]
git clone https://github.com/micronucleus/micronucleus
cd micronucleus/commandline/

sudo apt install libusb-dev
make CONFIG=t85_default
sudo cp micronucleus /usr/local/bin

The system does not see the new (DigiSpark) device:

$lsusb
Bus 002 Device 002: ID 090c:1000 Flash Drive
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

To fix this, we need to copy the file provided and refresh the UDEV rules:

sudo cp 49-micronucleus.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules

Ok, Raspberry recognized connected device:

$lsusb
Bus 002 Device 002: ID 090c:1000 Flash Drive
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 004: ID 16d0:0753 MCS Digistump DigiSpark
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Additional Boards Manager URL:

  • DOES NOT WORK: http://digistump.com/package_digistump_index.json could not find micronucleus
  • USE THIS: https://bittit.info/package_rpi_digispark_index.json

REMEMBER: to load a new sketch you must unplug DigiSpark

Resources:

  1. http://digistump.com/wiki/digispark/tutorials/connecting
  2. https://forum.arduino.cc/index.php?topic=461404.0
  3. https://github.com/micronucleus
Yandex.Metrica