This one is again a simple experiment related to servo motor and Arduino. Here we will be controlling movements of a servo motor with keyboard input via Arduino. You know the best thing about simple hacks and experiments, these have the power to pave a path for some of the biggest breakthroughs.
So the first step towards this direction is to prepare a list of things that you will need to complete this project. The hardware part includes an Arduino board, male to male wires, and servo motor. The software section includes just two things a tera term and an Arduino IDE.
Now the first step is about connecting the servo motor to the Arduino. The servo motor here will have three connection. There are basically three colored wires, the most common one has orange, red, and brown colors. The dark brown one establishes connection with ground, the orange one establishes connection between UNO pin 9 and Arduino, while the red one connects with 5V.
Next comes coding.
You can always make your own code but for specifics, you can check our code given at http://mastersascha.ru/controlling-servo-motor-using-keyboard-input.html. Once you are done with the code, you can upload it to Arduino. As soon as it gets uploaded open up Tera Term and form a serial connection with the Arduino board. You can now press the designated button and see the response of servo to keyboard input. For more details, you can check out this YouTube video: https://youtu.be/pi9gbOhDAns.
Filed Under: Reviews