Servo Motor Control

In this lab, I’ve controlled a servomotor’s position using the value returned from an analog sensor. I’ve connected an analog input to analog pin 0 and an analog input. The servomotor and an analog input attached to an Arduino Nano. 3.3 Volts and ground are connected to the voltage and ground buses of the breadboard as usual. The force-sensing resistor is mounted below the Nano. A 10-kilohm resistor connects one leg of the FSR to the left side ground bus. A wire connects the row that connects these two to analog in 0 on the Arduino Nano. Another wire connects the other pin to the left side voltage bus. The servomotor’s voltage and ground connections are connected to the voltage and ground buses on the right side of the breadboard. The servomotor’s control wire is connected to pin D3 of the Nano.

Screen Shot 2019-10-03 at 10.33.12 PM.png