Air Quality detector notes

Click here to view the Arduino code

Click here to view the Python average value calculation code

The basic circuit:

Notes:
-added a mq131 ozone sensor. Click here for more info.
-added a rolling average to smooth out the concentration graph which now shows trends rather than spikes.

-Tried using Temboo to send tweets, but after fixing the issues with the microprocessor running out of memory, I was getting errors back from Twitter.
Anyway, I'm going to try to move the twitter stuff onto the linux side of the board and then use bridge to control it from the arduino side. As per this article:
click
-Success...the above works for sending tweets using very little arduino side memory!

-Using cron to schedule tweet reports from the linino side of the board. The arduino code will write a file with the report details to the sd card, then using pyhon script to pick it up and send a tweet at a scheduled time.

-Enable cron on linino at startup:
/etc/init.d/cron start
/etc/init.d/cron enable
Or I just found the scheduled task menu on the Yun web interface:
Add something like: 20 11,16 * * * /mnt/sda1/cronjob.sh
and then create the cronjob.sh file through ssh with something like:
/mnt/sda1/yuntwitter.py "this is a scheduled tweet test"
And remember to chmod the file to allow it to run.

http://forum.arduino.cc/index.php?topic=200271.0

The data below will only display intermittently as I work on this.

Things planned:
device sends twitter alerts (high/low alerts), and daily summaries.
CO sensor.
Ozone sensor.
Nitrogen dioxide sensor.
Sulfur dioxide sensor.
Add more particle size differentiators.
Weatherproof box.
Solar panel to extend battery life?

-using the nano editor on a mac requires you to do this before it'll work:
http://ricochen.wordpress.com/2011/07/23/mac-os-x-lion-terminal-color-re...

-ordered a MQ131 Ozone sensor.

-I'll post the code shortly, when I get around to tidying it up.

Click here to view the Arduino code

Click here to view the Python average value calculation code