Arduino Tutorial 61: Improving Precision of Your Distance Measurements

HC-SR04 Ultrasonic Sensor in a Distance Measuring Project

In this lesson we strive to improve the precision of our distance measurements using an average of a large number of measurements. This builds on the work we did in the last few lessons.

We are building this with parts from our Elegoo Kit , and our actual build is using an Arduino Nano, which allows the project to be built on a single breadboard. You can get the neat jumper wires HERE.

This video takes you through the process step-by-step.

The code developed in this video is included below for your convenience.