← Back to search

Sparkfun Inventor's Kit for Learning Arduino - Ultrasonic Distance Sensor (Circuit 3B with HC-SR04)

Core Electronics 8:19

2,747 views · 23 likes Watch on YouTube ↗

This circuit will introduce the HCSR04 Ultrasonic Sensor to our electronics toolkit. Unlike the Servo, the HCSR04 doesn't require a library to be included manually, nor does it use objects or methods. We will use a function to calculate the distance in this sketch such that our loop function isn't too long or complicated (it's also good practice to modulate any simple, repetitive tasks).

The full guide: https://core-electronics.com.au/tutorials/arduino-projects-with-motion-using-sparkfun-redboard.html


Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:

Sparkfun Inventors Kit /catalog/product/view/sku/KIT-14265

Arduino https://core-electronics.com.au/arduino.html

Sparkfun https://core-electronics.com.au/brands/sparkfun-australia

Adafruit https://core-electronics.com.au/brands/adafruit-australia

Pololu https://core-electronics.com.au/brands/pololu-australia

DFRobot https://core-electronics.com.au/brands/dfrobot-australia

Category (YouTube): Education

Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.