Schedule‎ > ‎

Lab 18: Servo Motors


  • 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.


Note:  in the "knob lab" below,  setup your potentiometer knob like this:

  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.