Overview why & what
Commercial hearing aids keep their signal processing, fitting curves, and settings closed. OpenEar is built to make the full audio path transparent and adjustable so anyone can inspect how sound is filtered, compressed, and amplified on a low-power microcontroller.
- Hardware
- Analog Devices MAX32655FTHR + MAX9867 audio codec
- Audio rate
- 48 kHz, 64-sample ping-pong DMA blocks (1.33 ms)
- Band split
- 6 time-domain Linkwitz-Riley bands (crossovers at 250 Hz, 500 Hz, 1 kHz, 2 kHz, 4 kHz)
- Per-band DSP
- Independent gain, compression, and noise gate
- Control
- Web Bluetooth (Cordio BLE) phone app, USB serial console, onboard buttons
- Recording
- microSD stereo WAV logger (raw microphone + processed output)
- License
- Open source (MIT)
Architecture signal flow & safety
To keep latency low, the DSP uses time-domain filters inside the receive DMA interrupt so Bluetooth traffic, serial debugging, and SD-card writes in the main loop do not interrupt real-time audio. Safety limits are enforced directly in the firmware audio path.
- Band gain cap
- Capped at +30 dB per band
- Output ceiling
- Hard peak limiter at −3 dBFS (−6 dBFS default ceiling)
- Test tones
- Capped at −20 dBFS with 10 ms fades and 15 s auto-stop
- Feedback guard
- Howl guard steps down master gain in 3 dB increments under sustained limiting
- Fault fallback
- Codec starts muted, shuts down on fault, and invalid inputs default to quiet
Measurements & verification simulation to board
- PC simulation baseline 19 DSP checks and 51 console checks pass before hardware bring-up. The 6-band split sums back within 0.07 dB of flat, with under 2 ms simulated filter delay in the speech band.
- Measured end-to-end latency Measured on the board with 5 finger snaps in Audacity stereo recording: median 3.3 ms end-to-end delay, matching the ~3.5 ms design estimate (2.5 ms buffering + ~1 ms filters).
- Real-time reliability Firmware v0.3.1 dropped late audio blocks from 20% (v0.2.2) and 37% (v0.3.0) down to 0% standalone and 0.19% with a phone connected over BLE.
Enclosure CAD & 3D print
Compact two-part snap-fit enclosure modeled in CAD and 3D-printed for the MAX32655FTHR, with acoustic ports for the onboard microphone and cutouts for switches, LEDs, USB, and the headphone jack.