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

Arduino IDE on Raspberry Pi

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

Do not install Arduino IDE from Raspberry repository:

sudo apt install arduino

Go to official Arduino website and download Linux ARM 32 bits version, extract all files (e.g. ‘Extract here option’) from File Manager.

Start terminal and go to directory where you’ve just unpacked Arduino IDE files:

# in my case (as of Feb 2020 and default user name):
cd /home/pi/Downloads/arduino-1.8.12
sudo ./install.sh

Arduino IDE will be installed into /home/pi/.arduino15 directory. You can check it:

ls -la /home/pi

 

Raspberry Pi 4 goes 64-bit

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

I’ve missed great news about ‘booting pi 4 from USB’ (Sep 2020).

sudo raspi-config

About installation Raspberry OS is here Buster 64-bit. I have installed and running, I need so far:

Not tested: i2c node.js modules

Raspberry Pi 4 under 64-bit 'Buster'


List Of Posts in ATTiny 85

Yandex.Metrica