The HID-Button-ATTiny85 is based on the ATTiny85 board and acts as an automatic keyboard replacement which types credentials into a Windows (or similiar) login request with just a single button press.
- ATTiny85 USB or compatible like a DigiSpark USB (clone) with already installed Micronucleus bootloader
- A regular pushbutton of your choice
- Circuit:
- Wiring:
- Install the USB drivers to be able to upload your sketches via USB
- Add in Arduino IDE preferences the Board Manager URL for ATTinyCore http://drazzy.com/package_drazzy.com_index.json (see https://github.com/SpenceKonde/ATTinyCore for details):
- Choose Board and Arduino IDE Settings as shown here:
- Extract zip archive "Bounce2.zip" to C:\Users<YOURUSERNAME>\AppData\Local\Arduino15\libraries
- Extract zip archive "DigisparkKeyboard-master-fixed.zip" to C:\Users<YOURUSERNAME>\AppData\Local\Arduino15\libraries
- Extract the content of DigisparkKeyboard-master-fixed.zip to C:\Users<YOURUSERNAME>\AppData\Local\Arduino15\libraries before compiling
- Before uploading the INO sketch to the board you must change in Credentials.h the login credentials USER|PASSWORD pairs to the desired real credentials
- If only a password input is needed leave the according USER value in Credentials.h empty
- Optional: if a hardware reset is needed for your board you can connect PB5 with a pushbutton to GND (but recommended is to use the builtin software reboot with button press)
- Optional: you can upgrade the ATTiny85 bootloader with the UpgradeBootloader.bat script within the bootloader folder
- Press the button shorter than 1 second to type credentials pair 1 as login
- Press the button between 1 and 5 seconds to type credentials pair 2 as login
- Press the button longer than 5 seconds to reboot the HID-Button
- If the HID-Button-ATTiny85 is already plugged at start of the PC or during a restart it will not properly work, this issue can be solved by replugging
The HID-Button-ATTiny85 is licensed under GPL-2.0-only.
© Alexander Feuster 2024