Mitch Ridgeway
It’s hard to imagine that throughout most of the 20th century, canaries were used as toxic gas detectors to monitor the air in coal mines. Miners brought canaries down into the mines with them and listened to their continuous singing as an indication that the air was safe to breathe. There were no electronic devices dedicated to gas detection – or any type of air-quality monitoring, for that matter.
Toxic gas and particulate matter (PM) with a diameter less than 2.5µm (PM2.5) are harmful to human health when inhaled. But since it’s not possible to see or smell most toxic gases or PM2.5, how can you protect yourself? Thanks to advances in modern technology, there are now much more reliable and accurate systems for detecting harmful substances in the air.
Gas detectors use electrochemical cells to detect the presence of toxic gases. These electrochemical cells consist of three electrodes immersed in an electrolyte solution, which is dispersed throughout the entire cell (Figure 1). When a toxic gas penetrates the gas diffusion barrier, the gas will either oxidize (lose electrons) or reduce (gain electrons) when it interacts with the working electrode. This interaction will create a current between the counter electrode and the working electrode through the electrolyte solution; thus, monitoring the current change can detect the presence of toxic gases. A reference electrode ensures that the performance of the working electrode does not degrade over time.
One way to design a PM2.5 detector is to use an optical-based method. A light source (like a light-emitting diode [LED]) projects light onto the particles, and a detector (like a photodiode) detects the amount of light scattered or absorbed by the particles. The photodiode outputs a current depending on how much light it detects, and like the gas detector, a change in that current indicates the presence of PM2.5.
Gas and PM2.5 detectors call for very similar designs – converting the current output of a sensor into a voltage that a microcontroller can process. Figure 2 shows the conversion of current from a photodiode into a voltage for sampling by an analog-to-digital converter (ADC) or comparator. The output current of the photodiode feeds into a transimpedance amplifier to convert it into a voltage. Next, this voltage feeds into a second-stage operational amplifier (op amp) to provide gain so that the ADC can properly sample the voltage. This same principle applies to electrochemical cells in gas detectors.
As I mentioned in my previous post on designing smoke detectors, the MSP430FR2355’s Smart Analog Combo (SAC) peripheral is a great choice for designing a wide range of gas, PM2.5 or smoke detectors. The SAC peripheral lets you configure as many as four internal op amps (each with programmable gain and a digital-to-analog converter [DAC]) into many different modes, including general-purpose mode, buffer mode, noninverting programmable gain amplifier (PGA) mode, inverting PGA mode and DAC mode. Having access to four internal op amps lowers bill-of-materials costs and saves printed circuit board (PCB) space.
Figure 3 shows how to configure the MSP430FR2355 for a PM2.5 detector design. The first SAC module is configured in general-purpose mode with a DAC for bias voltage to create a transimpedance amplifier. This converts the photodiode current into a voltage. The second SAC module is configured in an inverting amplifying stage to provide gain to the signal before feeding it into an ADC or comparator. You can also apply this configuration to the electrochemical cells in gas detectors.
The MSP430FR2355 is optimized for low power, so you can be confident about getting long battery life in your detector designs.
Read the application report, “How to Use the Smart Analog Combo in MSP430™ MCUs.”
Download the “MSP430FR2355 LaunchPad Development Kit” user’s guide.
Learn more about how the “Smart Analog Combo Enables Tomorrow’s MCU-Based Sensing and Measurement Applications.”
Check out the PM2.5/PM10 Particle Sensor Analog Front-End for Air Quality Monitoring Design design.
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATASHEETS), DESIGN RESOURCES (INCLUDING REFERENCE DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS” AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable standards, and any other safety, security, or other requirements. These resources are subject to change without notice. TI grants you permission to use these resources only for development of an application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these resources.
TI’s products are provided subject to TI’s Terms of Sale (www.ti.com/legal/termsofsale.html) or other applicable terms available either on ti.com or provided in conjunction with such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for TI products.
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2023, Texas Instruments Incorporated