Control a DJI Tello with EEG artifacts from a Unicorn Hybrid Black headset.
One Windows laptop talks to both devices: Unicorn Recorder streams raw LSL, and this app maps jaw clenches and double blinks to Tello commands.
| Artifact | Command |
|---|---|
| Short jaw clench (0.25–1.0 s) | Takeoff if grounded, else a short forward burst |
| Long jaw clench (> 1.2 s) | Land |
| Very long jaw clench (> 2.5 s) | Emergency land |
| Double blink (within 500 ms) | Take a photo |
| Single blink | Ignored |
Keyboard is always available as a safety override. See docs/mapping.md.
Install packages before joining the Tello Wi-Fi hotspot (that network has no internet):
cd ~/Dev/MindWeavers
python -m pip install -r requirements.txt- Pair the Unicorn with the provided Bluetooth dongle (not the laptop radio).
- Open Unicorn Recorder and enable raw LSL. Default stream name:
UnicornRecorderRawDataLSLStream. - Do not enable OSCAR. OSCAR removes blinks and motion, which this project detects.
- Confirm LSL, then connect the same laptop to
TELLO-XXXXXX.
Hardware notes: docs/hardware.md.
Print live LSL samples (no drone):
python scripts/test_lsl.pyTello smoke test (battery, takeoff, photo, land):
python scripts/test_tello.py
python scripts/test_tello.py --dry-runRecord labeled baselines for threshold tuning:
python scripts/record_baseline.py --label jaw --seconds 30
python scripts/record_baseline.py --label blink --seconds 30Full pipeline:
python src/app.py --dry-run
python src/app.py--dry-run prints commands and never opens a Tello socket.
Focus the Tello camera window.
QtakeoffElandWSADforward / back / left / rightYUup / downRTyaw left / rightESCemergency exit (hover + land)
Axel, Ian, Chavez, Luisao, Hector.
- Unicorn / LSL: Recorder, stream name,
test_lsl.py, baselines - Tello SDK:
src/tello/controller.py, safety, photo - EEG mapping:
src/eeg/, docs/mapping.md - Integration:
src/app.py - Demo / pitch: docs/pitch.md