Robotics & Arduino
Lesson 3 · Hands on

Project 06

Read the ultrasonic sensor

What do we want to do?

Measure distance and print it.

Parts

  • Arduino Uno + USB cable, breadboard, and jumper wires.
  • HC-SR04 ultrasonic sensor

What to expect

Moving an object toward or away from the sensor changes the distance shown in Serial Monitor.