P Comp Lab Processes 

Servo Motor Control 




    The same thing as last time (Tone Lab), I checked the serial reading’s range and adjusted the range to 0 -179 after setting up the board. This time the reading was affected by the sensor. After some debugging, I realized that the sensor needed to be linked to A0 for it to work, but on the image instruction, the sensor was not connected to  A0. I think the A0 connection has been wrong on the image instruction in the past lab as well.


    After solving that problem, I also added a printing line to print the Servo Angle. And the motor started rotating to the amount of pressure that was applied to the sensor.








Next Page ︎︎︎