Ultrasonic sensors can measure distance and are great for obstacle avoidance and robotics projects. Like a bat, it uses a method similar to echolocation to determine how far it is from an object. The sensor sends out a signal and waits to hear the echo. It then measures the time from when the signal was sent to when the echo was received and we can convert this into distance. We can then display this information on an LCD screen and even create a push button distance scanner.
You’ll be able to follow along and build all the projects featured in this course with the ELEGOO UNO Project Super Starter Kit.
- How the parts of a HC-SR04 sensor work
- Connecting the sensor to the Arduino
- Reading signal travel time in the serial monitor
- Converting travel time to distance using the speed of sound
- Using the serial plotter to graph live data on multiple channels
- Adding an LCD screen to read values and make our project portable
- Get a measurement at the push of a button