In this tutorial/walk-through we will look at how to get started with using the Digispark ATtiny85 break out board with the Arduino IDE.
First thing we need to do is to add the board type to the Arduino IDe as by default the IDE does not include the definitions for the Digispark. To do this we first open up the Arduino IDE, then click on “File” – “Preferences” from the top menu. Where it has “Additional Boards Manager URLs” click on the icon next to the text entry box . This will open up a multi line text entry box.
On a new line copy and paste the following line:
Click OK to close the Additional Boards Manager box. Click OK again to close the preferences page.
Now we go to the boards manager and download the Digispark boards. We do this by Clicking “Tools” – “Board:xxxxx” – “Boards Manager…” from the top menu.
When the “Boards Manager” opens up, search for “digistump” in the search box as shown below:
Click the “Install” button next to the “Digistump AVR Boards by Digistump” to install these boards. Wait a little bit while the boards download and then click “Close” to return back to the editing screen.
If using Arduino 1.6.6 or higher and windows – you will need to download and install the drivers manually. Download, unzip and run “Install Drivers” (on 32bit systems) or “DPInst64” (on 64bit systems). If you get stuck, try following the steps shown in this YouTube video. The driver files are located here
Open up a command line terminal and enter the follow command:
sudo apt-get install lib32stdc++6
Close the Arduino IDE and open it up again.
No we will select the Digistump board from the boards menu by Clicking “Tools” – “Board:xxxxx” – Scroll down and select “Digispark (Default-16.5Mhz)”. Now we can use the Arduino IDE to program the Digispark boards.