Miniature CO2 Monitor With Alarm
Introduction: Miniature CO2 Monitor With Alarm
I have recently been spending a lot of time indoors working with human breathing physiology. Prior Instructables have used O2 and CO2 sensors and I had tried switching to a new one from Sensirion SCD 41. It is very tiny and uses a new type of sensing for the level of CO2 ...acoustic something or other. The previous version: SCD 30 works really fast and has a wide detection range...it is based on laser CO2 light absorption. When experimenting with the small model I found its speed too slow for my use and the range limiting so I was looking for something else to build with them. I have put together a short instructable on how to built a elegant very tiny CO2 sampler for home or school use. It uses the raw SCD 41 that is usually surface mounted or you can obtain it already mounted on a trial board but it is so much bulkier and not as much fun to put together. The other requirement was that it be unobtrusive and have a tiny buzzer to alert the occupants that the boring stream of data had gone over some limit--much like a fire alarm. Naturally it would have to have an App to graph your data stream and keep it locally on your phone.
Step 1: Gather Your Materials
There are only 3 components to this project. Total cost about $50.
1. 3v buzzer CMI-1295IC-0385T -- digikey $1
2. SCD 41 -- Digikey $42
3. TTGO T-Display ESP32 CP2104 WiFi bluetooth Module 1.14 Inch LCD Development Board $11
The SCD41 also comes as a development board from a variety of sources--some have STEMMA QT connectors for easy hookup. These boards would make the whole unit considerably bigger but the all the rest of the components would be the same.
Step 2: 3D Print Your Parts
There are only 3 parts to this tiny instrument. All parts are printed in PLA with no support.
Step 3: Wire It
The only difficult part is wiring up the tiny SCD 41, but that's what makes it fun. Use as small a gauge of wire that you have available. Clamp the unit to stabilize it. Make sure you have the wiring diagram at hand and orient the unit to correctly wire each unit. One of the pads is trimmed to orient the unit. The five connections include the VDD, GND, SDA and SCL (all on the lower tier) and DDH across from the VDD. This is connected to power so you can either connect across or connect it to power when you splice the wires to the TTGO. 152
Use plenty of flux on the pads and place a tiny ball of solder on each one prior to attaching the wires. Place a tiny ball of solder on the ends of each wire to enable an easy connection with minimal heat. Solder the wires to the appropriate pads. Carefully hot glue the wires into position to prevent tearing of the small connections. The I2c connections are made through GPIO 21 and 22. Power and Ground and provided through the 3 Volt connector on the board. The buzzer is connected to GPIO 13 and to GND. The power to the board is connected from the USB back connector to the 5 Volt connector and GND on the board. A small color LED is spliced into the power connection to the sensor.
Step 4: Build It
The power for this unit comes from a 3D printed USB connection unit located on its back. I wanted some power option that was minimal in form so that it could easily slipped into any power block or a USB port on the side of a computer. The USB printed unit has two thin indents that accommodate two small strips of copper foil. Carefully trim the copper to fit the two indents and superglue them into position. The wires that connect power and ground go through the back of the unit. Use plenty of flux to make soldering easy to the copper strips. Connect the wires at the base of the copper strip so that the soldering blob does not extend onto the open areas where the USB connects. Superglue the USB connector onto the back of the unit after you run the wires through the holes. Place the TTGO unit into included slots in the holder. The CO2 sensor unit and tiny buzzer nest with the wires in the upper chamber of the unit. The LED sits near the openings for air movement. Make sure that the USB-C connection for the TTGO is available for programming through the open slot. Check to see if the unit functions correctly and finally superglue the face plate into position.
Step 5: Program It
Most of the program is taken from the Sensirion App programming for the SCD-30 unit but switched for the SCD-41. It uses a couple custom fonts included in the program. 635