~/wellseasoned.dev

Garage Beast: Halloween Decor

· 5 min read

We have frosted glass garage doors, and last year I wanted to project ghostly apparitions on to them for Halloween, but life got in the way and it never happened. This year, however, I planned ahead :) … and maybe went a little extra.

Instead of a video loop, a monstrous eye is projected on to each of the two doors, looking out at unsuspecting passers by. They track movement and the house looks at you (and even gives you side eye in some cases). They even have all the normal “eye” motions so they “look” like eyes: pupils that contract, jittery motion, looking around, etc.

Modeling Eye Motion and Behaviour

The eyes are asleep by default, a pair of dull red slits. A camera on the driveway detects motion and people. When someone steps into the driveway the eyes wake up, the pupils flare, and the gaze snaps to the visitor and follows them. When they leave the eyes drift back to idle, look around a bit, and doze off again.

Twelve seconds from the driveway: a look around, a slow blink, and back to staring. Click to pause.

There are a dozen looks. The default is a green-and-red monster, but there is a dragon, a ghost, a hypnotic spiral, the Eye of Sauron, a carved jack-o-lantern, a HAL 9000 lens, our cat’s eyes, and a plain human eye.

Four of the styles: jack-o-lantern, Tiku the cat, hypno, ghost

The first version glided the eye toward its target with an ease curve, and it looked like a cursor. Real eyes don’t glide. They wait a beat, then jump, and they usually land a little short and correct. So the eye motion was tweaked to look more “real”:

  • Saccades follow the main sequence: a 10° jump takes about 50 ms, a 20° jump about 75 ms, with a bell-shaped velocity profile. There is 150 to 250 ms of latency before the jump starts, and about a 10% undershoot with a corrective movement after.
  • Smooth pursuit for slow targets, catch-up saccades for fast ones.
  • Microsaccades and drift so a fixating eye is never perfectly still.
  • Blinks on a gamma-distributed schedule, forced on big saccades, with a fast close and a slower open.
  • Vergence damped hard. The eyes are nine feet apart, so literal geometry makes them cross for anyone closer than the street.
  • The pupil as a slow low-pass filter with a little wobble, and a big flare on wake.

None of this is visible on its own. All of it together is the difference between “a picture of an eye” and “something is looking at me.”

Tech Stack: How It Works

While there is nothing too exotic or crazy it is more of a tinkers project and not an off the shelf solution.

  • Two Casio XJ-F211WN projectors, one per door, rear projection. I am using large projectors since they need to cover the entire door and most small/cheap halloween projectors are really only mean to cover a small window or a door. Because they are bright, you can see them during the day as well. I picked these up used on eBay, I was looking for a pair so they would be consistent. As a bonus they a LAN port that let;s me turn them on/off remotely so the whole display can be scheduled.
  • Eyes Website & Server the eyes themselves are just render and displayed as a website, you can load them up on any browser. There is a tiny webserver running in the house that serves up these web pages. While a separate web server isn’t strictly necessary it helps for some of the control aspects.
  • A Raspberry Pi 5 running two Chromium kiosks, one per HDMI output, each pointed at the eye page for its door.
  • A person tracker that pulls the driveway camera’s low-res camera stream at 10 fps, runs an object recognition model (YOLO-nano), picks one person, and streams “look here” messages to the server.
  • A control page you can open on a phone: a live preview, a drag pad to aim the eyes by hand, style buttons, the tracker’s annotated camera frame.

This was the best bug. during early testing I used a single window for both eyes. But when using two different windows, the two eyes did not agree with each other. In the creepiest way:

  • Lizard blink. One eye blinks, then the other, half a second later.
  • Cross-eyed monster. Each window picked its own idle target, and the “glance at the other door” branch was hard-coded per side, so when both fired the eyes crossed. Very funny. Not scary.
  • Half asleep. Each window ran its own doze timer, so one eye would close while the other stared at you.

The cause was that each window was making its own decisions with its own randomization on its own clock. Two different creatures, with different brains that happened to receive the same signals.

In the end it was easiest to make the server the brain: it already sits between every message, has one clock, and never goes into a background tab. It now owns everything that is decided (sleep and wake, idle targets, blink timing, the current style), and the browsers only interpolate (the saccade engine, pursuit, micro-movements, rendering). On connect a window gets a sync message and matches the others instantly.

How it was built

One amber eye on black with debug overlay text

The very first render, 27 August: one amber eye with the debug HUD on

Claude Code did the heavy lifting: The eye-movement research, the projector protocol spelunking, the sync fix and its headless test harness all came out of claude code sessions.

The rig turned out to be more general than Halloween. The same projectors, Pi and server now have a page of Christmas loops, and the eyes are just the first thing we projected on the doors.

Code, Config, etc…

vfilby/GarageBeast Projected garage door eyes that wake up and follow visitors

Asleep: two dull red slits, barely there