Jessie's Cars
Back to Scanner

Wiring

Every electrical connection in the scanner, where each part sits, and a list to tick off at the bench. This is the build with the LED projector. Taken from the repository's README, parts list and firmware notes as of 17 November 2026.

Board
Raspberry Pi Pico or ESP32-S3-Pico
Projector
LED, on an IRLB8721
Line lasers
Two, or four
Power
5 V from the board's USB
Board
Line lasers

Schematic

Pin numbers are the physical pins on the board's edge. Both boards use the same physical pins, so only the GPIO names change.

In the headPerfboard, in the gripPicoUSB cable to the PC40 VBUS4 GP25 GP39 GP638 GND36 3V36 GP47 GP58 GND20 GP1518 GNDKill toggle MTS-102on the back covermiddle lugunused lugswitched +5 V5 V from USBV laser · right armred +black −Q1 PN2222CBE1 kΩH laser · top armQ2 PN2222CBE1 kΩV laserH laserLED star · projector+−8.2 Ω 3 WQ3 IRLB8721DGS10 kΩprojectorground of every ⏚IMULSM6DSOXback coverVINSDASCLGND3.3 VSDASCLgroundTrigger buttonfront of the griptriggerground
Power (+5 V, 3.3 V)Laser and LED return (to the switch)GroundSignal from the boardIMU data (I²C)

The colours show what a wire carries; use whatever wire colours you have. Each ⏚ symbol goes to one shared ground on the perfboard, and one wire takes that ground to pin 38.

Where everything sits

Seen from behind, the way you hold it. The camera faces away from you; the lasers and the projector cartridge slide in from the back.

H-line lasertop arm, focus at 25 cm, line levelLED projector cartridgeLED star + heatsink at the back, mask, M12 lensBack coverKill toggleIMUstereo camera behind the faceplate, on the far sideV-line laserright arm, line verticalperf-boardPicoCable slotcamera USB, 1× +5 V,3× returns, 4× IMUTrigger16 mm button, front of the gripPerfboardQ1–Q3, resistors8.2 Ω gets warm: give it airPicoright grip half, USB pointing downBoard USBto the PCCamera USBto the PC

Part pinouts

PN2222 transistor (Q1, Q2)

flat facetoward youEBC

E to ground, B to the 1 kΩ, C to the laser's black wire. This is the Adafruit part. Some “2N2222” parts are C-B-E, so check the datasheet of what arrives.

IRLB8721 MOSFET (Q3)

printed sideGDS

G to pin 9 directly, plus 10 kΩ to ground. D to the 8.2 Ω resistor. S to ground. The metal tab is also the drain, so keep it off other wires.

Kill toggle MTS-102

outermiddleouterpin 40 VBUS on the middle

The middle lug takes 5 V from pin 40. One outer lug feeds the lasers' red wires and the LED's +; the other outer lug stays empty. The lever joins the middle lug to the lug on the opposite side, so check with a meter which lug is live in your “on” position.

Board pins used

USB end1234V laser GP25H laser GP36IMU SDA GP47IMU SCL GP58IMU GND GND9projector GP6101112131415161718trigger GND GND1920trigger GP15212223242526272829303132333435363V3 IMU VIN3738GND perfboard GND3940VBUS to toggle

Seen from the top, USB end up. In the grip the USB end points down.

IMU breakout (Adafruit LSM6DSOX): use only VIN, GND, SCL and SDA. LED star: the pads are marked + and −.

Connection checklist

Tick each wire as you solder it. The ticks stay in this browser only. 0 of 15 done.

DoneFromToRuns
Kill toggle, middle luggrip → back cover
Red wire of the V laser and the H laser; LED star +in the head
Q1 collectorhead → grip
Q2 collectorhead → grip
8.2 Ω 3 W resistor, then Q3 drainhead → grip
1 kΩ to Q1 baseperfboard
1 kΩ to Q2 baseperfboard
Q3 gate, and 10 kΩ from the gate to groundperfboard
Perfboard ground, then board pin 38 (GND)perfboard
Board pin 36 (3V3)back cover → grip
Board pin 6 (GP4) / pin 7 (GP5)back cover → grip
Board pin 8 (GND, next to pins 6 and 7)back cover → grip
Board pin 20 (GP15)in the grip
Board pin 18 (GND)in the grip
The PC, two cablesout of the grip

Before you power it

Lasers

The line lasers are Class 3R. Never look into them, and point the scanner at a wall or a sheet of paper while testing.

Power budget

The LED draws about 340 mA and each laser a few tens of mA, so about 0.45 A in all with two lasers, and a little more with four. A USB 2.0 port is rated for 0.5 A. With four lasers, use a USB 3 port (0.9 A) or a powered hub.

First test with the toggle off

Plug in the board and send HELLO in a serial terminal; it should answer with imu=LSM6DSOX. Then switch the toggle on and try EMIT 20 0 0, EMIT 0 20 0 and EMIT 0 0 20. The firmware turns everything off 1.5 s after the PC goes quiet.

Keep the emitters off during reset (optional)

A 10 kΩ resistor from each transistor base to ground keeps the lasers dark while the board is in reset or in boot mode.

Heat

The 8.2 Ω resistor dissipates about 1 W and gets warm. Leave it room on the perfboard, away from the plastic.

Wires to the head

Run them through the slot under the camera: the camera USB, one +5 V to the toggle, three returns (V, H, LED) and four IMU wires. Sleeve each joint with heat-shrink.

OpenHandScan · wiring referenceFrom docs/wiring.html in the Scan repository · MIT licence