Tag Archives: Echolocation

Portable Distance Measurement Project With HC-SR04 Ultrasonic Sensor

In this video lesson we explore creating a portable distance measurement widget using the Raspberry Pi Pico W, the HC-SR04 Ultrasonic Sensor, and the SSD1306 OLED display.

The schematic we use for this project is as follows:

Schematic for Portable Distance Sensor Project

In this work, we use the State Machines on the Pi Pico to ensure precise timing. Below, we include the code developed in the lesson above:

 

Precision Ultrasonic Distance Measurement With PIO State Machines on Raspberry Pi Pico W

In this video lesson we will show you how to get precise distance measurements with the HC-SR04 Ultrasonic sensor. We show how measurement stability and accuracy can be improved by using the Raspberry Pi Pico PIO State Machines to trigger and monitor the sensor. For your convenience, the code is presented below.

 

Measure Distance Using the HC-SR04 Ultrasonic Sensor on the Raspberry Pi Pico

In this Video Lesson I will teach you how to use echolocation to measure distances. We will use the HC-SR04 Ultrasonic Sensor, and will use the Raspberry Pi Pico W. We will explain how echolocation works, and show you how the sensor works. We will do the math, and then create the code for making measurements.

 

Robotics Training LESSON 18: Obstacle Detection and Collision Avoidance

In this lesson we explore using the HC-SR04 to detect obstacles, and then avoid collisions by stopping the car. This requires a more sophisticated control algorithm for the desired distance for the car to travel. Making it even more tricky, after the obstacle is removed, the car needs to resume its programmed mission. The video shows my solution to this problem

 

Robotics Training LESSON 17: Measuring Distance to Obstacle using the HC-SR04


In this video lesson we show how to use the HC-SR04 ultrasonic sensor to detect the distance to obstacles in a robotic application. We use the sensor to measure the time it takes for a ping to travel from the sensor, to the target, and then back. We use this measured time, and the known speed of sound to calculate the distance to the target. This will be used in future lessons to keep the robot from running into an obstacle.