/digispark_attiny85

Digispark Attiny85: USB rubber ducky killer

Primary LanguageC++MIT LicenseMIT

Digispark ATTiny85(V2)

USB Rubber Ducky kiler

Intro

Digispark ATTiny85(V2) is a microcontroller development board that can be used as USB Rubber Ducky alternative. While USB Rubber Ducky comes around $79.99 (~$80-$130), Digispark ATTiny85 only costs $4-$6 (10x less) making it a good alternative choice. Now the question is why alternative (& not principal)? Because original USB Rubber Ducky looks less suspicious (similar to original pendrive) and memory upto 2GB sdcard (officially), on the other hand Digispark ATTiny85 has a maximum storage of 6012 bytes (~6kb) and also by design it looks a bit suspicious (which can be compensated by a 3D print cover). For getting started and testing (& learning abt) some microcontroller development board, it is the way to go!


Requirements

Initially when I tested the attiny85 board with latest version of ArduinoIDE nothing happened even the board was not detected. After looking through many online tutorials & articles I figured out that most of them were 5-7yrs old using a previous version of IDE with a setting missing in new one.

  • System: Windows 10 (but other systems will work probably, but suguest to use windows for the ease of drivers & setup)
  • Microcontroller Development Board: Digispark ATTiny85(V2) (can buy from here)
  • ArduinoIDE version: 1.6.12 (which can be found here)
  • Drivers: Digistump.Drivers.zip (test with latest version if failed try 1.6.7)

You can find the Drivers & IDE in the zips folder for above recommended verisons


Basic setup & testing

I'm considering you are using same version as I recommended above, but your free to try different versions

setup

  1. Install Digistump Drivers (download from official github releases or from zips folder)
  • driver installation
  1. Open ArduinoIDE > File > Preferences > Additional Board Manager URLs > http://digistump.com/package_digistump_index.json
  • opening preferences
  • setting digistump urls
  1. ArduinoIDE > Tools > Boards: "... > Board Manager... > Search "digi" > Install "Digistump AVR Boards" (in img it shows remove button as it is aleady installed, but for you it will come install button)
  • goto board manager
  • install digistump avr boards
  1. ArduinoIDE > Tools > a. Boards: "... > Select "Digispark (Default - 16.5mhz)" b. Programmer: "... > Select "USBtinyISP"
  • tools settings

testing

  1. ArduinoIDE > File > Examples > DigisparkKeyboard > "Keyboard"
  • opening example
  1. Click on the uplaod button (below 'edit' button) & when it says "Plug in device now..." insert the digispark board in usb port
  • upload sketch
  • if output is not as below, repeat uploading step & try inserting board in different ports (front & rear)
  • successful upload
  • red: sketch uploaded successfully; blue: script running successfully; yellow: device manager > libusb-win32 devices > Digispark Bootloader


Reference links