ESP32 Tutorial 27 - Measuring Distance with Ultrasonic Sensor | SunFounders ESP32 IoT Learning kit @robojax
ESP32 Tutorial 27 - Measuring Distance with Ultrasonic Sensor | SunFounders ESP32 IoT Learning kit  @robojax
Uploaded December 2023 | Updated September 2026, 2 weeks ago
In this video we learn how to use HC-SR04 Ultrasonic distance sensor to measure the distance to detect object. We then learn how to take action if the object is at certain distance like at distance less than 20 cm turning ON the buzzer. Wiring and full Arduino code is explained.

This video is part of series of Tutorials for SunFounder ESP32 IoT Learning Kit which can be viewed here : bit.ly/sf-esp32-video

πŸ“šβ¬‡οΈ Download and resource page robojax.com/RJT710


Related videos:
How to use a breadboard: youtu.be/jTJ-JL2gEuQ

**** Purchase ESP32 from Affiliated Stores ***
Amazon USA: amzn.to/3N79EPL
Amazon Canada: amzn.to/3Rm6VEs
Amazon UK: amzn.to/46ArnWL
Amazon Deutschland amzn.to/4aCcGFW
Amazon Japan: amazon.co.jp//dp/B0CLDJ2DL7
eBay:
AliExpress: https://s.click.aliexpress.com/e/_DFlLFnh

ESP32 Download and resecures page: docs.sunfounder.com/projects/esp32-starter-kit/en/latest


Use Chapters from timeline or click on the time
00:00 Start
1:46 Introduction to Ultrasonic Sensor
6:02 Wiring explained
7:37 ESP32 Arduino code explained
11:33 Selecting ESP32 board and COM port in Arduino IDE
13:15 Demonstration of measuring distance
16:43 Tacking action with distance: buzzer


#robojax #SunFounder #ESP32

----------- Robojax.com -----------
Website: robojax.com
All tutorials: robojax.com/tutorial_categories.php?lang=en
Downloads files: robojax.com/files.php?lang=en

If you found this tutorial helpful, please support me so I can continue creating contents like this. (PayPal):
πŸ”₯paypal.me/robojaxTV
Follow me on Facebook fb.me/robojaxTV
Follow me on TikTok tiktok.com/@robojaxtv
Follow me on Twitter: twitter.com/robojaxTV
Follow me on Instagram: instagram.com/robojax

**** AFFILIATE PROGRAM ****
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
ESP32 Tutorial 27 - Measuring Distance with Ultrasonic Sensor | SunFounders ESP32 IoT Learning kitESP32 Tutorial 8 -Walking Light 74HC595 Shift register -SunFounders ESP32 IoT Learning kitLesson 72: Obstacle detection using Laser Transmitter and receiver- RJT4747 projects Build LED LCD Alarm Clock using DS1307 with Arduino | Lesson 105 - RJT416Course Lesson 3 of 10: Assembling Raspberry Pi Pico 4WD Smart Car Kit from SunFounder by RobojaxESP32 Tutorial 21 - Detecting Human with PIR Motion Sensor | SunFounders ESP32 IoT Learning kitLesson 1: PICAR-X Motor move and steering control | Raspberry Pi Smart Robot car by SunFounderCourse Lesson 9 of 10: Obstacle Avoidance using Raspberry Pi Pico 4WD Smart CarCourse Lesson 10 of 10: Controlling Raspberry Pi Pico 4WD Smart Car Kit with mobile AppWinson WCS1800 WCS2750 WCS1500 Hall Effect Current Sensor with dispaly with over current protectionLesson 65: Controlling two channel Solid State Relay with push button switches - RJT481E621 ESP32 Tutorial 3/55 - Resistor, LED, Breadboard Project: Hello LED -ESP32 IoT Learning kit
Robojax |

ESP32 Tutorial 27 - Measuring Distance with Ultrasonic Sensor | SunFounder's ESP32 IoT Learning kit

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER