USB Input Devices for Arduino projects (Patreon)
Content
Are you bored of being limited to the same old input buttons and switches as in every other Arduino project? Wouldn't you rather try letting users have to use a joypad, or trackball, swipe a magnetic card, or read a QR code? If so, this project is for you!
In this tutorial I'll explain how you can add functionality to read input from any USB Human Interface Device (HID). I'll present one detailed example, which is how to read a (1D) barcode or (2D) QR code, and show the decoded output on a display which would be perfect for use in an escape room, but you can adapt the same codebase to interpret report data received from any USB HID peripheral.
My examples make use of the USB Host Library, which you can download from https://github.com/felis/USB_Host_Shield_2.0 (or install from the Arduino IDE Library Manager), and I'll be putting more details up in a patreons'-only post soon. Hope you enjoy, and tell me if you make use of any bonkers USB peripherals in your projects! :)