Arduino Tutorial 55: Measuring Distance With HC-SR04 Ultrasonic Sensor

11 11 views
8m Mar 31, 2020

In this lesson we show you how to measure distance using the HC-SR04 ultrasonic sensor. We review the concept of dimensional analysis to help you understand how to get the correct units.

You can get the kit I am using for this series at the following link:

I strongly suggest picking up an arduino nano, since it can plug directly into the breadboard, making a portable system more practical. You can pick one up here:

As projects get more complicated in these lessons, you guys really need to get a set of breadboard jumper wires which allow you to make neater connections on the board in your projects. You can pick a pack of these wires up here:

In addition as projects get more complicated, you are going to need a bigger breadboard. This is a reasonable one here:

Follow these lessons on our WEB site here:

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to This means if you visit the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.]

About Paul McWhorter

I am Paul McWhorter from and I will be putting together a series of tutorials on use of the Arduino microcontroller.


Markdown is supported.
EEVblog – E247
8 years ago
EEVblog – E37
11 years ago
EEVblog – E1300
7 months ago
EEVblog – E258
8 years ago
Defpom's Mailbag – E705
7 months ago
EEVblog – E851
4 years ago