Schedule‎ > ‎

Lab 18: Servo Motors

Objectives

  • Continue working with servo motors
  • Use a potentiometer in a circuit

^ top

Academic Honesty

Read the Scholastic Honesty Policy and Assignment Integrity policies of the syllabus. Here are some clarifications for this particular assignment:

  • You may discuss the code with other students for this lab.
  • You must enter all the code yourself and not copy from another student.

^ top

^ top

Servo Motor

In this lab we learn to work with a Servo Motor and potentiometer.

Specifications:

Note:  in the "knob lab" below,  setup your potentiometer knob like this:  https://6937a5f0-a-2a6dacfe-s-sites.googlegroups.com/a/cabrillo.edu/cs-11m-spring2017/schedule/lab02-resistor-networks/ResistorNetworks_bb_pot.png?attachauth=ANoY7cpqtH-_P3U-uZ-VNzJrDaBygAXlkhPseErXc3y29iuoD7nOU7-trcz0vPXC0xebS2Hq2CRuAk5STFS1srNiIvPrf6eHTNv9bHrlqvCScv2VRsArKRhwDkR5Q_gdPl5B41W3lOGe4cXXF8o9-On3CRFdTDKe6B_rezXY1eC6tlDbRB9h5KLmnzeWz6Dnks2oR3oYmFeJf5Ikf7h2-ClAD8OGLa6A2Fap6OZDqjktLYJKVU8bzJJKx6HgsNpybuCX1KIKXWOjmJTStMF0pAwhHIj8kAzKwA%3D%3D&attredirects=0

  1. Complete the lab, Servo Motors.
  2. Name the code files "sweep.ino" and "knob.ino"  (without the quotes).
  3. Submit these files as part of this assignment.

^ top

Grading Criteria (10pts) + 3 pts extra credit

8 pts for checkoff and code review and 2 pts for headers.

^ top

Extra Credit:  3 pts

Modify the 'knob' sketch so that instead of taking the servo angle from the position of
the knob, it takes it from the Serial Monitor, so that you can control the servo from your
computer serial monitor.