MG811 CO2 Carbon Dioxide Gas Sensor Module Detector with Analog Signal Output
Desription:
Carbon dioxide sensor module (with analog signal output, TTL level signals, temperature compensated output)
One size: 32mm X22mm X30mm L * W * H
Second, the main chip: LM393, carbon dioxide gas sensing probe
Third, the working voltage: DC 6V
Four characteristics:
1, having a signal output instruction;
2, dual signal output (analog output, and TTL level output);
3, TTL output valid signal is low. (Low-level signal when the output light can be directly connected to the microcontroller)
4, analog output (0 ~ 2V/0-4V) voltage output selectable default hair 0-2V;
5, carbon dioxide has a high sensitivity and good selectivity;
6, with a long life and reliable stability;
7, rapid response and recovery characteristics;
8, the probe can plug design for easy testing.
V. Application:
CO detection device for the family, the environment. Suitable for detecting the concentration of carbon dioxide, carbon dioxide gas sensors tested concentration range: 0 to 10000ppm
Specification
Signal output indication
Dual signal output (analog output and TTL) Flat output
TTL output valid signal is low
One digital output
Output: 0-2V
Operating Voltage: 5V
Interface: Gravity Analog
High quality connector
High sensitivity and good selectivity to carbon dioxide
Size: 32mm X22mm X30mm
Working Voltage: DC 6V
Main Chip: LM393, carbon dioxide gas sensing probe
Include CO2.h:
// CO2 sensor MG811
// connect the necessary library
# include "CO2Sensor.h"
// create a sensor instance from the library,
// the first parameter is a jumper pin (A0),
// the second parameter is an inertial coefficient (0.99),
// the third parameter is the number of measurements at each reading (100)
CO2Sensor co2Sensor (A0, 0.99 , 100 );
void setup () {
// initialization of serial line communication
Serial . begin ( 9600 );
// CO2 sensor calibration
co2Sensor.calibrate ();
}
void loop () {
// read CO2 concentration from sensor to variable
int value = co2Sensor. read ();
// print serial line
serial information . print ( "CO2 concentration:" );
Serial . print (value);
Serial . println ( "ppm." );
// if the value is greater than 1000,
// print a warning for
if user (value> 1000 ) {
Serial . println ("Exceeding a safe concentration of 1000 ppm, blow up!" );
}
// pause before new during
delay loop ( 1000 );
}