This project aims to develop a smart mask for athletes to monitor CO2 levels and temperature in real-time, helping to track respiratory performance during physical activities. The sensor is embedded in a gas mask-like design and captures real-time data, providing athletes and fitness enthusiasts with insights into their CO2 exhalation and respiratory patterns.
The mask is particularly useful for monitoring breathing efficiency, CO2 combustion, and overall respiratory performance during exercise. By connecting the device to a Bluetooth-enabled phone or tablet, users can view real-time data on their CO2 levels and temperature via a dedicated app.
The docs
contains the documentation files for the project (first prototype), including Lean Canvas, diagrams and other resources to help users understand hardware connections and how to use the CO2 Mask system.
The src
folder contains the source code for the project. It includes the firmware that runs on the microcontroller to manage sensor data, perform CO2 and temperature monitoring, and handle Bluetooth communication for real-time data transmission.
- Continuous CO2 and Temperature Monitoring: Tracks exhaled CO2 concentration and breath temperature in real time for a comprehensive view of respiratory function.
- Bluetooth Connectivity: Seamlessly transmits real-time data to paired devices, allowing live monitoring via a smartphone or fitness tracker.
- Compact and Lightweight Design: Easily integrates into sportswear or fitness gear, ensuring comfort during any activity.
- Athletes aiming to enhance respiratory efficiency and optimize breathing during physical exertion.
- Fitness Enthusiasts looking to improve their workout performance by monitoring and adjusting breathing techniques.
- CO2 and temperature sensor: CO2 Click sensor cost: €137.91
- Microcontroller: Arduino Nano 33 BLE cost: €29,00
- Gas mask: 3M Series 6000 Mask cost: €30.51
- Mask front attachment: 3D printed 3M mask component
- PCB card: Airsense PCB
- 9V battery
- Breadboard, wires
- Install Arduino IDE on your development environment.
- Make sure to install the packages used in the codes:
Wire.h
ArduinoBLE.h
SparkFun_STC3x_Arduino_Library.h
- Install "LightBlue" to your moble device. Available for Android and iOS
-
Prerequisites: Ensure you have the correct hardware and software installed.
-
Clone the Repository:
git clone https://github.com/Mylo90/CO2-Mask.git
cd CO2-Mask
-
Upload Firmware to Microcontroller:
Connect the microcontroller to your computer, and upload the firmware -
Hardware Setup:
Connect the STC31 CO2 sensor to the microcontroller following the wiring diagram provided in the repository. -
Bluetooth Pairing:
Enable Bluetooth on your mobile device and pair your device to the Arduino using the phone applicaiton "LightBlue" (Available at Android and iOS). -
Start Monitoring:
Once paired, you can start your workout, and the CO2-Mask will monitor and transmit data such as CO2 concentration and temperature in real time to your mobile device.
-
Enhanced sensors: Add more environmental sensors (humidity, oxygen levels, VOCs) for broader data analysis.
-
Data logging: Implement onboard data storage (SD card or cloud) to analyze long-term trends without constant Bluetooth connection.
-
Mobile app: Develop a dedicated mobile app for better real-time data visualization and user-friendly dashboards.
-
Comfort enhancements: Improve the design for comfort and usability, particularly for athletes during physical activities.
-
Battery Optimization: Introduce low-power modes or solar charging to extend battery life.
-
AI Integration: Use machine learning models to analyze respiratory patterns and predict performance metrics or potential issues.
-
Real-time Alerts: Add notifications for abnormal CO2 levels or temperature spikes during exercise to prevent health risks.
-
Cross-Platform Syncing:Allow synchronization with fitness apps like Apple Health or Google Fit to aggregate data with other workout metrics.