12.4 Servo Motor
We provide a Micro Servo SG90 in our race car kit, which looks like:

Example 1: Knob
Directly referenced from Official Arduino Tutorial - Knob.
Hardware Wiring

Sketch
The code can be found at Examples_Arduino - geek-workshop - essence - _001_Servo - _001_Servo_Knob.ino.
Example 2: Sweep
Directly referenced from Official Arduino Tutorial - Sweep.
Hardware Wiring

Sketch
Please refer to Examples_Arduino - geek-workshop - essence - _001_Servo - _001_Servo_Sweep.ino.
Assignment: Pan Tilt
Hardware Wiring
The hardware wiring is left for students to finish as an in-class assignment. The expected result can be referred to Chapter 15.2 - Pan Tilt Control by 2 Servo Motors.
Sketch
Please refer to Examples_Arduino - geek-workshop - essence - _001_Servo - _001_Servo_PanTilt.ino.
Last updated