Lesson 3 The servo motors

1. Make the following connections:



Download this code and upload it to the Arduino Uno board.

Expected results:



2. Modify the code to turn the motor faster by changing the angle step from 1 degree to 5 degrees.



3. Merge the ultrasonic sensor program and this servo program to one.