
Photodiode tia circuit v3
aidanmacro/MYOSA-Breath-Activity-Monitoring-for-Musicians
This repo constitutes our team's submission to the 2026 IEEE MYOSA event.

This repo constitutes our team's submission to the 2026 IEEE MYOSA event.
MYOSA breakout is an open-source printed circuit board by aidanmacro, from the aidanmacro/MYOSA-Breath-Activity-Monitoring-for-Musicians repository on GitHub, published under the MIT licence. It is a 2-layer board of 88.9 × 78.2 mm with 24 parts on 37 nets, routed with 84 tracks and 4 vias.
It is built around the IRLZ44N. Its parts include 2 ICs, 2 connectors and 1 transistor. It belongs with the interfaces and adapters boards of this library.

Breathsense: a CO2 Detecting mouthpiece using MYOSA board and sensors.
Musicians rely heavily on breath control to shape dynamics, phrasing, tone and endurance, yet there are few accessible ways to measure breathing behaviour objectively during real performance. This project develops a real-time breath monitoring system designed specifically for musicians, using exhaled CO₂, pressure and temperature data to provide direct insight into how breath is being used while playing. The system is built around the MYOSA development board, providing an IoT-capable platform for sensor integration, wireless communication and real-time data logging. A custom Non-Dispersive Infrared (NDIR) CO₂ sensing system detects exhaled breath, while pressure and temperature measurements provide complementary information about breath activity and environmental variation. By combining these sensing methods with wireless data transmission and live visualisation, the project aims to provide musicians, teachers and researchers with a practical tool for analysing breath strength, timing and consistency during practice and performance.

Closeup of MYOSA breakout board.

Mouthpiece attached to real instrument.
The primary breath measurement is provided by a custom Non-Dispersive Infrared (NDIR) sensing system. CO₂ absorbs infrared radiation at specific wavelengths, so the concentration of CO₂ in exhaled breath can be inferred from the reduction in transmitted infrared light.
A mid-wave infrared (MWIR) LED is used as the optical source. The LED is pulsed rather than operated continuously, reducing average power consumption while also allowing the system to distinguish the desired optical signal from ambient infrared radiation and other sources of interference.
The emitted infrared light passes through the mouthpiece and the musician's exhaled breath before reaching a photodiode. As the concentration of CO₂ in the airflow changes, the amount of infrared radiation reaching the photodiode changes accordingly. The photodiode output is converted into a measurable voltage using an analogue front end before being sampled by the MYOSA board.
The system uses synchronous detection to improve the measurement. The photodiode is sampled in synchronisation with the LED pulses, allowing the signal measured when the LED is active to be compared with the background signal when it is inactive. This helps reject ambient infrared light and other sources of background variation.
The resulting CO₂ signal is used as a proxy for breath activity. Rather than attempting to measure the musician's breathing volume directly, the system provides a real-time indication of changes in exhaled CO₂ as the musician plays.
The optical CO₂ measurement is complemented by pressure and temperature measurements from a BMP180 sensor connected to the MYOSA board over I²C.
Pressure provides an independent measurement of activity within the mouthpiece. Changes in mouthpiece pressure can therefore be compared with the CO₂ signal to help distinguish genuine breath activity from changes or noise in the optical measurement.
Temperature is also recorded because the operating environment of the sensor can change during use. Monitoring temperature provides additional information for accounting for environmental variation and thermal drift in the measurements.
Combining the three measurements gives a more informative representation of breath activity than relying on the CO₂ channel alone.
The sensor data is processed into a real-time representation of the musician's breath activity. Changes in the measured CO₂ concentration can be visualised as a capnogram, allowing the user to observe the timing and relative strength of their breath while playing.
The pressure signal provides an additional reference alongside the CO₂ measurement, while temperature data can be used to identify environmental changes and compensate for drift.
This allows breath activity to be observed during actual playing rather than requiring the musician to perform a separate breathing test.
The sensing hardware is integrated with the MYOSA development board, which acts as the central controller for the system. The board controls the pulsed LED, reads the analogue CO₂ sensing circuitry, and communicates with the BMP180 over I²C.
The measurements are combined into a timestamped data stream and transmitted wirelessly to an external computer. This separates the sensing hardware from the visualisation system, allowing the musician to carry the relatively small sensing unit while viewing the measurements on a separate device.
Wireless transmission also allows measurements to be logged for later analysis rather than limiting the system to live monitoring.
A Python and PyQt desktop application receives the wireless sensor data and displays the CO₂, pressure and temperature channels in real time.
The application performs additional signal processing and filtering before displaying the measurements, allowing the user to see changes in breath activity as they occur.
Session data can also be buffered for later review, making it possible to compare different playing sessions and examine breath behaviour beyond the immediate live display.
By capturing quantifiable breath data during real playing, this system opens up several practical applications:
The final version of the device is envisioned to work like so:
| Component | Part | Role |
|---|---|---|
| MCU / wireless | MYOSA development board | Master controller — drives sensing, fuses data, streams wirelessly to host computer/Cloud |
| CO₂ emitter | L15895-0430MA LED | Pulsed mid-wavelength infrared (MWIR) source, tuned to a CO₂ absorption band |
| CO₂ detector | P16112-011MA photodiode | Measures transmitted IR intensity after passing through the breath sample |
| Pressure / temperature | BMP180 (Minkit breakout) | I²C sensor providing an independent breath-pressure signal and temperature compensation |
| Onboard display | 0.96" OLED Display (Minkit breakout) | I²C enabled, providing on device quick insights for potential offline use |
| Mechanical | 3D-printed trombone mouthpiece | Directs exhaled breath through the sensing chamber; mounts sensor package in the airflow path (Based on Popular Bach 12C Design) |
| PCB | Custom board (see KiCAD/) | Houses the analog front end and sensor interconnects |
The CO₂ channel is the most sensitive part of the hardware, since NDIR absorption signals are small relative to the raw photodiode output. The front end is built around a pulsed detection scheme:
Firmware — Arduino C++ (runs on MYOSA)
Desktop application — Python + PyQt
Dependencies are listed in requirements.txt — install with:
pip install -r requirements.txtUser Interface run the current user interface using:
python3 .\Code\app_code\Breathsense_GUI.py| Folder | Contents |
|---|---|
Code/ | Arduino C++ firmware for the MYOSA board (sensor reading, LED pulsing, I²C fusion, wireless streaming) and the Python/PyQt desktop visualisation app |
KiCAD/ | PCB schematics and layout for the custom analog front end (NDIR CO₂ sensing circuitry) |
Mechanical/ | 3D-printable mouthpiece adapter design (based on a Bach 12C mouthpiece) that houses the sensor package in the airflow path |
Copyright (c) 2026 aidanmacro
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 200 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R_reg_LED1, R_Vin1 |
| 1 | 100R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R_FET_Gate1 |
| 1 | 100k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R_FET_pulldown1 |
| 1 | 100n | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C_ADC_cap1 |
| 1 | 100nF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C_Vin1 |
| 1 | 1K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R_ADC_pulldown1 |
| 1 | 3.4R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R_series_MWIR_LED1 |
| 1 | 5V_TestPoint | TestPoint:TestPoint_Loop_D2.50mm_Drill1.85mm | TP3 |
| 1 | Batt/PSU_switch | Button_Switch_THT:SW_Slide-03_Wuerth-WS-SLTV_10x2.5x6.4_P2.54mm | SW_BAT/PSU1 |
| 1 | Battery | Battery:BatteryHolder_MPD_BA9VPC_1xPP3 | BT1 |
| 1 | C | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C_3V3_out1 |
| 1 | Conn_01x05_Socket | Connector_JST:JST_EH_S5B-EH_1x05_P2.50mm_Horizontal | CON_LED_Photodiode1 |
| 1 | D24V22F5 | Aidan Custom Footprints:D24V22F5 | U2 |
| 1 | GND_TestPoint | TestPoint:TestPoint_Loop_D2.50mm_Drill1.85mm | TP2 |
| 1 | IRLZ44N | Package_TO_SOT_THT:TO-220-3_Vertical | Q1 |
| 1 | LED | LED_THT:LED_D5.0mm | 5V_Reg_LED1 |
| 1 | LED_Anode_TestPoint | TestPoint:TestPoint_Loop_D2.50mm_Drill1.85mm | TP5 |
| 1 | PSU_9V | Connector:Banana_Jack_1Pin | J3 |
| 1 | PSU_GND | Connector:Banana_Jack_1Pin | J4 |
| 1 | PWM_TestPoint | TestPoint:TestPoint_Loop_D2.50mm_Drill1.85mm | TP1 |
| 1 | PhotoIn_TestPoint | TestPoint:TestPoint_Loop_D2.50mm_Drill1.85mm | TP6 |
| 1 | USB/REG_switch | Button_Switch_THT:SW_Slide-03_Wuerth-WS-SLTV_10x2.5x6.4_P2.54mm | SW_USB1 |
| 1 | ~ | MYOSA:MYOSA_ESP-32 | U1 |

aidanmacro/MYOSA-Breath-Activity-Monitoring-for-Musicians
This repo constitutes our team's submission to the 2026 IEEE MYOSA event.

aidanmacro/MYOSA-Breath-Activity-Monitoring-for-Musicians
This repo constitutes our team's submission to the 2026 IEEE MYOSA event.

aidanmacro/MYOSA-Breath-Activity-Monitoring-for-Musicians
This repo constitutes our team's submission to the 2026 IEEE MYOSA event.

aidanmacro/MYOSA-Breath-Activity-Monitoring-for-Musicians
This repo constitutes our team's submission to the 2026 IEEE MYOSA event.



pscrespo/Morpheus-STM32
A small 3D printer controller board for use with a "blue pill" STM32F1 generic board. Inspired on http://reprap.org/wiki/SinapTec


MitchBradley/Esp32PrinterController
PCB design for 3D printer controller using ESP32 processor


robinolejnik/dmx-ledstrip-dimmer-32ch
Arduino Mini and TLC5940 based 32 channel 12V PWM dimmer with DMX512 and RDM support.

Moragor/BatteryAnalyzer_MkII
Updated Version of the battery analyzer, now with constant current
It measures 88.9 × 78.2 mm and has 2 copper layers, 1.6 mm thick.
24 parts, built around the IRLZ44N. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the aidanmacro/MYOSA-Breath-Activity-Monitoring-for-Musicians repository on GitHub, at the commit this page was made from: the board is KiCAD/projects/MYOSA_breakout/MYOSA_breakout.kicad_pcb and its schematic KiCAD/projects/MYOSA_breakout/MYOSA_breakout.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).