I am trying to figure out how to use the WASD keys on my computer, to go through the USB cable and then spin the Arduino servos in real-time. So if I press the “a” key, it should start to move left with little time delay. How do I do this?
-
do it is steps ... first write code to get data from the PC to the arduino .... when you are successful, add code to move servosjsotola– jsotola2020-01-26 04:41:57 +00:00Commented Jan 26, 2020 at 4:41
-
why this way? you could start some serial terminal program which sends the character immediately, but much simpler is to put 4 buttons on breadboard or to use a small joystickJuraj– Juraj ♦2020-01-26 08:00:08 +00:00Commented Jan 26, 2020 at 8:00
-
In any case you need some software on your PC to send the key events to the Arduino. The simplest solution can be the Serial Monitor of the IDE. Try this and if you have problems with the Arduino sketch, feel free to edit your questions. BTW, you might like to take the tour and learn How to Ask.the busybee– the busybee2020-01-26 11:02:06 +00:00Commented Jan 26, 2020 at 11:02
Add a comment
|