Embedded Proj
Embedded Proj
Project Report
Group No: 34
Objective
We want to develop a model which consists of two gas sensors to continuously monitor the
pollutant levels. At present time all over the world environment is getting polluted to a dangerous
extent. We need to have control over this pollution so to control it we first need to identify one of
the major sources of the same. So, our system is continuously monitoring the pollutant level by
measuring the pollutant gases ppm content in vehicular emissions and transmits a message using
GSM to the pollution authority by sms if the vehicle is exceeding the pollutant content limit. As
the major pollutants released from vehicles are CO and CO2 we are considering to measure the
content of these particular gases in the emissions. So we have used to gas sensors, one for CO and the
other for CO2.
Block Diagram
Circuit Explanation
MQ7 sensor is used to identify the Carbon Monoxide content. It is used as CO detection
equipment in vehicular pollution. MQ7 is made by micro AL2O3 ceramic tube and Tin Dioxide
sensitive layer. The incoming polluted gas decreases the resistance of the sensor thereby
increasing the conductivity and hence increasing the voltage across RL. This voltage change is
converted to ppm value using log-log graphs and data sheets of MQ7 sensor. MQ7 has 6 pins. 4
pins are used for input signals and remaining 2 pins are used to provide heating current. Test
loop circuit of MQ7 is shown below.
MQ135 sensor is used to identify the Carbon Dioxide content of vehicular pollution. MQ135
circuitry and working is similar to the MQ7 sensor (tin dioxide layer). This voltage change is
converted to ppm value using log-log graphs and data sheets of MQ135 sensor. MQ135 has 6
pins. 4 pins are used for input signals and remaining 2 pins are used to provide heating current.
Test loop circuit of MQ135 is also same as above figure except for the load resistance.
● As we get the analog output from the sensors we feed it to the ADC input to the STM.
● We scale this voltage with max at 5V.
● This voltage is what is varying when we expose this sensor to the vehicle emission.
● We convert this voltage to ppm by using appropriate formulas obtained from the data
sheet of the following sensors as we have mentioned above.
● So finally the ppm values of CO and CO2 in vehicular emissions using both the sensors
are obtained.
● Now, these ppm values are sent to the Pollution Authority via GSM by sms if they
exceed the limit.
Errors encountered:
● Errors when converting the analog output voltage of the sensors into ppm values.
● One sensor can detect many gases, we have to carefully calibrate the gas which we want
to find out.
● Interfacing the GSM with stm32 (some trouble using the GSM commands).
We were able to achieve our objective of sending the information of the pollutants “ppm” values
to vehicle pollution authority, if they exceeded permissible limits stipulated via GSM.