WEEK 5 : SENSORS AND ACUTUATORS

SERVO MOTOR : In this week, we were introduced to servo motor. We turned it back and forth across 180 degrees by using Arduino tools and following the instructions of our teacher Mr. Carl James. It was very fun because I was controlling hardware using software. Let me give you a short brief on Servo motor. S ervo motors have three wires : Power, Ground, and Signal. The power wire is typically red, and should be connected to positive pole of your power source. The ground wire is typically black or brown and should be connected to the negative pole of your power source. The signal pin is typically yellow or orange and should be connected to PWM pin on the board and the pin number is 9. The below pictures shows, how I used my Servo Motor with my Arduino kits. This is the code that I used...