Overview
People living with ALS or locked-in syndrome often keep control of their eyes long after other movement is lost. This project turns eye movements into computer input: electrodes pick up the electrooculography (EOG) signal, a biopotential front-end digitises it, and software classifies looks up, down, left and right into keyboard commands — enough to navigate an interface or play a game.
It was an independent R&D project, documented publicly on Hackster.io, and received an Honorable Mention in the Build2gether Inclusive Innovation Challenge.
Problem
The eye acts as a dipole: the potential measured near it rises as the cornea moves toward an electrode and falls as it moves away. That signal is only microvolts to millivolts in size, drifts slowly with electrode contact, and sits under mains interference. Turning it into reliable direction commands needs a clean front-end and careful filtering.
Requirements
- Acquire EOG with low noise and high resolution
- Remove baseline drift and powerline interference
- Detect up, down, left and right movements in real time
- Map each movement to a computer input without custom drivers
- Wireless, so the user isn't tethered to the computer
System architecture
Hardware
- Texas Instruments ADS1299 — a low-noise, multichannel 24-bit analogue front-end designed for biopotential measurement, used here to amplify and digitise the EOG signal.
- ESP32-S3 — reads the converter and streams the samples to the host over Wi-Fi.
- Flexible semi-dry electrodes — more comfortable for long sessions than gel electrodes, with less preparation.
- A 0.1 Hz high-pass stage removes baseline wander caused by electrode drift.
Signal processing
Processing runs on the host in Python:
- 80 Hz low-pass to remove high-frequency noise
- 50 Hz and 100 Hz notch filters for powerline interference and its harmonic
- A median filter to smooth the signal without rounding off the step changes that mark an eye movement
- Threshold classification of the filtered horizontal and vertical components into up, down, left and right
Each classified movement is sent as a keyboard event, so any application that accepts arrow keys can be controlled without special software.
Results & lessons
- A working end-to-end interface: eye movement in, keystrokes out, demonstrated controlling a game.
- Honorable Mention, Build2gether Inclusive Innovation Challenge.
- Simple thresholding works when the front-end and filtering are good; the hard part is the signal chain, not the classifier.
- Blink detection as a "select" action is a natural next step.


