![]() ![]() The code (which is actually a snippet of another code prepared by me) uses the Keyboard library to lock the desktop screen of your Windows computer or open the Calendar menu on your Android phone/tablet when the key button is pushed down. To complete the hardware setup, connect the tactile switch to D2 and GND of the microcontroller board. The first is the Mini Leonardo Pro Micro (5-V/16-MHz) board, and the second is an Omron B3F-4055 Tactile Switch (I got both from web shops). In simple terms, you can program it to act just like a keyboard, mouse, or other HID-class USB device.Īs shown above, just two hardware components are required to complete the project. The 32U4 comes with a full-speed USB transceiver interface, allowing the Leonardo Pro Micro to be programmed to emulate any USB device. The former has an Atmega32U4 processor with a built-in USB-serial interface. Keep in mind that the Arduino Uno does not support USB HID and, hence, is not suitable for this project. With a simple hardware wiring and a sketch to emulate the keyboard, thanks to its USB HID, the Arduino Leonardo Pro Micro is a must. ![]() The keyboard is, in fact, a single-button keyboard that sends a pre-settled keystroke to the connected system. Described here are the construction details of a universal serial bus human interface device (USB HID) external keyboard for devices running on Windows and/or Android operating systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |