loading
For other projects, see our main site: www.iowa-aquaponics.com/arduino/

**Update**
You can find a live demo of the online temperature and humidity in action here:
http://adacsprojects.appspot.com
**

While this project is designed with aquaponics in mind, it does not require an aquaponic system, making it useful for other projects such as home automation. The included application is, therefore, bare-bones, making it easier to integrate into any other application project. The web application provided here runs on Google App Engine, a beautiful cloud platform from Google. GAE provides a free quota for read/write operations, emails, and instances. For a full list, see their documentation.

In this project we focus on capturing temperature and relative humidity and sending it to GAE to be visualized using Google Chart Tools. Every sixty seconds, the Arduino will test its connection to App Engine. The return should be “Ok”, which is parsed by the Arduino. If the connection is ok, the bicolor LED is set to green, otherwise it is set to red. If the connection is good, the Arduino will take a reading from digital pin six (the DHT pin) and create a GET request to App Engine. App Engine will query the datastore (its database) for the Environment entity, update the temperature and relative humidity values and put the entity back in the datastore.

On startup, the web browser (client) will create a temperature and humidity gauge with values at zero. It will then make an AJAX request to the datastore which will return a JSON array. The client parses the array and updates the gauges. Finally, it sets an interval to repeat the process, giving you an updated display.

Step 1: Download Code

Hardware:
1. Arduino Uno R3
2. Ethernet Shield R3
3. 1 Bicolor LED
4. 1 470 Ohm resistor
5. 1 DHT-22 Sensor
6. 1 4.7k ohm resistor
7. Breadboard jumper wires
8. Breadboard
9. Arduino power cord (Gives more consistent power to your Arduino than USB)
10. USB-AB cable for uploading Arduino code & serial output


Software Requirements:
1. Arduino IDE: 1.0.3
2. Google App Engine SDK: Python, Linux 1.7.4
3. Python: 2.7
4. Ubuntu 12.04

This application was developed on Ubuntu 12.04. I don't have a Windows machine, so I can't tell you how to install Google App Engine or any other software on it.

The application files for this project are:

A. Simon Monk's Timer library
B. Adafruit's DHT library
C. Iowa Aquaponics' DHT Arduino Code
D. Iowa Aquaponics' Google App Engine Code

1. Download Simon Monk's Timer library here. Extract the zip module and put a copy in your arduino-1.0.3/libraries directory. Make sure it is named "Timer".
2. Download Adafruit's DHT library here. Extract the zip file and rename the extracted folder DHT. Make a copy and place it in your arduino-1.0.3/libraries.
3. Download Iowa Aquaponics' zip file here. Extract it into your home directory.
<p>Hi there, thanks for the cool totorials</p><p>i followed all the instructions and im getting an error in the google app engine:</p><p> File &quot;C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\dev_appserver.py&quot;, line 79, in _run_file</p><p> execfile(_PATHS.script_file(script_name), globals_)</p><p>NameError: name 'execfile' is not defined</p><p>2014-11-06 20:31:03 (Process exited with code 1)</p><p>any idea whats that about. i hope i followed your dirctions properly. </p><p>Let me Know. E.</p>
<p>Hi there, thanks for the cool totorials</p><p>i followed all the instructions and im getting an error in the google app engine:</p><p> File &quot;C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\dev_appserver.py&quot;, line 79, in _run_file</p><p> execfile(_PATHS.script_file(script_name), globals_)</p><p>NameError: name 'execfile' is not defined</p><p>2014-11-06 20:31:03 (Process exited with code 1)</p><p>any idea whats that about. i hope i followed your dirctions properly. </p><p>Let me Know. E.</p>
For some reason, I cannot send you a pm about this problem, as mentioned below, that I am having.
I am not missing the development package. Here is the screenshot of my problems: http://i.imgur.com/ueO4MA1.jpg. I only blanked out my name even though it might be apparent here.
When I typed $ python2.7 AppEngine/dev_appserver.py into the terminal, it gives me an error which includes &quot;Traceback (most recent call last):&quot; and &quot;ImportError: No module named zlib&quot;.
You could be missing a development package called &quot;zlib1g-dev&quot; <br>$ sudo apt-get install zlib1g-dev <br> <br>On x64 systems you may need to create a symbolic link: <br>$ sudo ln -s /lib/x86_64-linux-gnu/libz.so.1 /lib/libz.so

About This Instructable

23,324views

109favorites

License:

Bio: It's pronounced "Iowa Aquaponics".
More by IAquaponics:Arduino Aquaponics:  EnvDAQ Upgrade with pH and Dissolved Oxygen Arduino Aquaponics:  JSON Pump Controller Arduino Aquaponics:  Real-Time-Clock Part I 
Add instructable to: