10.02.2015 Views

wireless monitoring system of gas detector - Faculty of Electrical ...

wireless monitoring system of gas detector - Faculty of Electrical ...

wireless monitoring system of gas detector - Faculty of Electrical ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

36<br />

start<br />

read the output<br />

voltage by arduino<br />

from <strong>gas</strong> sensor<br />

send data to<br />

LabView using xbee<br />

MQ6<br />

Vo > 1.67v <br />

no<br />

turn on the<br />

green led<br />

yes<br />

MQ6<br />

Vo > 2.5v <br />

no<br />

turn on the yellow<br />

led and exhaust<br />

fan<br />

yes<br />

turn on the red<br />

led and buzzer<br />

end<br />

Figure 3.13: Flow Chart for The Arduino Programming for MQ9<br />

Firstly, all the input and output pin in Arduino must be declare. Then, initial<br />

sensor value must be set as 0. The data receive from sensor can calculate in the decimal

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!