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

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into a comprehensive tutorial on utilizing the HC-SR04 Ultrasonic Distance Sensor with Arduino. Master the sensor's functionality, basic Arduino connections, and programming techniques. Explore advanced topics like improving accuracy with temperature and humidity compensation, operating in 3-wire mode, and managing multiple sensors. Learn to leverage code libraries, including NewPing, to enhance your projects. Gain practical insights through eight detailed sketches, from basic setups to complex multi-sensor arrangements. Perfect for robotics enthusiasts and Arduino developers looking to maximize the potential of this versatile sensor in their projects.

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.