- ⌨️ HID Device Support – Works with USB keyboards and compliant input devices.
- 💡 LED Feedback – Blinks an LED on each keypress.
- 📡 Serial Monitor Output – Streams typed characters to Serial Monitor.
- ⏳ Debounce Logic – Prevents duplicate keypress detection.
- 🔧 Modifier Handling – Supports shifted characters (e.g.,
A
,!
,@
).
Component | Purpose | Optional? |
---|---|---|
Arduino Board | Uno/Leonardo with USB Host Shield | No |
USB Host Shield | Enable USB device connectivity | No |
-
Clone the Repository
-
Install Dependencies
- Install the USB Host Shield Library 2.0 via Arduino Library Manager.
-
Upload the Code
- Open
HIDCrawler.ino
in Arduino IDE. - Select your board (Arduino Leonardo).
- Click Upload (➡️ icon).
- Open
If your HID device isn’t detected or behaves erratically:
- Solder the 5V points on the USB Host Shield.
- Follow this 5V mod tutorial.
-
Open the Serial Monitor (
Ctrl+Shift+M
). -
Set baud rate to 115200.
-
Start typing! Keystrokes will appear like this:
Hello World!
-
The LED will blink briefly for each keypress.
- USB Host Shield Library 2.0 by Oleg Mazurov