TK50 ultrasonic/Sound, and the time it takes/02. Not the HC-SR04 you know
Sound, and the time it takes · 02 of 11

Not the HC-SR04 you know

The box sells as a 5-pack of HC-SR04, and the chip on the board is an RCWL-9610A. That one substitution invalidates most of what the internet will tell you about wiring this sensor — starting with the voltage divider you do not need.

Two parts, one product name

Switch between them and watch the echo wire.

Two parts, one product name
TK50 (what is in this box)
Supply
3.3–5 V
Interfaces
4
Divider on an ESP32
not needed
Power it from 3V3 and the level problem never exists. There is no regulator on this board: VCC goes straight to the RCWL-9610A, and both signal pins are chip pins with nothing between them and the header. So the logic level is whatever you feed the supply pin. On an ESP32 that is 3V3, four wires, and no resistors.

The HC-SR04 is a board of separate parts — a small microcontroller, a transistor pair driving the transmitter, a couple of op-amp stages amplifying what comes back. It works, it has worked since about 2011, and it needs 5 V to do it. Its echo pin therefore answers at 5 V, into whatever you have connected, and on a 3.3 V board that is a pin rated to 3.6 V receiving 5 V. Hence the divider in every tutorial.

The TK50 replaces all of that with one chip, an RCWL-9610A in a 16-pin package, and the chip is happy from 3.3 V. The board prints its own supply range on the back: 3.3V-5V.

Why the divider disappears

Because there is nothing on this board between the header and the chip.

Trace the four nets and it is a short list. VCC goes to two pins of the RCWL-9610A and to a decoupling capacitor, and that is all — there is no regulator. ECHO and TRIG are each a single chip pin brought straight out to the header, with nothing in the way.

So the supply pin sets the logic level. Feed it from a 3V3 rail and the echo comes back at 3.3 V; feed it from 5 V and the echo comes back at 5 V. The level question is not answered with resistors, it is answered by which rail you choose, and you choose the one your board runs on.

The other three things that change

Four interfaces, not one. An HC-SR04 does trigger-and-echo and nothing else. This chip also speaks I2C, UART and a single-wire mode, selected by two solder bridges. A board that arrives untouched behaves exactly like an HC-SR04, which is why old sketches run on it unchanged.

A longer trigger pulse. Every HC-SR04 example sends a 10 µs pulse on TRIG. The supported library for this part sends 500 µs. Ten microseconds does still start a measurement, which is why the old sketches appear to work — but 500 µs is what the maintained code does and what the sketches here send.

A different idea of range. Both parts claim 4 m. What is unusual is that Lonely Binary's own documentation for this one says plainly that 2–3 m is where it should be trusted, which is more honest than the category is used to and is worth taking at face value.

What to keep from what you already know

The physics. Everything in what the echo measures is true of both parts, and so is everything about surfaces and temperature later on. It is the wiring advice that has expired.

When it does not work

So is the listing wrong?

The listing uses the name the whole category is known by, which is how anybody searching for an ultrasonic sensor finds it. The part is pin-compatible with an HC-SR04 in GPIO mode, so a sketch written for one runs on the other. What is not compatible is the electrical advice, and that is the half that costs people a pin.

I already put a divider on the echo line. Do I have to remove it?

Not urgently — a divider on a 3.3 V signal still passes a usable HIGH if the ratio was chosen for 5 V, though with less margin than you want. Remove it when convenient and wire ECHO straight to the pin. Powering the sensor from 3V3 is the fix; the divider was solving a problem you no longer have.

Can I still feed it 5 V?

Yes, and on a 5 V board like an Uno you should — the signal is stronger on long wires. The rule is only that the supply and your board's logic must match, because this board has no regulator and no level shifter: the echo comes back at whatever you fed the supply pin.

How do I tell the two parts apart in a drawer?

Look at the back. A TK50 has the mode table printed on it, two solder-bridge pads marked J1 and J2, and 3.3V-5V in the corner. A classic HC-SR04 has a scatter of discrete parts, a four-pin header, and nothing to configure.

Where this goes next

What is printed on the board, and which pad to count from.

Five boards and four pins

Edit this page — content/books/ultrasonic-sensor/not-the-hc-sr04-you-know.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

Ask a question ↗

Ultrasonic Distance Sensor

Loading discussions…

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum