digispark:tutorials:connecting [Digistump Wiki] (2022)

Table of Contents

  • Connecting and Programming Your Digispark

    • Bootloader:

    • Software:

  • Installation Instructions:

      • Linux Install

      • Sources

    • Using the Digispark with the Arduino IDE:

    • Your first upload:

    • Digispark Differences and Using Arduino/Processing with the Digispark:

    • Precautions:

    • Troubleshooting:

      (Video) How To Program A Digispark (ATTINY85) Includes Download Link!


The bootloader is the code that is pre-programmed on your Digispark and allows it to act as a USB device so that it can be programmed by the Arduino IDE.

The Digispark runs the “micronucleus tiny85” bootloader version 1.02, an open source project: https://github.com/micronucleus/micronucleus originally written by Bluebie: https://github.com/Bluebie.

CAUTION We are not at this point supporting upgrading the firmware, so if you decide to, you do so entirely at your own risk.


The Digispark uses the Arduino IDE 1.6.5+ (Arduino 1.6.5r2 - NOT 1.6.6 or 1.6.7 strongly recommended)

digispark:tutorials:connecting [Digistump Wiki] (1)

  • In the box labeled “Additional Boards Manager URLs” enter:


and click OK

Note: If you already have additional URLs entered in that box, then click the button on the right of the box and enter this URL on a new line.digispark:tutorials:connecting [Digistump Wiki] (2)

  • Go to the “Tools” menu and then the “Board” submenu - select “Boards Manager” and then from the type drop down select “Contributed”:

  • Select the “Digistump AVR Boards” package and click the “Install” button.

digispark:tutorials:connecting [Digistump Wiki] (3)

  • You'll see the download progress on the bottom bar of the “Boards Manager” window, when complete it will show “Installed” next to that item on the list.

  • WINDOWS USERS: When complete the install with pop up a Driver Install Wizard window, please click “Next” on this Window to install the drivers for Digistump Boards (If you already have them installed, this installer will update them and install any that are missing)

  • With the install complete, close the “Boards Manager” window and select the Digispark from the Tools→Boards menu. “Digispark (Default - 16.5mhz)” is the board that should be selected by all new users.

    (Video) TUTORIAL: Quickly Getting Started ATTINY85 - In 9 Minutes! (Digistump Serial Output)

digispark:tutorials:connecting [Digistump Wiki] (4)

  • The install is now complete! (Linux users see note below)

Linux Install

  • If you haven't before - Install the udev rules found here: Troubleshooting section



Using the Digispark with the Arduino IDE:

The Digispark works a bit differently than some Arduino compatible products. The Digispark programs with a different procedure.

From the Tools menu select Board→Digispark (Default - 16.5Mhz)

(The Tools→Programmer selection does not matter)

Write some code, open your code, or open a Digispark example.

You do not need to plug in your Digispark before invoking upload

Hit the upload button. The bottom status box will now ask you to plug in your Digispark - at this point you need to plug it in - or unplug and replug it.

You'll see the upload progress and then it will immediately run your code on the Digispark.

If you unplug the Digispark and plug it back in or attach it to another power source there will be a delay of 5 seconds before the code you programmed will run. This 5 second delay is the Digispark Pro checking to see if you are trying to program it.

Your first upload:

If you're just getting started try the above procedure with the example you can find by going to File→Examples→Digispark→Start

Here is the code it will load:

// the setup routine runs once when you press reset:void setup() { // initialize the digital pin as an output. pinMode(0, OUTPUT); //LED on Model B pinMode(1, OUTPUT); //LED on Model A }// the loop routine runs over and over again forever:void loop() { digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(1, HIGH); delay(1000); // wait for a second digitalWrite(0, LOW); // turn the LED off by making the voltage LOW digitalWrite(1, LOW); delay(1000); // wait for a second}

This code will blink the BUILTIN LED (on either pin 0 or pin 1 depending on the Digispark model see:Model Identification).

As soon as it has uploaded you should see the LED start to blink!

For some sample code for the basic I/O function see here: Digispark Basics

(Video) Podłączanie i programowanie Digispark Attiny 85 Arduino IDE

Digispark Differences and Using Arduino/Processing with the Digispark:

The Arduino Environment introduction is a great start if you are new to the Arduino IDE: http://arduino.cc/en/Guide/Environment

The Digispark supports all features found in the IDE with the exception of the serial monitor and the burn bootloader functionality.

Many existing libraries will not work with the Digispark:For I2C devices check out the TinyWireM library, which makes it super simple to port an I2C based device library over to use with the Digispark.

Pin outs:

  • All pins can be used as Digital I/O

  • Pin 0 → I2C SDA, PWM (LED on Model B)

  • Pin 1 → PWM (LED on Model A)

  • Pin 2 → I2C SCK, Analog In

  • Pin 3 → Analog In (also used for USB+ when USB is in use)

  • Pin 4 → PWM, Analog (also used for USB- when USB is in use)

  • Pin 5 → Analog In

For a handy pin reference flip over the Digispark - pin capabilities are listed on the back

For some sample code for the basic i/o function see here: Digispark Basics


The Digispark, due to its small size and low cost is not as robust as a full blown Arduino.

When testing a new circuit we recommend that you test it with an external power supply first. Connecting a shorted circuit to the Digispark and connecting it to your computer could damage your computer and/or its USB ports. We take no responsibility for damage to your machine as a result of the use of a Digispark.

We strongly recommend connecting your Digispark through a USB hub which will often limit the damage caused by a short circuit to the usb hub. For the record, we've found many computers have usb fuses built in, and when we blew them on our 27“ Mac monitor, thankfully they reset and everything worked after a power down.

The Digispark does not have short circuit or reverse polarity protection. Connecting power to the Digispark power pins backwards will almost certainly destroy it.

The Digispark is small enough to present a choking hazard and small enough to be inserted into some sockets. We take no responsibility for misuse of the product. Please treat electricity and electronics with respect and common sense.


The Digispark pushes affordable, small components to their limits by using software to emulate USB functions generally served by a dedicated chip. For this reason much of the Digispark's USB operation is considered borderline out of spec. Certain laptops, older machines, and just some cheaply made USB hubs/controllers do not like this. We tested and designed the Digispark for maximum compatibility but we can not guarantee it will work with everything.

In addition remember the Digispark only shows up as a programmable device for 5 seconds, after that it will start running its code (when it is new and un-programmed this means it will blink) and disappear or act like the USB device you programmed it to act like.

Always remember to unplug the Digispark before hitting upload and plug it in when the Arduino IDE requests you to. If you get an error that assertion failed or micronucleus crashed during upload then you probably did not unplug your Digispark before uploading.

(Video) How to use Digispark Attiny85 microcontroller in macos full tutorial (Trust me it works)

If the computer will not recognize the Digispark try the following:

  • Try connecting it to another USB port or system.

  • Try connecting it to the rear ports (if a desktop)

  • Try connecting it to a USB hub.

  • Try a powered USB hub.

  • Try a different cable.

If it won't upload:

Did you set your board AND programmer to Digispark in the Arduino IDE?


  • Did you install the right driver?

  • Try following the steps shown in this video, as it addresses most of the problems encountered during the driver installation on Windows, including needing to run a different installer on 64 bit versions of windows, and how to finish installing the drivers without having to plug and unplug your digispark multiple times.

  • For the example programs if you are getting “Device not found” even after installing the DigiUSB driver in the examples folder then try this: http://digistump.com/board/index.php/topic,257.0.html

  • If Windows does not recognize a “DigiUSB” but a generic “HID-compliant device”/“USB Input Device” pair, go to the Device Manager, find in the “Human Interface Devices” category the USB Input Device with a vendor ID of 0x16C0 and select “update driver” / “browse my computer” / “let me pick from a list” and the DigiUSB should show up there.


  • If the Arduino application works fine but the computer does not recognize the Digispark after you are asked to plug it in - try a usb extension cable or hub, some MacBook's ports are recessed too far for the data connectors to make contact.

  • If the Arduino application won't start (especially an error like: “Arduino” is damaged and can't be opened.) or the upload fails try allowing all unsigned code to be run: See the “How to change Gatekeeper settings to allow or disallow unidentified apps” section on this page: http://www.imore.com/how-open-apps-unidentified-developer-os-x-mountain-lion

  • If you're getting the error above and allowing unidentified apps doesn't fix it try this: http://digistump.com/board/index.php/topic,119.0.html - we are actively working on a fix for this issue.

  • 2012 MBP The USB ports on the 2012 MBPs (Retina and non) cause issues due to their USB3 controllers, currently the best work around is to use a cheap USB hub (non USB3) - we are working on future solutions. The hub on a Cinema display will work as well.

LINUX: See the Linux troubleshooting page

If your upload fails in the middle of it, you may also be using a bad USB cord and or a bad hub.

Support requests are best posted to the forum, so everyone can benefit and we can help each other through any issues - http://digistump.com/board


How do I connect to Digispark Attiny85? ›

How to Setup DigiSprak Attiny85 Board
  1. Step 1: Watch the Video. Mission Critical. ...
  2. Step 2: Gathering the Requirements. ...
  3. Step 3: Understanding the Board. ...
  4. Step 4: Edit Board URL. ...
  5. Step 5: Install DigiStump Board on IDE. ...
  6. Step 6: Install the Drivers. ...
  7. Step 7: Troubleshooting (OPTIONAL) ...
  8. Step 8: Write Test Code.

How do I add code to Digispark? ›

Write some code, open your code, or open a Digispark example. Hit the upload button. The bottom status box will now ask you to plug in your Digispark - at this point you need to plug it in - or unplug and replug it. You'll see the upload progress and then it will immediately run your code on the Digispark.

How do I reset Digispark? ›

Reset Digispark via a signal from another device or via a button. Use ISP programming to upload sketches. Remove bootloader start up delay. Upgrade bootloader.

How do I connect my ATtiny85 to my computer? ›

how to setup Digispark Attiny 85 (tutorial) - YouTube

How do I connect to ATtiny85? ›

Change the pin number there from LED_BUILTIN to 0. Now go back to Tools -> Board and select “Attiny25/45/85”, then select ATtiny85 under Tools > Processor. Now, go ahead and upload the code. If the LED connected to Pin 0 of Attiny85 IC blinks, then the code is uploaded successfully.

How do I program ATtiny with USB? ›

So to program the ATtiny85, we need to first configure Arduino Uno as ISP to act as a programmer for the ATtiny85. For that, connect the Arduino Uno to Laptop and open the Arduino IDE. After that, navigate to File > Example > ArduinoISP and upload the Arduino ISP code.

How do I program an ATtiny85 module? ›

2. Program the ATtiny85 with Arduino
  1. Go into your Arduino IDE under Tools > Board.
  2. Select the option under that says ATtiny25/45/85.
  3. Under Tools, select Processor: ATtiny85 and the Clock: Internal 1 MHz. ...
  4. Change the Programmer setting to USBtinyISP.
  5. When you're ready to upload, plug the ATtiny85 into the dedicated socket.
Nov 18, 2019

What can you do with ATtiny85? ›

The ATtiny85 can be used as a bare chip on a breadboard, as long as you can supply the correct power for the device. But most commonly the ATtiny85 is supplied with a USB interface, either a full USB port such as the DigiStump Digispark or micro USB via a cloned board commonly found on Aliexpress / Banggood etc.

What is Digispark? ›

Digispark is an ATtiny85 based microcontroller development board come with USB interface. Coding is similar to Arduino, and it use the familiar Arduino IDE for development.

What is Digispark bootloader? ›

The bootloader is the code that is pre-programmed on your Digispark and allows it to act as a USB device so that it can be programmed by the Arduino IDE.

How do I use micronucleus bootloader? ›

How to Program Micronucleus Bootloader on ATTiny85 ... - YouTube

How do I use ATtiny reset pin as output? ›

Reprogramming the fuses to use the reset pin as an I/O pin

To program the ATtiny85 I used Sparkfun's Tiny AVR Programmer. To use this with the Arduino IDE install the ATtiny microcontroller support for the Arduino IDE. You now need to reprogram the High Fuses to 0x5f rather than 0xdf, to set the RSTDISBL fuse.

What is Digispark? ›

Digispark is an ATtiny85 based microcontroller development board come with USB interface. Coding is similar to Arduino, and it use the familiar Arduino IDE for development.


1. Programming Digispark and Compatible Boards in Arduino IDE on Linux Mint | Digispark ATtiny85 02
(Starting Electronics)
2. Programming Digispark and Compatible Boards in Arduino IDE on Windows 10 | Digispark ATtiny85 01
(Starting Electronics)
3. Computer Hacking - How to Take Full Control in Seconds with Reverse Shell PART 1: Setup (Beginners)
(Harrison Becker)
4. Programming Digispark Attiny85 to Arduino IDE
(James Steven Dulangon)
5. How to Unlock Android with Digispark Attiny85 USB Rubber Ducky
(AMH Tech SL ©)
6. Steal WiFi Passwords with 1$ USB
(Pear Crew)

Top Articles

Latest Posts

Article information

Author: Sen. Ignacio Ratke

Last Updated: 11/27/2022

Views: 5918

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.