Robot Mission 10: Servo Controlled Distance Sensing

In this mission, you’ll connect a servo and an ultrasonic distance sensor to allow your robot to scan the space in frontof it and turn when it senses an obstacle.  


What You’ll Learn

When you are finished with this project, you’ll be able to:

  • Know how to connect a servo to your arduino
  • Know how to write code to position a servo
  • Know how to use an ultrasonic sensor to measure distance

What You’ll Need

To complete this project, you’ll need the following components: