speed sensor/The board/01. The four pins
The board · 01 of 10

The four pins

Four pins, three of them wired: GND on the square pad, VCC to the whole block, and SIGNAL from its comparator. NC is connected to nothing. Something in the slot reads HIGH; a clear slot reads LOW and lights the red LED. VCC is your board's logic voltage, because the block pulls SIGNAL up to it.

Three wires and a spare

The header is four right-angle pins, 2.54 mm apart, printed GND, VCC, NC and SIGNAL from left to right with the parts facing you. GND is on the square pad, and that pad is the only way to tell four identical holes apart. Count from it.

The four pins, and the slot
Show
Pins
4
Pins to wire
3
Blocked reads
HIGH
SIGNAL is the comparator's answer. Slot clear, the comparator pulls it LOW and the red LED lights. Something in the slot, the comparator lets go, the 10 kΩ pulls it up to VCC, it reads HIGH and the LED goes dark. So HIGH means blocked.

Pick a pin to see where it goes. GND is the return for every part on the board. VCC powers all of them, including an infrared LED that is on the whole time. SIGNAL is the output of a comparator chip, with a 10 kΩ pull-up to VCC. NC is in no net at all.

What HIGH means

The black part at the top is a slot with a beam of infrared across it. With the slot clear, SIGNAL is LOW and the red LED beside the header is lit. Push a piece of card into the slot and SIGNAL goes HIGH and the LED goes out. So HIGH means something is in the way. A slotted disc on a shaft turns that into one pulse for every bar that passes, which is how the block measures speed.

The back of the TK61, header at the bottom: a black board with a gold border, four solder joints of the slot sensor near the top, lonely binary across it, a speedometer drawing between two round LEGO holes, a gold box printed TK61 INFRARED SPEED SENSOR, four header pads with the square one on the right, and MEASURES SPEED VIA PULSES along the bottom edge. No pin names are printed on this side.
The back. Turned over, the square pad is on the right, and it is still GND.

VCC is not a free choice

SIGNAL's HIGH comes from a 10 kΩ resistor to VCC, so VCC decides what voltage your board's pin sees. Wire it to the voltage your board's pins run at: 3V3 on an ESP32, an ESP32-S3 or a Pico, 5V on an Uno. VCC is your logic voltage shows what the wrong one does.

When it does not work

Which end of the header is GND?

The square pad. From the front, parts up and pins pointing down, it is the left-hand pin, and the order is GND, VCC, NC, SIGNAL. The back prints no pin names; turned over, the square pad is on the right and it is still GND.

Should I connect NC to something?

No. It is soldered to a pad that no trace reaches, so it makes no difference either way. It is there so every TinkerBlock block has the same four-pin header and one cable fits all of them.

The red LED is on with nothing in the slot. Is that a fault?

No, that is the normal state. The LED lights while the beam is clear and goes out while something blocks it. It shows the block's answer, not whether it has power.

Where this goes next

The slot sensor, the comparator, and the resistors that set how it decides.

What is on it →

Edit this page — content/books/ir-speed-sensor/the-four-pins.mdx

Community

Questions about this product

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

Ask a question ↗

Infrared Speed 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 →