Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

General • Connecting Ultrasonic sensor HC-SR04 to Pico 2

$
0
0
Hi:
I am a teacher and I had been experimenting with connecting HC-SR04 Ultrasonic sensor to my rPi Pico 2. Here are the connections details:
VCC to 40
Gnd to 38
trig_pin = Pin(14, Pin.OUT)
echo_pin = Pin(15, Pin.IN)

I get the readings for distance measurement. But I am worried if I am using it correctly. I don't want to advice students to use this way and have the rPi s fried. The specification for HC-SR04 Ultrasonic sensor is here:
Specifications:

Power Supply :5V DC
Quiescent Current : <2mA
Effectual Angle: <15°
Ranging Distance : 2cm – 500 cm/1″ – 16ft
Resolution : 0.3 cm

I had bought the 5V Ultrasonic sensors in bulk before I realized there might be issues. I am not sure if I am taking risk by continuing to use it, or if I should get the 3.3V Ultrasonic sensors.
TIA

Statistics: Posted by lmaruvada — Wed Feb 18, 2026 8:26 pm — Replies 1 — Views 27



Viewing all articles
Browse latest Browse all 7503

Trending Articles