Hello geeks,
This one is first thread of mine.
Right now I’m dealing with MG812 Co2 sensor, sensor is similar with famous MG811(both have a same curve and characteristic)
Here is the datasheet of the sensor…
main difference between MG812 and MG811 is that MG811 runs with +6V heater voltage while MG812 with +5V heater voltage
There is one tutorial provided by DFRobots for MG811 to calculate ppm, here is the link…
Doc for MG811 to calculate ppm
both of the sensor produced EMF at o\p in mV w.r.t Co2 concentration
Now when i use DFrobot code to calculate ppm then it show me o\p which is not fit in to the characteristic of the sensor
here is my connection for the sensor…
PIN STATE
1(Heater1) ------> +5V
3 (Heater2) -------> GND
2(Test1) --------> GND
4(Test2) ---------> MCU Adc
o\p voltage should be in range of mv(253-330mV)
and when i display ADC’s samples and voltage then it show me…
Samplse: 23
Volts: 0.11
mV: 112.3046875000
Samplse: 15
Volts: 0.07
mV: 73.2421875000
Samplse: 21
Volts: 0.10
mV: 102.5390625000
Samplse: 16
Volts: 0.08
mV: 78.1250000000
Samplse: 18
Volts: 0.09
mV: 87.8906250000
Samplse: 19
Volts: 0.09
mV: 92.7734375000
Samplse: 15
Volts: 0.07
mV: 73.2421875000
Samplse: 22
Volts: 0.11
mV: 107.4218750000
Samplse: 16
Volts: 0.08
mV: 78.1250000000
Samplse: 19
Volts: 0.09
mV: 92.7734375000
Samplse: 19
Volts: 0.09
mV: 92.7734375000
Samplse: 17
Volts: 0.08
mV: 83.0078125000
Samplse: 20
Volts: 0.10
mV: 97.6562500000
Samplse: 15
Volts: 0.07
mV: 73.2421875000
In datasheet they also put unity gain amplifier at the o\p of the sensor
but o\p of unity gain amplifier is as same as i\p
Guys any idea?