Pages

header

Showing posts with label air quality monitor. Show all posts
Showing posts with label air quality monitor. Show all posts

Exhaust gases multi-band air quality sensor on arduino - part 2

It's almost year has left after I had done my air quality monitor on Arduino.
During this year I have had a lot of accidents and adventures, but now I'm ready to return to blogging.

After successful master's dissertation defense and further graduation I have collected a lot of materials and data to write a couple science papers, but... but I still have no time to do this (moreover, some aspects of Ukrainian science are frustrating me so much), so I would better post this collected information into this blog, without any research paper structure and formalities.

I hope it would be useful to somebody.

The previous part with description of  idea you could find by this link.




Arduino air quality monitor for exhaust gasses measurement
Arduino air quality monitor for exhaust gasses measurement

Idea and issues


Main requirement for mobile monitoring devices is mobility, of course.
So, based on this idea, designed air quality monitor should have such features as:
  1. autonomy with a help of battery,
  2. autonomy in data output with a help of LCD.
Both these issues could be solved with help of old stuff that everybody has in a home (or in a buddy's home).

You can use any accumulators, the main problem is that single li-ion battery could give you only 3.7v, but for normal workflow you should have at least 5v.

The quickest way to solve this issue is just to connect sequentially 2 batteries. A problem of charging you can solve with help of controller from old laptop battery or with any other diy circuits for li-ion charging.

Siemens LPH8836 display + Arduino


Many years ago I had, maybe, the most useful phone in my life - Siemens m65. Luckily, LCDs from Siemens phones  are very convenient to connect. Also it is possible to use displays from cx65, and s65.



Inside the phone I have found the LPH8836-A display. In some other cases you could find LCD with another model. The difference between the ones is only in firmware features and circuit connection way, in fact, they are not significant.
The lph88 known as the most problematic Siemens display, but only problem I have found is that it need to be connected via all contacts.


siemens lph88 for arduino
Siemens lph88, ready to use


Layout of this display is very clear, the big area of contacts make able to solder wires easily.

Air quality monitor circuit


air quality monitor exhaust gases circuit arduino
Total device circuit

The total circuit of my device includes:

  • LCD LPH88
  • sensor MQ-138
  • sensor MQ-138;
  • sensor MQ-131;
  • sensor TGS-2201;
  • sensor AM-2301;
  • Arduino UNO r3 (DCCduino UNO);
  • resistor 470 Ω — 5 units;
  • resistor 820 Ω — 5 units;
  • resistor 120 Ω — 5 units;
  • diode 1N4148 — 1unit;
  • diode Schottky — 1 unit;
  • transistor — КТ972 — 1 unit;
  • induction 680 μH — 1 unit.

Assembling



arduino + siemens m65 display lph88
first test

Before using soldering iron I had tested circuit on a breadboard

arduino uno + siemens m65 display lph88
second test

After test on the mobile phone, I have soldered wires to display and tested my assembling with simple Arduino program.

arduino + siemens m65 display lph88 circuit board

As long as in a result I have wanted to have the solid construction, I was obliged to create a circuit board. The quickest way to make it - just cut it out. Of course, the better way to produce circuit boards is chemistry, but if you do not need to have 0.5 mm ways on it, cutting is a possible variant.


arduino + siemens m65 display lph88 circuit board

After soldering of all components I had a solid module, matched witrh Arduino board.


arduino + siemens m65 display lph88 circuit board

After soldering of display wires I tested it - all works fine.

arduino air quality monitor assembling

As a battery I have used 2 li-ion cells with controller from laptop battery.

arduino air quality monitor exhaust gases display

Assembled device with flashed firmware.

Field testing and the wind problem

After assembling, I had tested this device indoor and everything works fine.
But the first outdoor test with cold air shows that direct hitting of wind flows on sensor heads make these sensors feel bad.
The solution of this problem was developed from 2 beer cans, with a help of which I had successfully formed a wind shield.

arduino air quality monitor exhaust gases display
wind defence shield

When windflow hits the windshield it is influenced by Venturi effect. The speed of airflow inside the can would be slower than outside, and pressure - higher. Furthermore, holes split windflow to little flows inside a can.

Another positive effect - this solution would work even in winter, as long as this windshield is a good insulator.


arduino air quality monitor exhaust gases display


arduino air quality monitor exhaust gases display


arduino air quality monitor exhaust gases display

 

Firmware

 

My Arduino ExhaustGasMeter project *.ino

You can use it in any way you want under MIT license.

Additional libraries which are needed for display connection you would find here:
https://github.com/watterott/Arduino-Libs

(updated)

IMPORTANT! 

Before fleshing, you need to edit a bit the S65LPH88.cpp library code.

For default pins this library uses

RESET: 17 pin (A3 for arduino)
SC: 16 pin (A2  for arduino).

In my case, the analogue pins are engaged by sensors. Thet's why for my circuit you need to change RESET pin number from 17 to 9; SC pin number from 16 to 8.



arduino air quality sensor exhaust gasas monitor
hungry electronics


Best regards, Andrii.
Read more ...

Exhaust gases multi-band air quality sensor on arduino - part 1

For my graduation project I need to develop a model of exhaust gases distribution between city buildings.
The model will made with help of PyQGIS and about this i will write later.
For source data collecting i `m  going to use the self made multiband exhaust gas detector (air quality monitor) based on arduino-like board (dccduino - with love from China) and set of specialized gas sensors.

What I'm going to use:

exhaust gas sensor components, air quality monitor
Components for future exhaust gas sensor 

From left to right:

  1. MQ-138 with module. This sensor will be used for detecting of organic components of air. The description of this module says that it is sensitive to aldehydes, alcohols, ketones, and aromatic compounds :
    • 1 to 100ppm benzene
    • Toluene 10 to 100ppm
    • Methanol 5 to 100ppm
    • Alcohol 30 to 300ppm
    • Acetone 10 to 300ppm
    • Formaldehyde 1 to 10ppm 
  2. MQ-131with module. This sensor will used for ozone detection. In description is written that it is able to detect concentration range 10ppb-2ppm.
  3. NAP-505 (top, grey with white round) - electrolytic CO (Carbon Monoxide) gas sensor with high selectivity and sensitivity. The only sensor from set that not depends from humidity and need own circuit with expensive operative amplifiers.
  4. TGS-2201 (Figaro - 5N2201) (little black, bottom) - exhaust gases sensor. This sensor is interesting because this is dual sensor. Under one pack we have 2 sensors for diesel and petrol exhaust gases. About this one i had not found a lot of info, official website of FIGARO have not contains the datasheets, but i had found the one. As like as NAP-505 this sensor deeds own circuit but luckily this circuit needs only resistors. 
  5. DHT21 (AM2301) (right, top) - digital temperature and humidity sensor - 2 in one. This is  simple digital module that needs to make correlation between humidity-temperature and data from sensors. The practice shows that this sensor is very passive for data stabilization when it is needs to be used as a mobile monitoring device. I think that this passivity is effected by big plastic casing. In future I will check this.
  6. DCcduino UNO - full copy of Arduino Uno with price of 7$ (cost includes USB cable + pin dapters).

MQ modules and DHT has been connected with arduino without any problems. In MQ I had used only analog outputs because now i need only make a test.

NAP-505 i will connect later, where i will have operative amplifiers from it`s circuit.

TGS-2201 connecting process

The datasheet for this exhaust gas sensor i had found only on this page.
You can download this datasheet.

TGS-2201 circuit is not difficult


As we can see in datasheet - the R1 and R2 range can be between 10k to 200k and depends on weather and measurement environment (i think).


TGS-2201 (5N2201) exhaust gases detector, exhaust gases monitor datasheet

The pins of sensor

TGS-2201 (NA2201) exhaust gases detector, exhaust gases monitor circuit

Resistor circuit

I had used both resistors with resistance near 15k and that was a bad idea because one channel of this exhaust gas sensor (petrol channel) shows a much big values, so it needs to be calibrated. (see screenshot of serial monitor)

The first compilation of air quality exhaust gases sensor 

air quality exhaust gases sensor

This is arduino with connected air quality sensors (except carbon monoxide and humidity\temperature).  100% chaos :)

air quality exhaust gases sensor

This is a beta for outdoor measurement.

air quality exhaust gases sensor

This is an attempt to make it not so ugly. Unsuccessful.
In future i will make for this one the normal casing and LCD display from cellphone.

ubuntu arduino serial minitor
sudo screen /dev/ttyUSB0
As you see on this screenshot - values are not adequate and need to be calibrated, about which i will write later. (overall is a pseudo-overall because it considers gases "importance rate")

To be continued.. 



Read more ...