This is an open source alarm device.
We need hardware:
1\SolidDigi MQ2 Smoke Detector Shield for Arduino
http://www.soliddepot.com/soliddigi-mq2-smoke-detector-shield-for-arduino-p-30.html
2\WiFi Shield WiShield V2.0 for Arduino
http://www.soliddepot.com/wifi-shield-wishield-v20-for-arduino-p-106.html
http://www.soliddepot.com/wifi-shield-wishield-v20-for-arduino-p-106.html
When the concentration of toxic gas is high, MQ2 sends email through wifi.
1: Setup Picture
2 : Debugging steps:
( 1 ): Connect these three boards as shown in the above. Power it by USB.
( 2 ): Download programs in attachment to arduino328.
( 3 ): Open serial debugging tools. Use lighter or tool which can distribute gas around MQ2. ( default setting is when output number is more than 50, send mails ) User and password have to be encrypted by Base64.
( 4 ): Pay attention to mail server IP and port. The setting has to be correct. Or the mail receiving will be failed. Mail is as following picture shows (test sina and yahoo). Here we suggest use yahoo mailbox.
( 5 ): During sending the mail, if long time no connection to the server, wifi will shut down automatically. Program has been added soft wdt. When wifi is shut down it will jump to OOOOH address of the program automatically.