Ultrasound Ping Sensor
The HC-SR04 is a low cost ($4) sensor that measures the distance to an object in front of it.
Wiring Diagram
- Connect GND to any GND pin on the Pico
- Connnect VCC to VBUS or 5 Volt power
- Connect Trigger to pin 15. With USB on the top, this pin is the bottom left corner.
- Connect Echo to pin 14. One up from bottom left corner.
Sample Blocks
The Ultrasound Ping sensor is found in the left navigation Sensors: Ultrasound. Make sure to load the library for the sensor