We are now going to link an input component (a rotating knob) with an output, in this case a servomotor. A servomotor is a DC motor which has extra components so that it can be controlled precisely. You can, for example, order it to turn at a given angle. We will write some code so that, when the knob is turned, the servomotor will turn instantly as well.
You will need two extra components for this project—a servomotor and a rotating knob.
I used a standard 5V servomotor for this recipe, and most brands will work for this project. It just needs to be rated at 5V. I also used a small 10k rotating potentiometer to act as the rotating knob.
This is a list of all the extra components that I used for this project:
Note that, usually, servomotors come with a 3-pin female header that is difficult to connect to a breadboard...