Result

Tl;dr: I finished four mazes in a row just by looking at flickering boxes. Three of them took exactly the shortest path. Across all four, 42 of my 51 looks did what I meant, which is 82%.

Flicker warning: the video shows boxes flashing 6 to 10 times a second. Skip it if flashing light affects you.

The first maze in the table below (22:22), start to exit in real time, about 22 seconds. Each time the software picks a box, it outlines it in yellow and the player moves one cell. Out in 8 steps, the shortest path, with 3 looks that hit a wall along the way.
The maze game: a small maze in the middle of the screen with four grey boxes around it labelled Up 6 Hz, Left 7.5 Hz, Right 8.57 Hz and Down 10 Hz. The Right box has a yellow outline, and the player has just moved one cell to the right.
The first maze, five steps in. I’m looking at the right-hand box (8.57 Hz). The yellow outline means the software picked it, and the player has just moved one cell right.
MazeShortest pathSteps I tookLooks that hit a wall
22:22883
22:24, first12122
22:24, second880
22:24, third12162
Total40447

A look toward a wall doesn’t move the player, so those 7 cost time but not position. Each maze has only one route to the exit. The 4 extra steps in the last maze were two wrong turns, and I walked each one straight back. So 9 of 51 looks went wrong: 7 walls and 2 wrong turns.

How it works

When you stare at something flickering, the visual part of your brain, at the back of your head, starts pulsing at the same rate. It’s called a steady-state visual evoked potential, or SSVEP. It’s one of the most reliable signals you can get from EEG, because you control it just by choosing where to look.

  • Four boxes, four rates. Up flickers at 6 Hz, left at 7.5 Hz, right at 8.57 Hz and down at 10 Hz. I kept them all between 6 and 10 Hz because that’s the range my brain responded to best in earlier tests.
  • Four sensors. I used O1, Oz, O2 and POz, all over the back of my head, on the same homemade 8-channel board as my daily EEG sittings.
  • One decision every quarter second. The software looks at the last 3 seconds of signal and scores which of the four rates is strongest. If the same box wins clearly twice in a row, the player moves one cell.

In practice, a step took about 1.5 seconds when I held my gaze on one box. The mazes took between 18 and 50 seconds each.

What made the difference

1. A 5-second noise check before anything flickers

Before the boxes start, the recorder listens for 5 seconds while I sit still. For each sensor, it measures how much of the signal is the 50 Hz hum from the wall socket. A sensor that isn’t pressed firmly against the skin picks up much more of that hum, so the hum works as a contact test. If it’s more than 0.15 of the signal, the check flags that sensor.

It flagged a lot. I ran the check 12 times between 21:50 and 22:15, and 8 of them flagged at least one sensor. The worst read 12.9 on POz, almost a hundred times over the limit. Each time, I pressed the sensors back down and ran the check again. The maze runs came after a check where all four sensors were under 0.05.

What surprised me was how quickly a sensor goes from good to bad. A check that was clean at 22:04 flagged again less than a minute later. Without the check, I wouldn’t have known, and I would have blamed the software when the player started wandering.

2. Signal size isn’t a contact test

The first number I used to look at was signal size. On this board it’s no use for checking contact. Even with good contact, the back sensors read thousands of microvolts, mostly a steady offset that the software removes before it scores anything. The clean check at 22:08 read about 16,000 µV on O1 and 69,000 on POz, and it still passed, because the hum was low. The hum is the number that tells you about the contact.

3. Two agreeing checks are kinder than one

The maze is more forgiving than my calibration test. In calibration, each 3.5-second look gets one guess, and the best I’ve managed is 23 of 32 (72%), earlier the same evening. In the maze, the player only moves when two checks in a row agree, and a wrong look toward a wall does nothing. That’s why the maze score is higher, and it’s why most of my misses were wall bumps rather than wrong turns.

What this does and doesn’t show

It shows the whole chain working live: board, Bluetooth, flicker, classifier and game. There were no dropped samples over Bluetooth, and the display missed only 1 frame in each calibration.

It’s one evening and four small mazes, so 51 decisions in total. I don’t know yet whether it holds on another day, with a fresh setup. The 82% also depends on how you count. If you only count steps that moved me forward along the route, it’s 40 of 51 (78%). And, as always, this is just me, on a board I put together myself. None of it is medical.

For the EEG folks

8-channel ADS1299 + ESP32-S3 at 500 Hz over Bluetooth into LSL. O1, Oz, O2, POz with wet cups. Stimuli are frame-locked on a measured 120 Hz display: 6, 7.5, 8.57 and 10 Hz (periods of 20, 16, 14 and 12 frames), flicker depth 0.45. Classifier: FBCCA up to the third harmonic, 3 s window, updated every 0.25 s. A step needs the same target to beat the runner-up by 0.1 on two consecutive updates.

Pre-run check: 5 s at rest, ratio of 49–51 Hz power to 1–40 Hz power per channel, flagged above 0.15. Maze: 4 perfect mazes (recursive backtracker), 51 decisions, 7 into walls, 2 wrong open moves. That’s 42/51 (82%) intended, or 40/51 (78%) counting only steps along the solution path. Calibration earlier that evening: 23/32 (72%) at 3.5 s.

Limits: n = 1, one session, no offline replay of the maze decisions yet.

The code is on GitHub at agteo/ssvep-mouse-control. The EEG receiver is in agteo/diy-eeg-mac. More on the build is on Things I’m Building.