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.
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.










