Data Sheet
70 : circuit 3c
A B C
SERVO MOTORS
DISTANCE
SENSOR
MOTION ALARM
The servo doesn’t work
Make sure all of your servo wires are connected. Be
sure that the black wire is connected to the negative
rail and the red wire is connected to the positive rail.
Make sure you are using a digital pin that is capable
of PWM.
The pop-up is moving too much
or not enough
The two lines of code that pass angles to the servo
motor are myservo.write(45); and myservo.
write(135);. Try changing these angle values to
fine-tune your mechanism.
You’ve completed
Circuit 3C!
Continue to Project 4 to learn how to use an LCD in your circuits.
TROUBLESHOOTING
SIK v4 Book Oct 13.indb 70 10/18/17 10:01 AM