🐾 🐾 🐾 🐾
A cat toy that plays back

The laser she can catch — and never keep.

It watches her. When she loses interest it walks the dot into her line of sight and trembles until she looks. When she finally lands a paw on it, it waits a beat — then bolts the other way and the hunt starts again.

Real cat detection Baits her in Escapes when caught Rebuild it in Lego
The Laser Lego Meow turret, with a grey tabby cat watching from behind
30 fpsLive cat tracking
2 axesPan & tilt turret
≤5 mWPet-safe laser
~$55In parts
🐾 Baits her in🎯 Predicts her path 🔴 Escapes when caught🧱 Rebuild it in bricks 📱 Track her playtime🛡️ Pet-safe by design 🐾 Baits her in🎯 Predicts her path 🔴 Escapes when caught🧱 Rebuild it in bricks 📱 Track her playtime🛡️ Pet-safe by design
01The problem

Random isn't prey.

Ordinary auto-lasers sweep in patterns. Cats aren't hunting patterns — they're hunting something that reacts, gets caught, and gets away again.

Bored in 4 minutes Never notices the cat No catch, no payoff
A cat inspecting the turret closely

The client, conducting a rigorous inspection.

02How it works

It aims where she's going.

Thirty times a second, the same three steps a real predator runs.

1

Sees

A camera on the turret head. Every frame goes through a detector that knows a cat when it sees one.

No collar tagNo training
2

Predicts

Frame-to-frame change gives speed and heading. A filter smooths the noise and projects forward.

VelocityKalman filter
3

Leads

Aim just ahead of her, not at her — close enough that the pounce is worth trying, quick enough to slide out from under her paw.

Lead pursuitCatchable, barely

Tracking isn't a game. Three behaviours make it one.

🐾

Baits

Cat not playing? The dot walks into her line of sight and trembles right in front of her until she looks — then scampers off in one direction for her to follow.

Tease modeConstant tremble
✋

Holds

When she freezes and stares, it freezes too. Prey that stops moving is the one thing a cat cannot walk away from — so she commits and ambushes it.

FreezeAmbush bait
💨

Escapes

Her paw lands on it. It waits a beat under her foot — long enough to feel like a win — then bolts the opposite way. Caught, never kept.

Dart on contactChase resumes

Try the lead yourself

Move your cursor (or finger) around the box — you're the cat.

🐈
Move around in here 🐾
12
Just right — close enough to pounce, quick enough to escape.
03The app

A fitness tracker for her hunting.

Open it on any phone on the same wifi. Live camera, live aim, live score.

Pounces landed Interest % Playtime Lead slider, mid-game Play-by-play

Nothing else in this category tells you anything about your cat.

LLM
Laser Lego Meowplaytime
Looking…
Nobody around yet
Pounces
0
Interest
0%
Played
0s
Left / right90°
Up / down90°
04See it hunting

Twenty-five seconds of the real thing.

Not a simulation — this is the toy on a bucket, a laptop running the vision, and a cat who has done this before. Sound on: you can hear her land on it.

🔊 Has sound — press play
  1. 0:00
    It trembles at herThe dot sits in front of the cat and shivers, the way something alive and cornered would.
  2. 0:05
    She catches it — and it leavesPaw down on the dot. It holds still under her foot for a moment, then breaks the opposite way.
  3. 0:09
    She stops, so it comes to herWhen she's still, the dot crosses directly into her line of sight, then scampers off in one direction.
  4. 0:13
    It keeps working for her attentionShort darts and pauses rather than a constant sweep — the pattern never becomes predictable.
  5. 0:19
    She sets up an ambushFlattened, tracking it, waiting. This is the part a random sweeping laser never gets out of a cat.
  6. 0:25
    Got youShe wins the round. The toy is built to let that happen — and to be gone again a second later.
05The build

Designed, printed, clicked together.

Every component got a custom mount with Lego studs — so printed parts and bricks share one grid.

8 mm stud pitch 3D-printed PLA Tool-free rebuild Cat-visible colours
Laptop showing a CAD model of a Lego-compatible mount, with a cat watching

Supervised CAD. Every mount modelled around the real part.

Why Lego-compatible

A project still being tuned needs to change shape. Bricks mean balance, camera angle and laser alignment can be redone in seconds instead of a four-hour reprint.

Yellow and blue aren't decoration. Cats are dichromats — blues and yellows read clearly, reds and greens wash out to grey. The toy is coloured for the species using it.

From taped-together to assembled

Version one was a laser pen zip-tied to a servo, balanced on a glass box, aimed by hand — just enough to prove the geometry worked.

Early prototype: a laser pen on a servo balanced on a glass box

Prototype one. Ugly, and completely necessary.

Close view of the turret showing servos, camera and controller
Two servos, a camera, a controller — all on printed mounts.
Workbench with screws, printed mounts and the partly built turret
Screws for the mounts, bricks for everything else.
Side profile of the finished turret held in a hand
Camera and laser aligned on one head.
A cat reaching toward the turret
Field testing. The tester was not briefed.
Laptop running the tracking software beside a cat
The tracking loop running live, beside its subject.
The finished turret on its Lego baseplate beside a cat
Off duty, still being watched.

You can build this one yourself.

It isn't a sealed box. It's a parts list, a set of printable mounts, and a brick-by-brick guide — change the shape whenever you want.

PrintThe mounts, from the shared files
ScrewEach part into its holder
ClickThe turret together in bricks
RunOne command, then open the app
06The manual

Ten steps, bottom to top.

Screw the electronics into their printed mounts, then stack the whole turret in bricks.

camera+ laser 7 tilt servo+ handle 6 2-stud gap= wire channel 5 on the horn 4 pan servo 3 5 studs 2 ESP32-S3 tray breadboard tray 9 Side view. Yellow = 3D-printed Lego-compatible mount. Blue = standard brick. Cream = baseplate.

Screw everything into its mount

Camera, laser pen, both servos, the board and the breadboard each get screwed into their printed holder first. Do this before any bricks.

Two bricks on the baseplate

Place two 2×4 bricks with 5 studs of gap between them. These are the turret's legs.

Pan servo bridges the gap

Sit the horizontal pan servo module on top of both bricks so it spans the gap, output shaft facing up.

Plate on the pan horn

Attach a 2×6 to the servo's metal spinning disc. This becomes the rotating platform — everything above turns with it.

Two blocks, one channel

On the 2×6, add two 2×2 bricks with a 2-stud gap. That gap is the pass-through for the camera cable.

Tilt servo goes vertical

Mount the tilt servo module upright on the two 2×2s, then clip its support handle on top of the module.

Plate on the tilt horn

Same trick again — a 2×6 onto the tilt servo's spinning disc. This is the head.

Camera and laser onto the head

Clip both holders side by side on the 2×6, facing the same direction. That alignment is what lets the software aim without calibration.

Trays on the sides

Attach the ESP32-S3 tray and the breadboard tray to the free edges of the baseplate, away from the turret's sweep.

Route the wires, leave slack

Feed the camera cable and servo leads up through the 2-stud channel. Leave plenty of slack — panning twists them, and a taut cable stalls a servo.

Wiring

Four kinds of connection. Nothing else touches the board.

Pan servo · signal
→
GPIO 4
Tilt servo · signal
→
GPIO 5
Both servos · power
→
5V pin
Both servos · ground
→
GND
Camera
→
USB → laptop
ESP32-S3
→
USB → laptop
⚠ Power is where boards die. Two light servos moving gently run fine from the 5 V pin, but if the board resets or the serial connection drops when the servos move, that's a brown-out — give the servos their own 5 V supply and tie its ground to the board's GND. Never let an external supply's positive touch the board. A 470–1000 µF capacitor across the servo rail helps either way.

What you'll need

Approximate USD, varies by seller
ESP32-S3 dev boardWaveshare or similar
×1
$7
MG90S servoMetal gear — plastic gear backlashes
×2
$10
USB camera moduleUVC, 720p30, bare board, wide lens
×1
$15
Pet laser pen≤5 mW red — nothing stronger
×1
$4
Lego baseplate16×16 or larger
×1
$4
Bricks2× 2×4 · 2× 2×6 · 2× 2×2
×6
$3
3D-printed mounts6 parts, ~40 g of PLA
×6
$2
M2 screw assortmentFor fixing parts into mounts
×1
$5
Dupont jumpers + mini breadboardMale-to-female
×1
$5
5 V 3 A supply + capacitorOptional but recommended
×1
$9
Everything, including the optional supply≈ $64
07Under the hood

Vision on the laptop. Motion on the chip.

A microcontroller can't run a neural network. A laptop can't hold a servo steady. So each does one job.

01 · input
USB camera

Mounted on the head, so it always looks where the laser points.

02 · perception
Detect & track

YOLOv8-nano finds the cat. A Kalman filter cleans it into position + velocity.

03 · control
Lead & centre

Predicted position drives a proportional loop that outputs pan and tilt.

04 · output
ESP32-S3

Angles stream at 20 Hz. Two servos move the head; the laser rides alongside.

Detection
YOLOv8-nano · COCO · cat + person
Tracking
Kalman filter · [x, y, vx, vy]
Aiming
Lead pursuit · tunable lead time
Control
Visual servoing · P-gain + dead-zone
Actuation
2 × MG90S metal-gear servos
Interface
Flask · MJPEG · any device on the network
08Engineering

Four forks, and four things that fought back.

Each decision had a much harder path on the other side. Each failure produced a rule worth keeping.

01

Camera on the gimbal, not on the wall

A fixed camera means solving image-plane-to-floor geometry, then floor-to-servo angles, and recalibrating whenever anything moves. Mounting it beside the laser turns it into: cat left of centre → turn left.

Deleted a whole calibration stage
02

Lead the target, don't track it

Aiming straight at the cat is easier and completely wrong — a dot she can hold down ends the game. Leading her keeps it inside pouncing range but still able to leave, which is the band where she keeps playing.

The lead distance became the fun dial
03

Split the brain from the body

Running detection on the microcontroller was never possible. Keeping vision in Python meant a real debugger and instant iteration.

Tracking was proven before any hardware arrived
04

Bricks instead of a fixed enclosure

Custom mounts with Lego studs meant the geometry could change in seconds rather than a reprint.

Balance re-tuned a dozen times at zero cost

The brown-out that ate a board

Servos drew current through the controller's 5 V rail. Each move sagged the voltage and reset the chip mid-loop — which looked exactly like a software bug. A rewiring slip during the fix killed a board outright: 60 °C in two seconds.

Rule: servos get their own supply, sharing only ground.

Serial that dropped every second

When the board reset, its USB-serial device vanished and the connection went stale. Auto-reconnect kept it limping, which hid the real cause for far too long.

Rule: a workaround firing constantly is a symptom, not a fix.

A turret that ran away

Once the camera moved with the head, the sign of the error flipped. The turret chased away from the cat and lost her instantly — a stable-looking loop, wired backwards.

Rule: confirm loop polarity before touching gains.

Oscillate or lag, pick one

High gain overshot and wobbled; low gain trailed behind a moving cat. A jittering dot near centre made both worse.

Rule: tune gain for capture, add a dead-zone for rest.
09Safety

Software aiming a beam at a live animal.

That deserves more than good intentions.

✓
Pet-rated laser only≤5 mW red — the class sold as a cat toy. Nothing stronger, ever.
✓
Software geofenceTilt is clamped in firmware so the beam can't rise toward eye level.
✓
Physical kill switchA hardware off that owes nothing to the software being correct.
✓
It aims ahead, not atThe lead offset targets floor in front of the cat, not the cat.

Caught. And gone again.

A camera, two servos, a pile of bricks, and a cat who wins just often enough to keep coming back.