As typical input device, keyboards have special advantages when used for interactions. To give a case for example, passing push-key events to flash via keyboard spares the entire process of going through cumbersome interfaces. Although it's easily for us to come up with the idea of disassembling the keyboard to lead out the keys. But this method has the disadvantage that the key value cannot be changed dynamically. But if only we use a simulation computer keyboard, we can set the push-key time and key value freely. This tutorial, shows how to press a key to trigger an input "HELLO WORLD" into your computer screen via the simulation computer keyboard.
1. Preparation
USB cable
2. Building Process
(1) Follow the below circuit diagram to solder the resistor, USB cable and Dupont line onto the universal board
Note: please refer to the table to find out what each color stands for.
COLOR STAND FOR
red VDD
white D-
green D+
black GND
After welding, the circuit should be like this:
(2) Connect the Dupont line welded as the upper picture displays to UNO by referring to the table.
UNIVERSAL BOARD UNO
VBUS 5V
UP D5
D- D4
D+ D2
GND GND
Visit ElecFreaks blog for more.