Skip to content

Commit

Permalink
HCSR04+
Browse files Browse the repository at this point in the history
  • Loading branch information
ImplFerris committed Oct 27, 2024
1 parent 16ef936 commit f4a8357
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ultrasonic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The HC-SR04 Sensor module has a transmitter and receiver. The module has Trigger

## Setup
- **VCC**: Connect the VCC pin on the HC-SR04 to the 3.3V pin on the Pico to safely power the sensor. Although the HC-SR04 generally operates at 5V, using 3.3V helps protect the Pico, as its GPIO pins are rated for 3.3V. There is some unconfirmed information that the Pico 2 GPIO might tolerate 5V, but for now, this is uncertain. I’ve tested both 3.3V and 5V connections without issues so far 🤞. (If anyone has confirmed details on this, please raise an issue so we can keep this guide accurate.)
- Other considerations: Alternatively, you can use HCSR04+ (which can operate at both 3.3v and 5V) or use logic level shifter.
- **Trig**: Connect to GPIO 17 on the Pico to start the ultrasonic sound pulses.
- **Echo**: Connect to GPIO 16 on the Pico; this pin sends a pulse when it detects the reflected signal, and the pulse length shows how long the signal took to return.
- **GND**: Connect to the ground pin on the Pico.
Expand Down

0 comments on commit f4a8357

Please sign in to comment.