Giter VIP home page Giter VIP logo

arduino_cli_attiny85's Introduction

bootstrapin arduino-cli & digispark setup to quickly turn your attiny85 into a 2$ rubber ducky

arduino-cli is installed with curl so be sure to have curl installed on your machine, otherwise: sudo apt install curl

Usage

  • buy a digispark attiny85 microcontroller here or somewhere else
  • run setup.sh in the repo, basically it:
    • installs arduino-cli
    • set specific udev permissions in order to program the attiny85 microcontroller
    • installs specific depedencies so that arduino-cli can program the attiny85 microcontroller

Once your setup is done, edit your .ino project located in project/ and compile it as follow:

arduino-cli compile --fqbn digistump:avr:digispark-tiny project/

then upload it on your board:

arduino-cli upload --fqbn digistump:avr:digispark-tiny -p /dev/ttyACM0 project

NB: make sure that your project.ino is inside a folder of the same name (here project). Won't work otherwise.

You'll then have 60 seconds to plug in your USB attiny85 to upload the payload on it.

3D printing a case

The repo contains 3D models (in models/) to 3D print a case to make it look like an USB key.

A .blend to modify it with blender.

A .cbddlp in case you have an elegoo mars 3d printer.

Motivations

The official documentation doesn't provide a simple bash script to automate everything, so here it is. I was just fed up with clicking everywhere in the GUI to configure my computer & flash the device.

If it doesn't work goto troubleshooting :)

& thx to https://github.com/ArminJo/DigistumpArduino/ for the package_digistump_index.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.