TK50 ultrasonic/What is in the box/03. Five boards and four pins
What is in the box · 03 of 11

Five boards and four pins

Five identical boards, 46 × 26 mm, with everything you need to know printed on the back of each one — the mode table, the supply range, and a header whose first pin is square.

Both sides

The board, both sides
46.4 × 26 mm
Count from the square pad. That is GND, and it is the only marking you can still see once the board is in a breadboard and the printed names are face down. The order from it is GND, VCC, ECHO, TRIG. The row of 4 round holes above the header is a 2.0 mm connector footprint on those same four nets, left unfitted — it is the TinkerBlock cable position, not a second pinout.

The front is the pair of aluminium cans, which is the half everybody recognises. The back is where the information is, and it is worth a minute because this board prints more about itself than most.

The back of the TK50 board: a white mode table top left reading MODE J1 J2 with rows GPIO cross cross, I2C tick cross, UART cross tick, 1WIRE tick tick; two small gold solder pads on the left edge labelled J2 above J1; a white box reading TK50 ULTRASONIC DISTANCE SENSOR with lonely binary beneath it and 3.3V-5V below that; a sixteen-pin chip on the right; and a row of four pins labelled, left to right, GND, VCC, ECHO slash SDA slash TX and TRIG slash SCL slash RX, the GND pad square and the rest round.
The back of the board. Everything you need to wire it and to choose a mode is printed here.

What is printed, and why it matters

3.3V-5V, in the bottom corner. That is the supply range, on the part itself, and it is the single fact that separates this board from the HC-SR04 its listing is named after.

The mode table, in the top left — four rows, two columns, ticks and crosses. It is the truth table for the two solder pads beside it, and it means you never have to look anything up with the board in your hand.

J2 and J1, on the left edge, in that order top to bottom. Note the order: J2 is the upper one. It is an easy thing to get backwards with an iron in your hand and a magnifier in the other.

ECHO/SDA/TX and TRIG/SCL/RX, beside the last two pins. One pin, three names, because one board serves four protocols — one pin, three names untangles which name applies when.

The pins

PinGPIOI2CUART1-Wire
1GND — square padGNDGNDGNDGND
2VCC3.3–5 V3.3–5 V3.3–5 V3.3–5 V
3ECHOEchoSDATXnot used
4TRIGTriggerSCLRXData

Left to right on the back, pins pointing down. From the front the order reverses, which is the usual way to end up with VCC and GND swapped.

What is underneath

One chip does everything: an RCWL-9610A in a 16-pin package, in the middle of the board. Around it are the two transducers — a HY40A16T12-1 transmitter and a HY40A16R12-1 receiver, 16 mm across, 40 kHz — and a handful of resistors setting the gain of the receiving amplifier.

Two of those resistors are the interesting ones. Each runs from a chip pin to one of the jumper pads, whose other side is ground, and they are 10 kΩ. That is the mode-select circuit, and it is two solder bridges away from being interesting.

Five of them

Enough to put one on each side of a robot and still have a spare, which is the argument for a pack rather than a part. It is also enough to commit one or two to a soldered mode and leave the rest as they came — a bridge is not something you undo casually.

When it does not work

Which way round does the header go?

Count from the square pad, which is GND. The order from there is GND, VCC, ECHO, TRIG. Once the board is in a breadboard the printed names are face down and the square pad is the only marking you can still see, which is why every sketch in this handbook says to count from it.

What are the four round holes above the header?

A 2.0 mm connector footprint on the same four nets, left unfitted. It is where the TinkerBlock cable plugs in when you buy that connector separately. It is not a second pinout — soldering to it gets you exactly the header's pins in the same order.

Do the boards come with the pins fitted?

The 3D model and the renders show the four-pin header soldered in place, which is how the TinkerBlock boards are normally supplied. Check your own box before planning a build around it, because a bag of loose headers means an evening with a soldering iron first.

Can I mount it behind a panel?

Only if the two cans can see out. They need clear air in front of them — a hole each, not a grille and not a sheet of plastic across the front. A cover over the transmitter muffles the burst; a cover over the receiver muffles the echo; either one shortens the range dramatically.

Where this goes next

Four wires and a dozen lines, with no library at all.

The first reading

Edit this page — content/books/ultrasonic-sensor/five-boards-and-four-pins.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