Link to lab: https://itp.nyu.edu/physcomp/labs/labs-arduino-digital-and-analog/servo-motor-control-with-an-arduino/
Notes
- Possibly because I’m not using the IDE, the Servo library wasn’t installed, so I had to explicitly install it to compile my code.
- I used a potentiometer for my analog input, and noticed that the motor is sensitive enough that it adjusts to the noise of the readings coming in, so I added a noise threshold to keep it from shaking when the change is from noise rather than from someone turning the potentiometer
Controlling servo motor without noise threshold
Controlling servo motor without noise threshold
Controlling servo motor with noise threshold
Controlling servo motor with noise threshold