This repository contains a the hardware design (schematic and PCB), and software required to build the open source tympanometer system.
The PCB project can be opened using Altium Designer.
The code runs on Nordic Semiconductor nRF52832 and can be viewed with Segger Embedded Studio.
The code is an Android Studio project.
We have added a MATLAB demo showing how to process the audio and pressure signals recorded by the system and output a tympanogram.
These scripts were originally run on:
- Ubuntu 18.04.5
- MATLAB R2021a
The programs should be able to run even if the versions do not exactly match.
No non-standard hardware is required to run these programs.
Running this programs will generate the tympanogram for a sample tympanometry measurement.
- demo.m: This file processes the acoustic and pressure data recorded by the system to produce a tympanogram.
- mout.txt: Audio recording from smartphone.
- pout.txt: Pressure sensor recording from microcontroller.
- sout.txt: Timestamp recording from smartphone.
Run 'demo.m' in MATLAB
Runtime: 1.019325 seconds
The output is the following figure.
The first subplot shows the the band-passed acoustic signal, and the points of maximum and minimum air pressure in the ear. The second subplot shows the resultant tympanogram as well as the ear canal volume, admittance, and peak pressure values.