Hi, I'm Francesco and I am 13 years old, in this article I review how I realized this prototype and how to build it!Step 1: Get The Basic Materials
First you will need two switches and a watertight box to insert them. Depending on the size of the keys, the box should be slightly bigger than the Arduino (NANO, in this case) too: Step 2: Connect The Switches
The switch connections are the same as those for the breadboard. The switches I have have two outputs: one for the data and one for 5V. Then the data cable is between the switch and the 10K Ohm grounded resistance to GND, and the other switch cable is connected to 5V. The connection is the same for the other switch, as well.Step 3: Programming
The code is very simple, because it only sends serial data when a switch is pressed. To convert the serial signal to click I wrote a program, albeit very simple, which uses libraries (pyautogui, and pyserial). This program runs automatically when you start your computer (Windows, in this case). Every now and then has problems accessing the COM port of Arduino, but everything resolves by restarting the program. The final work!
I hope you liked this project. At this time I can not put up the code, but I will update this post as soon as possible with the complete code.