Hardware lab 02 · Optical pointing

How the Wii Remote sees infrared light

Aim, roll, move, and obstruct the controller. The bench exposes the camera image and the geometry that turns two light blobs into a screen coordinate.

SENSOR BARTwo powered clusters emit infrared light. It sends no position data.WII REMOTE
A 1024 × 768 IR camera detects up to four bright blobs.

Live optical bench

BLOBS
2 / 4
MIDPOINT
511.8, 384.0
SEPARATION
111.9 px
ROLL
0.2°
CONFIDENCE
99% TRUE PAIR

Move the physical system

These controls change the camera-to-emitter geometry. The sensor data is recomputed from a pinhole-camera projection.

Break the optical signal

YAW
PITCH
ROLL
DISTANCE

Keyboard: arrows aim · Q/E roll · W/S move nearer/farther.

Calibration target

Calibrate while centered, then aim the controller until the green crosshair reaches the ring.

Calibration: FACTORY · estimated distance: 221 cm · FOV edge margin: 384 px

Camera report

Extended-mode style packet: 3 bytes per blob. X and Y high bits share the third byte with a 4-bit size value. Empty slots are FF FF FF.

C8 80 5F 38 80 6F FF FF FF FF FF FF
SlotRaw X,YSizeGround truth
#0456, 38415bar-left
#1568, 38415bar-right
#21023, 1023empty
#31023, 1023empty
1 · PHOTONSTwo LED clusters emit infrared light.
2 · CAMERAThe remote finds bright centroids in a 45° × 35° field.
3 · REPORTBlob coordinates and sizes become bytes, not a finished cursor.
4 · GEOMETRYMidpoint estimates aim; separation estimates distance; line angle estimates roll.
5 · SOFTWARECalibration maps camera coordinates to the television.

What to notice