Wrist EEG Fatigue Detection Band

Plinth

Wrist EEG Fatigue Detection Band

I want to build a wrist-worn fatigue detection band that reads heart rate variability via a MAX30102 PPG sensor and correlates it with an EEG front-end (like the ADS1299 breakout) to detect microsleep onset, then fires a vibration motor alarm within 2 seconds of detection. Budget is around $120 and I want to benchmark against NHTSA drowsy-driving alert response-time guidelines.

◢Bill of Materials

BudgetPriced parts fit
Priced subtotal$82.67 / $120.00

Still to buy: $0.00 sourced · $0.00 estimated · $82.67 source unknown

Saved USD planning prices for parts still to buy. Tax and shipping excluded; this does not include past purchases.

Compute

Central microcontroller that reads SPI data from ADS1299 EEG front-end and I2C data from MAX30102 PPG sensor, runs fatigue/microsleep detection algorithm, and triggers vibration alarm within 2-second NHTSA response window.

Arduino Nano Every (ATmega4809) — Compute MCU

In Stockstock checked 110d ago

digikey

ABX00028

Still to buy / Source not recorded

1 × $12.90$12.90
All lines: priced subtotal$12.90

Actuation / Alarm

Coin vibration motor driven by a MOSFET that fires a haptic alarm within 2 seconds of microsleep detection, per NHTSA drowsy-driving alert response-time benchmark.

Coin (Disc) Vibration Motor ERM 3V 10mm — Haptic Alarm Actuator

Unknownstock checked 110d ago

other

VIBE-DISC-10MM-3V

Still to buy / Source not recorded

1 × $2.50$2.50
no link

2N7002 N-Channel MOSFET SOT-23 — Vibration Motor Gate Driver

In Stockstock checked 110d ago

digikey

2N7002NXAKR

Still to buy / Source not recorded

2 × $0.03$0.06
All lines: priced subtotal$2.56

PPG / HRV Sensing

MAX30102 optical heart-rate and SpO2 sensor worn at the wrist to capture photoplethysmography (PPG) signals for heart rate variability (HRV) fatigue correlation.

MAX30102EFD+T — Optical Pulse Oximeter / Heart Rate Sensor IC (I2C, 1.8V, 16-pin TDFN)

In Stockstock checked 110d ago

digikey

MAX30102EFD+T

Still to buy / Source not recorded

1 × $8.50$8.50
All lines: priced subtotal$8.50

EEG Sensing

ADS1299-based 8-channel biopotential front-end for capturing brainwave (EEG) signals used to detect microsleep onset via alpha/theta wave analysis.

ADS1299 8-Channel EEG Biopotential AFE Breakout Board (OpenBCI-compatible, Olimex or equivalent)

Unknownstock checked 110d ago

other

ADS1299-BREAKOUT

Still to buy / Source not recorded

1 × $49.00$49.00
no link
All lines: priced subtotal$49.00

Power

LiPo battery with USB charging IC and 3.3 V LDO regulation to power the microcontroller, ADS1299, MAX30102, and vibration motor safely from a single wrist-worn cell.

3.7V 500mAh LiPo Battery — Wrist-Worn Power Cell

Unknownstock checked 110d ago

other

LIPO-3.7V-500MAH

Still to buy / Source not recorded

1 × $8.00$8.00
no link

MCP73831T-2ACI/OT — Single-Cell LiPo Charger IC (USB 4.2V, SOT-23-5, 500mA)

In Stockstock checked 110d ago

digikey

MCP73831T-2ACI/OT

Still to buy / Source not recorded

1 × $0.61$0.61

MIC5219-3.3YM5-TR — 3.3V 500mA LDO Regulator SOT-23-5 (Powers MCU, ADS1299, MAX30102)

In Stockstock checked 110d ago

digikey

MIC5219-3.3YM5-TR

Still to buy / Source not recorded

1 × $0.90$0.90

100nF 10V X7R Ceramic Capacitor 0402 SMD (Decoupling Caps, 20-pack)

In Stockstock checked 110d ago

digikey

CL05B104KP5VPNC

Still to buy / Source not recorded

20 × $0.01$0.20
All lines: priced subtotal$9.71

Source unknown $82.67

Still-to-buy priced subtotal: $82.67 USD

◢Circuit

MPU6050 IMU (I2C)Momentary pushbut…Arduino NanoSSD1306 OLED (I2C…Active buzzerLED (5mm)ResistorResistorCeramic capacitor…Ceramic capacitor…USB 5V supplyMAX30102EFD+T — O…

◢CAD model

◢Build Schedule

12-week plan

1

All parts ordered; Nano Every blink sketch compiles and runs

Order every component today — priority on the three long-lead items: ADS1299 Olimex/OpenBCI breakout, 3.7 V 500 mAh LiPo, and the coin vibration motor ERM, all of which can take 2–4 weeks to arrive. Simultaneously install the Arduino IDE with the ATmega4809 board package, clone SparkFun's MAX30105 library, and verify the toolchain compiles a blink sketch on the Nano Every. Set up a GitHub repo with folders firmware/, hardware/, data/, and docs/ so all work is version-controlled from day one.

5h
You’ll need to know · 2
2

Raw PPG waveform streaming to Serial Plotter at ≥50 Hz from wrist

While long-lead parts are in transit, focus entirely on the MAX30102. Wire the breakout to the Nano Every over I2C, configure Red/IR LED currents and sample-rate registers, and stream raw ADC counts to Serial Plotter. Confirm a clean photoplethysmography pulse waveform at the wrist — this validates I2C wiring and produces the real signal you will feed into HRV math in Week 4.

8h
You’ll need to know · 2
3

Pan-Tompkins R-peak detector running; SDNN/RMSSD HRV metrics logged to SD/Serial

Build the HRV signal-processing pipeline on top of the PPG stream from Week 2. Implement a simplified Pan-Tompkins peak detector to find inter-beat intervals (IBI), then compute SDNN and RMSSD over a 30-second rolling window — the two HRV metrics most predictive of fatigue. Log timestamped metrics to Serial so you have ground-truth data for algorithm tuning later. This step must precede any fusion with EEG data.

10h
You’ll need to know · 2
4

ADS1299 SPI link verified; raw EEG ADC samples streaming at 250 Hz

The ADS1299 breakout should arrive by now. Study the ADS1299 datasheet SPI timing carefully, then wire DRDY, CS, SCLK, MOSI, MISO, and START to the Nano Every. Send the WAKEUP → SDATAC → WREG CONFIG sequence, then switch to RDATAC mode and confirm 24-bit samples arrive at 250 Hz. Scope the DRDY interrupt line to verify timing — getting this handshake solid now prevents subtle data-corruption bugs later when you fuse with PPG.

12h
You’ll need to know · 2
  • SPI protocol (CPOL/CPHA modes, CS polarity, full-duplex framing) - SparkFun SPI Tutorial ↗
  • Reading and implementing IC register maps from datasheets
5

Alpha/theta band power computed from EEG; drowsiness threshold defined

Implement a fixed-point or float FFT (e.g., Arduino's ArduinoFFT library) on 1-second EEG windows to extract alpha (8–13 Hz) and theta (4–8 Hz) band power, which are the canonical EEG markers of microsleep onset. Define a threshold ratio (theta+alpha / beta) above which the system flags a drowsy epoch. Log flagged epochs with timestamps so you can compare against self-reported fatigue ground truth in Week 9's benchmarking.

12h
You’ll need to know · 2
  • Discrete Fourier Transform and FFT fundamentals
  • ADS1299 SPI streaming (completed Week 4)
6

Gerbers submitted to PCB fab; 2–3 week lead time begins

Design the wrist-band PCB in KiCad: place the MCP73831T LiPo charger, MIC5219 3.3 V LDO, 100 nF decoupling caps on every power pin, 2N7002 MOSFET motor driver with flyback diode, and headers for Nano Every, ADS1299 breakout, and MAX30102 breakout. Route differential EEG traces with a ground pour and keep power traces ≥0.5 mm. Submit Gerbers to JLCPCB or OSH Park this week — the fab lead time lands the board just in time for Week 9 hardware integration.

14h
You’ll need to know · 3
  • KiCad schematic capture and PCB layout basics
  • SMD footprint selection and decoupling cap placement
  • Reading IC application circuits from datasheets
7

Vibration motor alarm fires in <2 s on breadboard; MOSFET gate logic verified

While waiting for the PCB, wire the 2N7002 MOSFET motor driver on a breadboard: connect gate to a Nano Every digital output through a 100 Ω resistor, source to GND, drain to the coin motor's negative lead, and motor positive to the 3.3 V rail with a 1N4148 flyback diode in parallel. Write a firmware interrupt triggered by the EEG/HRV threshold flags from Weeks 3 and 5, then measure gate-to-motor-spin latency with an oscilloscope — it must be well under 2 seconds to satisfy the NHTSA benchmark target.

8h
You’ll need to know · 2
8

Dual-modal fusion algorithm running; fused drowsiness score logged on breadboard

Combine the HRV fatigue score (Week 3) and the EEG alpha/theta band ratio (Week 5) into a single weighted fusion score using a simple decision tree or weighted sum. Tune weights by intentionally simulating fatigue states (eyes-closed, deep breathing) and logging the fused output. Confirm the algorithm can distinguish alert vs. drowsy within the 2-second NHTSA window on breadboard hardware before moving to the PCB. This is the most algorithmically complex week — budget extra time.

15h
You’ll need to know · 3
  • HRV metrics pipeline (completed Week 3)
  • EEG band-power extraction (completed Week 5)
  • Weighted decision fusion / threshold logic in C++
9

PCB powered up; all subsystems verified on custom board (dedicated debug week)

The PCB arrives this week. Before soldering ICs, perform a bare-board power-on test: measure LDO output (3.3 V), verify LiPo charger PROG resistor sets correct charge current, and check for shorts with a DMM. Solder progressively — power rails first, then Nano Every header, then breakout headers, then motor driver. Re-run all prior subsystem tests (I2C scan for MAX30102, SPI DRDY on ADS1299, motor pulse) on the new board. This dedicated debug week is your safety net before integration.

14h
You’ll need to know · 3
  • SMD soldering (0402 caps, SOT-23 ICs) - Adafruit Soldering Guide ↗
  • DMM continuity and voltage testing on a live PCB
  • LiPo battery safety (charge termination, cell voltage limits)
10

Full system wrist-worn prototype assembled; end-to-end detection fires in <2 s

Mount the PCB, ADS1299 breakout, MAX30102, LiPo, and coin motor into the wristband enclosure with dry EEG electrodes on electrode leads. Flash the complete fusion firmware from Week 8 onto the Nano Every. Run an end-to-end test: wear the band, induce simulated drowsiness (eyes closed, relaxed breathing for 30 s), and verify the vibration alarm fires — timing the detection-to-vibration latency against the NHTSA 2-second threshold with a stopwatch and oscilloscope timestamp log.

12h
You’ll need to know · 3
  • PCB bring-up and subsystem verification (completed Week 9)
  • Wearable enclosure design and strain-relief wiring
  • Oscilloscope timing measurement for latency benchmarking
11

NHTSA benchmark data collected; false-positive/negative rates quantified

Conduct structured trials against the NHTSA drowsy-driving alert response-time guideline (≤2 s detection-to-alert). Run at least 10 alert and 10 drowsy epochs on yourself (and, if IRB-exempt for self-study, one other volunteer), logging detection latency, false positives, and false negatives. Build a simple confusion matrix and compute sensitivity/specificity. Tune the fusion weights from Week 8 if accuracy is below 80%. Record raw data in a spreadsheet so you can cite quantitative results in your final report.

12h
You’ll need to know · 2
  • Experimental design: controlled trials, confusion matrix, sensitivity/specificity
  • Spreadsheet data analysis (Excel or Python pandas)
12

Demo-ready prototype; final report and repo fully documented

Polish the firmware (clean up debug Serial prints, add a low-battery LED indicator via the MCP73831T STAT pin), photograph and annotate the hardware, and finalize the GitHub README with a system block diagram, BOM with actual costs versus the $120 budget, and the NHTSA benchmark results table. Prepare a 5-minute live demo script: power on, don the band, show alert state baseline, induce drowsiness, and demonstrate sub-2-second alarm — exactly the narrative a judges panel or course evaluator expects.

10h
You’ll need to know · 2
  • Technical writing: block diagrams, BOM tables, results sections
  • Git: tagging a release and writing a project README

Generated by Plinth's AI agents. Verify before purchasing parts, following the schedule, or making safety-critical decisions.

Generated by Plinth - turn a project idea into a real buildable plan.