Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Using the HC-SR04 Ultrasonic Distance Sensor with Arduino - Everything You Need to Know

DroneBot Workshop via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner course teaches how the HC-SR04 ultrasonic distance sensor works and how to connect and program it with Arduino. It covers NewPing code, accuracy improvement with a DHT22, 3-wire operation, and multiple-sensor setups.

Syllabus

- Introduction
- How the HC-SR04 Works
- Basic Arduino Hookup
- Sketch 1 - Basic Hookup Demo
- NewPing Code Library
- Sketch 2 - First NewPing Test
- Sketch 3 - NewPing with Duration
- Sketch 4 - NewPing with Iterations
- Getting Improved Accuracy
- Using the DHT22
- Sketch 5 - DHT22 Test
- Sketch 6 - Improved HC-SR04 with DHT22
- The HC-SR04 in 3-Wire Mode
- Sketch 7 - HC-SR04 in 3-Wire Mode
- Using Multiple HC-SR04 Sensors
- Sketch 8 - Multiple HC-SR04 Test

Taught by

DroneBot Workshop

Reviews

Start your review of Using the HC-SR04 Ultrasonic Distance Sensor with Arduino - Everything You Need to Know

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.