analog to digital signal/The board/02. Which pin is which
The board · 02 of 11

Which pin is which

OUT prints GND, VCC, DIG and ANA, GND on the square pad. IN prints nothing, and takes a block's GND, VCC, NC and SIGNAL in the same order. Three of OUT's pins are the same copper as three of IN's: only DIG is new, and it sits where a sensor block has NC.

OUT, from the square pad

Which pin is which
Show
Holes
8
OUT pins to wire
3 or 4
Pitch
2.54 mm
ANA is not an input to this board. It is the IN block's SIGNAL, the same copper, carried straight through to your board. Read it with analogRead and you have the number the comparator is deciding about. Wire nothing to it but an analog pin.

Parts up and OUT at the bottom, the pins read GND, VCC, DIG, ANA from left to right, and the names are printed along them. GND is on the square pad.

GND and VCC power the whole thing: the comparator, the knob, the LED, and the block in the IN socket, which gets its supply through the TK29.

DIG is the comparator's output: HIGH or LOW. It goes to a digital input on your board.

ANA is not an input. The net list puts it on the same net as the IN socket's fourth position, so it is the block's SIGNAL carried straight through. Wire it to an analog input if you want the number as well as the decision; leave it unconnected if you do not.

IN, in a block's order

The socket prints only IN beside it. Its four positions, left to right, are GND, VCC, nothing, and the input: the same order as every TinkerBlock sensor's header, GND, VCC, NC, SIGNAL. So a block plugs in with its parts facing the same way as the TK29's, and each of its pins meets the right one.

The third position is in no net at all. It is where the block's NC lands, so nothing is lost.

The TK29 at an angle: the black IN socket stands over the top edge with its four gold legs soldered behind it, the silver slide switch and the eight-legged chip below, the tall blue trimmer in the middle, a small LED and resistor at the lower left, gold chevrons down the right edge, and four right-angle pins leaving the bottom edge beside printed labels reading GND, VCC, DIG and ANA.
The pin names are printed along OUT's pins, not beside the holes. IN prints none.

Why DIG is third

Put a sensor block's header beside OUT and compare. GND, VCC and SIGNAL line up with GND, VCC and ANA; where the block has NC, the TK29 has DIG. That is the design: OUT is the block's own header with the unused pin put to work.

It also means VCC has to be your board's logic voltage. DIG is pulled up to VCC, and the block's SIGNAL can reach VCC too, so 3V3 beside an ESP32, ESP32-S3 or Pico, and 5V beside an Uno.

The back

The back of the TK29: a black board with a gold border, lonely binary across the top, a large pair of curved arrows, the solder joints of the socket, switch and trimmer, a boxed label reading TK29 and ANALOG TO DIGITAL SIGNAL, four header pads with the square one on the right, and OUTPUTS DIGITAL SIGNAL and COMPARES ANALOG VOLTAGE along the bottom.
The back names the part, not the pins. The square pad is on the right from here.

The back prints the part number and what it does, and no pin names. Turned over, the order reverses: the square pad is on the right, and it is still GND.

When it does not work

Which pin on OUT is GND?

Hold the board with the parts facing you and OUT at the bottom. Read GND, VCC, DIG, ANA from left to right; the names are printed along the pins. GND is also the square pad, which is the mark that survives once the board is in a breadboard.

Which way round does a block go into IN?

Parts facing the same way as the TK29's, the block above it, its pins pushed down into the socket. Then the block's GND meets the socket's left-hand position and its SIGNAL the right-hand one, which is what the board expects. Backwards, the block's GND lands on the TK29's SIGNAL position and nothing works.

Can I put a sensor on ANA instead of in IN?

It would work electrically, because ANA and IN's fourth position are the same copper. But the block would get no power from that one wire, so you would be wiring GND and VCC to it separately. IN exists so you do not have to.

The back has no pin names.

No. It prints TK29, ANALOG TO DIGITAL SIGNAL and two lines about what it does. Turned over, OUT's square pad is on the right, and it is still GND.

Where this goes next

What the comparator does with the two voltages, and what the answer cannot tell you.

Two inputs, one answer

Edit this page — content/books/analog-to-digital-signal/which-pin-is-which.mdx

Community

Questions about this product

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

Ask a question ↗

Analog to Digital Signal

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