HUMANNODENeuroNode EEG GuideProduct page →

6 · Your first BCI: SSVEP

Goal: choose one of four on-screen targets just by looking at it. No training needed.

How it works. Each target flickers at its own frequency: 7.5, 8.57, 12 or 15 Hz. When you look at one, your visual cortex produces a response at that exact frequency (a steady-state visual evoked potential, or SSVEP). A decoder called CCA (canonical correlation analysis) finds which frequency is strongest every 0.25 s.

⚠️ Photosensitivity warning. Flickering lights can trigger seizures in people with photosensitive epilepsy. Don't run this with anyone who has epilepsy or a history of seizures. Stop if you feel unwell.

We use hnbot, our open-source app. Its decoder and flicker screen work on their own. The robot part is a simulator unless you own a Bajie robot.

Step 1: Install

git clone https://github.com/nonameisready/hnbot.git
cd hnbot
python3 -m pip install -e ".[bci]"

Step 2: Practise with simulated EEG

hnbot bci

Open http://127.0.0.1:8765, read the notice and press I understand · start. Click a tile to pretend you're looking at it, and watch its score climb until it "fires".

Step 3: Electrodes

Place electrodes at O1, Oz, O2, and at PO3, POz, PO4 if you have spare channels. Reference and bias go on the earlobes or mastoids. Use gel or flexible electrodes if you can, because SSVEP signals are small. Note the channel numbers: hnbot counts from 0, so amplifier channels 1, 2, 3 are --channels 0,1,2.

Step 4: Run it with your kit

Close OpenBCI GUI, then run:

hnbot bci --eeg cyton_wifi --ip-address 192.168.4.1 --channels 0,1,2

--eeg takes a BrainFlow board name. Use the board type for your kit and connection from the quick-start card. Examples: cyton plus --serial-port COM3 for a USB dongle, or cyton_daisy for 16 channels.

Step 5: Screen and posture

  • Use a 60 Hz display (set 120/144 Hz monitors to 60 Hz), full screen, about 60 cm away, in a dimly lit room.
  • Relax your jaw and shoulders, and blink normally.
  • Look at the centre of a tile for 2–3 seconds. A command fires only after the same tile wins 3 windows in a row by a clear margin, then there's a 3 s cooldown.

Step 6: Tune it

Problem Try
Fires too easily --threshold 0.45 or --hold 4
Never fires improve O1/Oz/O2 contact; --threshold 0.3; --window 3
One tile always wins a noisy channel: re-seat it or leave it out of --channels

Going further

  • Research. The decoder is plain Python (hnbot/bci/ssvep.py). Swap in FBCCA, TRCA or your own model, and change the frequencies or number of targets.
  • Control something. Each tile triggers a "task". With a Bajie robot, the same screen sends it to fetch water, tidy up or call for help (Bajie guide).

✅ Done. You've built a working brain-computer interface.

Questions? Email contact@humannode.dev. Developer Platform customers get 3 months of direct technical support.