Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 2.43 KB

README.md

File metadata and controls

38 lines (31 loc) · 2.43 KB

HID-Button-Micro

Introduction

The HID-Button-Micro is based on the Arduino Micro board and acts as an automatic keyboard replacement which types credentials into a Windows (or similiar) login request with just a single button press.

Hardware

  • Arduino Micro or compatible board
  • A regular pushbutton of your choice
  • Circuit:
    Circuit
  • Wiring:
    Wiring

Manual / Remarks

  • It is recommended to use a programmer to upload the sketch like the USBtinyISP or similiar
  • Choose Board and Arduino IDE Settings as shown here (optional: choose different programming or upload method):
    Arduino IDE Settings
  • Install the Keyboard library via the Arduino IDE library manager:
    Arduino IDE Settings
  • 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 3rd USER|PASSWORD pair credential is needed the reboot function can be disabled by commenting out #define enable_reboot in exchange to enable this. The wiring from pin A1 to pin RESET is also not needed in this configuration.
  • Optional: as default every password is typed with a RETURN. This behaviour can be disabled by uncommenting //#define enable_pin_mode which changes the behaviour not to send a final RETURN as it is needed for PIN inputs or similiar since those type of query auto-accept inputs by a fixed digit length.

Usage

Depending if the reboot is enabled or not there are 2 usage schemes:

Default configuration with reboot enabled:

  • 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

Alternative configuration with reboot disabled:

  • Press the button shorter than 1 second to type credentials pair 1 as login
  • Press the button between 1 and 3 seconds to type credentials pair 2 as login
  • Press the button longer than 3 seconds to type credentials pair 3 as login

Known Issues

  • none (as of date 09/2024)

License / Copyright

The HID-Button-Micro is licensed under GPL-2.0-only.

© Alexander Feuster 2024