Parts · Sensors

Ultrasonic sensor for 3.3 V (HC-SR04P)

HC-SR04P, also sold as HC-SR04 2020/2021, 3-5.5 V

Looks like the HC-SR04, often with the same print, but it also works on 3.3 V. Its Echo is as high as its power.

Ultrasonic sensor for 3.3 V (HC-SR04P)
Picture: Kitronik ↗

2Use it

The back of the two boards side by side. HC-SR04 (5 V): three chips, a 16-pin MAX232 (or no name), a 14-pin LM324 and a small 8-pin microcontroller. HC-SR04P (3.3 V and 5 V): one or two RCWL chips (or a CS100A) and the small M1 and M2 pads. Both have the pins VCC, Trig, Echo and Gnd.
Our drawing
Pin or legWhat it is for
VCC5 V (the class rule), or 3.3 V from the 3.3 V regulator
Triga Micro:bit pin, e.g. P1: straight
Echoa Micro:bit pin, e.g. P2: through the divider on 5 V, straight on 3.3 V
GNDGND

Good to know: Sellers often print "HC-SR04" on the front, the same as on the classic one: look at the back. Kitronik's 46114 was this kind, but it is discontinued and its datasheet is the one of the classic HC-SR04.

The idea behind it, step by step: Ultrasonic distance sensor

Used in

No project uses it yet.

3Facts

Power3-5.5 V (some 2.8-5.5 V), about 2-3 mA
Rangeabout 2-400 cm on 5 V, a bit shorter on 3.3 V
Echoas high as its power: 3.3 V on 3.3 V, 5 V on 5 V
On the backan RCWL chip (RCWL-9206, RCWL-9300, RCWL-9610) or a CS100A, no 16-pin MAX232; often M1 and M2 pads; sometimes "+" or "2021"
On the frontoften no crystal (the RCWL chip has its own clock); some boards have one: a hint, not proof

Kinds you may find

HC-SR04 (classic)5 V only; three chips on the back, one a 16-pin MAX232 (or no name)
HC-SR04+ (4tronix)the same 3-5.5 V kind
Kitronik 46114a 3.3 V-tolerant board sold before; Kitronik lists it as discontinued

More to read

Where to buy