Skip to content

Instantly share code, notes, and snippets.

@amcolash
Last active April 22, 2025 08:43
Show Gist options
  • Select an option

  • Save amcolash/b930cb9d206b75ca5fd4ab974cb78a60 to your computer and use it in GitHub Desktop.

Select an option

Save amcolash/b930cb9d206b75ca5fd4ab974cb78a60 to your computer and use it in GitHub Desktop.

Revisions

  1. amcolash renamed this gist May 9, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. amcolash revised this gist Apr 5, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion instructions.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ This gist is a list of instructions that I used to program my ATTiny85s with Mic
    - ATTiny85
    - AVR programmer
    - 1 uF capacitor
    - Micronucleus FW found here: https://github.com/micronucleus/micronucleus/releases
    - Micronucleus FW: https://github.com/micronucleus/micronucleus/releases
    - avrdude: http://www.nongnu.org/avrdude/

    ## Setup:
  3. amcolash revised this gist Apr 5, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion instructions.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    This gist is a list of instructions that I used to program my ATTiny85s with Micronucleus. They worked for me, but your mileage may vary!
    This gist is a list of instructions that I used to program my ATTiny85s with Micronucleus. They worked for me, but your mileage may vary! I would highly recommend starting by looking at the SparkFun article linked at the bottom for schematics and more in-depth info. This gist is mostly just a copy/paste list.

    ## Required:
    - ATTiny85
  4. amcolash revised this gist Apr 5, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion instructions.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ This gist is a list of instructions that I used to program my ATTiny85s with Mic
    - AVR programmer
    - 1 uF capacitor
    - Micronucleus FW found here: https://github.com/micronucleus/micronucleus/releases
    - avrdude
    - avrdude: http://www.nongnu.org/avrdude/

    ## Setup:
    - Attach the avr programmer to the tiny
  5. amcolash revised this gist Apr 5, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions instructions.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    This gist is a list of instructions that I used to program my ATTiny85s with Micronucleus. They worked for me, but your mileage may vary!

    ## Required:
    - ATTiny85
    - AVR programmer
  6. amcolash revised this gist Apr 5, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion instructions.md
    Original file line number Diff line number Diff line change
    @@ -16,6 +16,7 @@
    - `cd micronucleus-master/firmware/releases`
    - Burn firmware: `avrdude -P usb -c usbasp -p t85 -U flash:w:t85_default.hex`
    - Burn fuses: `avrdude -P usb -c usbasp -p t85 -U lfuse:w:0xe2:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m`
    - NOTE: user @german-namestnikov found that the above did not work and instead changed the value of the `CKSEL` bit. Instead they used `avrdude -P usb -c usbasp -p t85 -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m`
    - Verify fuses (should read E:FE, H:DD, L:E2): `avrdude -P usb -c usbasp -p t85 -U lfuse:r:-:i`
    - Test it works by unplugging from avr, use usb connection
    - Go to commandline tool folder: `cd ../../commandline`
    @@ -35,6 +36,6 @@ Restart Arduino
    Cheers!


    Sources:
    ## Sources:
    - https://learn.sparkfun.com/tutorials/how-to-install-an-attiny-bootloader-with-virtual-usb/install-micronucleus
    - http://digistump.com/wiki/digispark/tutorials/connecting#software
  7. amcolash revised this gist Jan 5, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion instructions.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@
    ## Using with Arduino:
    - Add additional board: http://digistump.com/package_digistump_index.json
    - Install "Digistump AVR Boards"
    - Select board + choose ATTiny85
    - Select board "Digispark Default" and programmer "Micronucleus"

    If things don't work it is most likely that the arduino board package does not have the latest micronucleus tool.
    To fix, run `cp micronucleus-master/commandline/micronucleus ~/.arduino15/packages/digistump/tools/micronucleus/2.0a4`
  8. amcolash revised this gist Jan 5, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion instructions.md
    Original file line number Diff line number Diff line change
    @@ -27,9 +27,11 @@
    - Select board + choose ATTiny85

    If things don't work it is most likely that the arduino board package does not have the latest micronucleus tool.
    To fix, run this: `cp micronucleus-master/commandline/micronucleus ~/.arduino15/packages/digistump/tools/micronucleus/2.0a4`
    To fix, run `cp micronucleus-master/commandline/micronucleus ~/.arduino15/packages/digistump/tools/micronucleus/2.0a4`

    Restart Arduino


    Cheers!


  9. amcolash created this gist Jan 5, 2019.
    38 changes: 38 additions & 0 deletions instructions.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    ## Required:
    - ATTiny85
    - AVR programmer
    - 1 uF capacitor
    - Micronucleus FW found here: https://github.com/micronucleus/micronucleus/releases
    - avrdude

    ## Setup:
    - Attach the avr programmer to the tiny
    - Attach cap from GND to RESET (Otherwise try GND <-> V+. I only needed this the 2nd time)
    - Plug in AVR programmer
    - Download FW and unzip
    - Make sure you have avrdude

    ## Burning:
    - `cd micronucleus-master/firmware/releases`
    - Burn firmware: `avrdude -P usb -c usbasp -p t85 -U flash:w:t85_default.hex`
    - Burn fuses: `avrdude -P usb -c usbasp -p t85 -U lfuse:w:0xe2:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m`
    - Verify fuses (should read E:FE, H:DD, L:E2): `avrdude -P usb -c usbasp -p t85 -U lfuse:r:-:i`
    - Test it works by unplugging from avr, use usb connection
    - Go to commandline tool folder: `cd ../../commandline`
    - Build + test: `make && micronucleus -?`

    ## Using with Arduino:
    - Add additional board: http://digistump.com/package_digistump_index.json
    - Install "Digistump AVR Boards"
    - Select board + choose ATTiny85

    If things don't work it is most likely that the arduino board package does not have the latest micronucleus tool.
    To fix, run this: `cp micronucleus-master/commandline/micronucleus ~/.arduino15/packages/digistump/tools/micronucleus/2.0a4`
    Restart Arduino

    Cheers!


    Sources:
    - https://learn.sparkfun.com/tutorials/how-to-install-an-attiny-bootloader-with-virtual-usb/install-micronucleus
    - http://digistump.com/wiki/digispark/tutorials/connecting#software