Potentiometer turning a servo on an Uno R3
3 parts
A potentiometer on an Uno R3's A0 turns a servo: the simulation shows the horn turn with the knob. At the knob's middle the board prints 511 -> 89 degrees. The horn then stands at 88.9°, by the Servo library's line from 544 µs for 0° to 2,400 µs for 180°, one pulse on D9 every 20 ms. It turns no faster than 60° in 0.1 s. The servo's 5V comes from the board, on USB power.
- U1 Uno R3, uno_servo_pot.ino.hex
- POT1 Pot, 10kΩ·50%
- SERVO1 Servo