»
Beautiful Bit Logo

Arduino UNO WiFi Shield Sensor Platform

Arduino
Arduino UNO WiFi Shield Sensor Platform

The first field test showed that the 3000 mAh Powerbank could supply my sensor platform for approximately 6,5 hours (One data package every 5 minutes = 12 per hour = 288 per day). My experimental setup consists of one Arduino UNO, one Arduino WiFi Shield, one VT90N2 LDR Photoresistor, one DHT11 Temperature Sensor and one MQ 135 Gas Sensor.

Arduino UNO WiFi Shield Powerbank

How to Setup the Arduino WiFi Shield?

Get the Arduino IDE 1.0.2
The latest Arduino IDE (1.0.6) is currently (November 2014) not working with the WiFi Shield!

Put the WiFi Shield on the board and download Arduino IDE 1.0.2. Get the example WiFi code for web clients from the arduino.cc website and replace the wlan router SSID and Pass. Connect to your wlan router and reach a webserver like google.com in the example. Now you can add more code!

I am logging the WiFi Shield activity when connecting to the server. Usually when logging activity I pick the REMOTE ADDRESS (IP) and the USER AGENT, but in the WiFi Shield example there is no USER AGENT defined! So I had to add one line:

client.println("User-Agent: ArduinoWiFi/1.1");

The complete header should look like this:

client.println("GET /your_script.php HTTP/1.1");
client.println("Host: www.beautifulbit.de");
client.println("User-Agent: ArduinoWiFi/1.1");
client.println("Connection: close");

Another nice official example is the the WiFi Scanner. Also have a look at the Arduino WiFi Library

Anything else to consider?

When using a battery or powerbank for running your WiFi Shield, keep in mind that it will use a significant amount of energy.
The WiFi Shield uses certain pins for hand shaking the board. So you can not use the all pins!

The following pins are reserved:

  • Digital PIN 4
  • Digital PIN 7
  • Digital PIN 10
  • Digital PIN 11
  • Digital PIN 12
  • Digital PIN 13
  • Analog PIN 0
  • Analog PIN 1

For more detailed instructions take a look at the official manual on the arduino.cc website.

If you want to be able to use all your Arduino pins get an Ethernet Shield! It is using long wire-wrap headers which extend through the shield. This method keeps the pin layout intact and allows another shield to be stacked on top.

What to do with the remaining pins?

Attach some sensors! There are many different kind of sensors on the market. You can easily observe your environment by attaching them to your WiFi Shield. I decided to monitor light, air, temperature and humidity.

What does the value Air Quality actually show?

The MQ 135 Gas Sensor measures multiple gases (CO, CO2 and HN4) and reports the quality based on those values. I am showing raw gas readings!

UPDATE (15.11.2014): WiFi Sensor Platform is now connected to the grid for permanent monitoring.
UPDATE (19.11.2014): Added a MQ 4 Sensor for methan (CH4) detection.
Arduino UNO WiFi Shield Sensor Platform Updated
UPDATE (28.11.2014): Added a MQ 7 for Carbon Monoxide (CO) detection and replaced DHT11 with DHT22.
Arduino UNO WiFi Shield Sensor Platform Maxed
UPDATE (01.12.2014): I am having issues with the WiFi connection!
Removed the MQ 7 and added the WiFi Signal Strength to the submited data.

Disconnected again... checked the firmware and it is 1.0.0! So I am going to upgrade the firmware as soon as possible.

You can see 288 data sets (the last 24 hours) below:


DateTempHumidityAir QualityCH4Light
02.12.2014 21:58:5617,8 °C36,3 %471030.0 %
02.12.2014 22:04:0017,8 °C35,8 %451000.0 %
02.12.2014 22:09:0217,8 °C35,3 %45990.0 %
02.12.2014 22:14:0317,7 °C35,1 %44970.0 %
02.12.2014 22:19:0517,7 °C34,9 %45990.0 %
02.12.2014 22:24:0917,8 °C35,0 %43960.0 %
02.12.2014 22:29:1117,6 °C34,3 %42940.0 %
02.12.2014 22:34:1317,6 °C33,9 %41930.0 %
02.12.2014 22:39:1417,5 °C33,9 %41920.1 %
02.12.2014 22:44:1817,4 °C33,5 %439613.7 %
02.12.2014 22:49:2017,6 °C34,9 %439615.3 %
02.12.2014 22:54:2418,0 °C34,2 %5011315.0 %
02.12.2014 22:59:2618,3 °C36,1 %521150.0 %
02.12.2014 23:04:2818,4 °C36,2 %531170.0 %
02.12.2014 23:09:3118,4 °C36,8 %531170.0 %
02.12.2014 23:14:3118,4 °C37,0 %541180.0 %
02.12.2014 23:19:3318,4 °C37,2 %541180.0 %
02.12.2014 23:24:3718,5 °C37,5 %541190.0 %
02.12.2014 23:29:3918,5 °C37,7 %551200.0 %
02.12.2014 23:34:4118,5 °C37,7 %551210.0 %
02.12.2014 23:39:4118,5 °C37,8 %551210.0 %
02.12.2014 23:44:4318,6 °C37,8 %561220.0 %
02.12.2014 23:49:4718,5 °C38,0 %561230.0 %
02.12.2014 23:54:4918,5 °C38,2 %561240.0 %
02.12.2014 23:59:5018,5 °C38,3 %571240.0 %
03.12.2014 00:04:5418,5 °C38,4 %571250.0 %
03.12.2014 00:09:5418,6 °C38,5 %571260.0 %
03.12.2014 00:14:5818,6 °C38,6 %571260.0 %
03.12.2014 00:19:5818,6 °C38,5 %571270.0 %
03.12.2014 00:25:0218,6 °C38,6 %581270.0 %
03.12.2014 00:30:0418,7 °C38,7 %581280.0 %
03.12.2014 00:35:0418,7 °C38,9 %591290.0 %
03.12.2014 00:40:0818,7 °C38,9 %591300.0 %
03.12.2014 00:45:1018,7 °C39,1 %591300.0 %
03.12.2014 00:50:1018,7 °C39,2 %601300.0 %
03.12.2014 00:55:1418,8 °C39,2 %601310.0 %
03.12.2014 01:00:1618,7 °C39,4 %601310.0 %
03.12.2014 01:10:2118,8 °C39,3 %601320.0 %
03.12.2014 01:15:2318,8 °C39,4 %601330.0 %
03.12.2014 01:20:2318,8 °C39,6 %611340.0 %
03.12.2014 01:25:2718,8 °C39,6 %611340.0 %
03.12.2014 01:30:2718,8 °C39,7 %621350.0 %
03.12.2014 01:35:3118,9 °C40,0 %611350.0 %
03.12.2014 01:40:3119,0 °C39,9 %631370.0 %
03.12.2014 01:45:3518,9 °C40,2 %631370.0 %
03.12.2014 01:50:3518,9 °C40,3 %631370.0 %
03.12.2014 02:00:4119,0 °C40,3 %631380.0 %
03.12.2014 02:05:4319,0 °C40,3 %631370.0 %
03.12.2014 02:10:4619,0 °C40,3 %631380.0 %
03.12.2014 02:15:4819,0 °C40,4 %631380.0 %
03.12.2014 02:20:5019,0 °C40,4 %631390.0 %
03.12.2014 02:25:5219,0 °C40,3 %631390.0 %
03.12.2014 02:30:5419,0 °C40,4 %641390.0 %
03.12.2014 02:35:5419,0 °C40,5 %641390.0 %
03.12.2014 02:40:5619,0 °C40,5 %641400.0 %
03.12.2014 02:45:5819,0 °C40,7 %641400.0 %
03.12.2014 02:51:0019,0 °C40,7 %641400.0 %
03.12.2014 02:56:0219,0 °C40,8 %641400.0 %
03.12.2014 03:01:0419,1 °C40,9 %651410.0 %
03.12.2014 03:06:0619,1 °C40,9 %651410.0 %
03.12.2014 03:11:1019,0 °C40,8 %641410.0 %
03.12.2014 03:16:1219,1 °C40,9 %641420.0 %
03.12.2014 03:21:1419,0 °C40,9 %651420.1 %
03.12.2014 03:26:1619,1 °C41,1 %651430.0 %
03.12.2014 03:31:1819,1 °C41,0 %651440.0 %
03.12.2014 03:36:2019,1 °C41,0 %651430.0 %
03.12.2014 03:46:2219,1 °C41,2 %661440.0 %
03.12.2014 03:51:2519,1 °C41,3 %661440.0 %
03.12.2014 03:56:2819,1 °C41,6 %661450.0 %
03.12.2014 04:01:3119,1 °C41,6 %661440.0 %
03.12.2014 04:06:3319,1 °C41,6 %661460.0 %
03.12.2014 04:11:3519,2 °C41,8 %661460.0 %
03.12.2014 04:16:3719,2 °C41,9 %661460.2 %
03.12.2014 04:21:3719,3 °C42,0 %671470.0 %
03.12.2014 04:26:3919,2 °C41,9 %661460.0 %
03.12.2014 04:31:4319,3 °C41,9 %671460.0 %
03.12.2014 04:36:4519,2 °C41,8 %661470.0 %
03.12.2014 04:41:4719,3 °C41,9 %671470.0 %
03.12.2014 04:46:4919,2 °C41,9 %671470.0 %
03.12.2014 04:51:4919,3 °C41,9 %671480.0 %
03.12.2014 04:56:5119,3 °C42,0 %671490.0 %
03.12.2014 05:01:5519,3 °C42,2 %671480.0 %
03.12.2014 05:06:5919,3 °C42,2 %681490.0 %
03.12.2014 05:12:0119,3 °C42,3 %681490.0 %
03.12.2014 05:17:0319,4 °C42,3 %681480.0 %
03.12.2014 05:22:0519,4 °C42,3 %671480.0 %
03.12.2014 05:27:0719,4 °C42,2 %681480.0 %
03.12.2014 05:32:0719,4 °C42,2 %671480.0 %
03.12.2014 05:37:0919,4 °C42,4 %671480.0 %
03.12.2014 05:42:1319,3 °C42,2 %671470.0 %
03.12.2014 05:47:1319,3 °C42,2 %671470.0 %
03.12.2014 05:52:1519,3 °C42,3 %671470.0 %
03.12.2014 05:57:1719,4 °C42,2 %671480.0 %
03.12.2014 06:02:2119,4 °C42,2 %671480.0 %
03.12.2014 06:07:2319,4 °C42,0 %661470.0 %
03.12.2014 06:12:2419,4 °C42,1 %671470.0 %
03.12.2014 06:17:2619,5 °C42,0 %671470.0 %
03.12.2014 06:22:2819,4 °C42,2 %671470.0 %
03.12.2014 06:27:3219,4 °C42,1 %661470.0 %
03.12.2014 06:32:3419,4 °C42,2 %671470.0 %
03.12.2014 06:37:3619,4 °C42,3 %671480.0 %
03.12.2014 06:42:3619,4 °C42,6 %671470.0 %
03.12.2014 06:47:4019,4 °C42,6 %671470.0 %
03.12.2014 06:52:4019,4 °C42,5 %671480.0 %
03.12.2014 06:57:4419,5 °C42,6 %681490.0 %
03.12.2014 07:02:4419,4 °C42,6 %681490.0 %
03.12.2014 07:07:4819,5 °C42,6 %671490.0 %
03.12.2014 07:12:4819,4 °C42,7 %671490.0 %
03.12.2014 07:17:5019,5 °C42,7 %681490.0 %
03.12.2014 07:22:5419,5 °C43,2 %6414114.4 %
03.12.2014 07:27:5619,7 °C39,8 %5913314.3 %
03.12.2014 07:32:5619,2 °C39,6 %6514212.7 %
03.12.2014 07:37:5819,0 °C37,3 %671420.2 %
03.12.2014 07:43:0018,8 °C37,4 %671410.6 %
03.12.2014 07:48:0418,9 °C38,2 %671431.0 %
03.12.2014 07:53:0618,9 °C38,9 %681431.5 %
03.12.2014 07:58:0618,9 °C39,1 %681442.0 %
03.12.2014 08:03:1019,0 °C39,2 %691432.5 %
03.12.2014 08:08:1019,1 °C39,4 %681433.1 %
03.12.2014 08:13:1419,1 °C39,3 %681433.5 %
03.12.2014 08:18:1619,1 °C39,4 %681434.1 %
03.12.2014 08:23:1819,1 °C39,6 %681425.2 %
03.12.2014 08:33:2519,1 °C39,6 %691427.6 %
03.12.2014 08:38:2519,1 °C39,6 %681429.7 %
03.12.2014 08:43:2919,1 °C39,6 %6914212.2 %
03.12.2014 08:48:2919,3 °C39,4 %6914214.2 %
03.12.2014 08:53:3119,3 °C39,4 %6914215.8 %
03.12.2014 08:58:3519,3 °C39,3 %6914216.6 %
03.12.2014 09:03:3619,3 °C39,4 %6914217.3 %
03.12.2014 09:08:3819,4 °C39,2 %6914218.5 %
03.12.2014 09:13:4019,3 °C39,4 %6914120.5 %
03.12.2014 09:18:4219,3 °C39,3 %6814222.1 %
03.12.2014 09:23:4619,3 °C39,4 %6914122.7 %
03.12.2014 09:28:4819,4 °C39,1 %6914221.7 %
03.12.2014 09:33:5019,3 °C39,4 %6914119.8 %
03.12.2014 09:38:5219,4 °C39,2 %6914119.7 %
03.12.2014 09:43:5519,5 °C39,0 %6914120.3 %
03.12.2014 09:48:5719,4 °C39,1 %6914119.1 %
03.12.2014 09:53:5919,4 °C39,1 %6914121.2 %
03.12.2014 09:58:5919,4 °C39,1 %6814021.9 %
03.12.2014 10:04:0119,5 °C39,0 %6914023.9 %
03.12.2014 10:09:0519,4 °C39,0 %6814025.9 %
03.12.2014 10:14:0619,5 °C39,1 %6814026.7 %
03.12.2014 10:19:1019,5 °C39,0 %6813927.6 %
03.12.2014 10:24:1219,6 °C38,8 %6814029.5 %
03.12.2014 10:29:1419,5 °C38,8 %6813928.8 %
03.12.2014 10:34:1619,6 °C38,6 %6914029.0 %
03.12.2014 10:39:1719,5 °C38,9 %6814029.2 %
03.12.2014 10:44:2119,5 °C39,0 %6813930.9 %
03.12.2014 10:49:2119,5 °C39,0 %6813932.8 %
03.12.2014 10:54:2319,7 °C38,6 %6913932.9 %
03.12.2014 10:59:2719,6 °C38,7 %6914033.7 %
03.12.2014 11:04:2819,6 °C38,6 %6813935.1 %
03.12.2014 11:09:3219,6 °C38,6 %6813932.9 %
03.12.2014 11:14:3419,5 °C38,8 %6913933.5 %
03.12.2014 11:19:3419,5 °C38,8 %6813831.8 %
03.12.2014 11:24:3619,7 °C38,5 %6813833.6 %
03.12.2014 11:29:3819,6 °C38,6 %6813831.9 %
03.12.2014 11:34:4019,6 °C38,6 %6713835.4 %
03.12.2014 11:39:4419,6 °C38,6 %6813831.5 %
03.12.2014 11:44:4619,5 °C38,7 %6813831.1 %
03.12.2014 11:49:4719,5 °C38,8 %6913832.0 %
03.12.2014 11:54:4919,3 °C39,1 %6813932.5 %
03.12.2014 11:59:5119,1 °C39,6 %6913829.9 %
03.12.2014 12:04:5519,1 °C39,8 %6913728.8 %
03.12.2014 12:09:5519,1 °C39,8 %6813829.2 %
03.12.2014 12:14:5919,0 °C39,9 %6913728.8 %
03.12.2014 12:20:0119,0 °C39,8 %6913728.6 %
03.12.2014 12:25:0319,0 °C40,0 %6813830.7 %
03.12.2014 12:30:0319,0 °C39,9 %6813831.6 %
03.12.2014 12:35:0519,0 °C39,9 %6813733.0 %
03.12.2014 12:40:0919,0 °C39,9 %6813732.8 %
03.12.2014 12:45:1219,0 °C39,9 %6813732.7 %
03.12.2014 12:50:1218,9 °C40,1 %6813730.2 %
03.12.2014 12:55:1419,0 °C40,0 %6913728.8 %
03.12.2014 13:00:1818,9 °C39,9 %6813831.2 %
03.12.2014 13:05:2018,9 °C39,9 %6813730.8 %
03.12.2014 13:10:2219,0 °C39,9 %6813729.0 %
03.12.2014 13:15:2419,0 °C39,8 %6813728.4 %
03.12.2014 13:20:2618,9 °C39,8 %6813728.6 %
03.12.2014 13:25:2818,9 °C40,0 %6813729.0 %
03.12.2014 13:30:3019,0 °C39,9 %6913729.4 %
03.12.2014 13:35:3218,9 °C39,9 %6813730.1 %
03.12.2014 13:40:3218,9 °C39,9 %6813729.7 %
03.12.2014 13:45:3619,0 °C39,7 %6813729.1 %
03.12.2014 13:50:3619,0 °C39,8 %6813730.6 %
03.12.2014 13:55:4019,0 °C39,7 %6813730.4 %
03.12.2014 14:00:4219,0 °C39,7 %6813728.9 %
03.12.2014 14:05:4419,0 °C39,5 %6813727.7 %
03.12.2014 14:10:4419,1 °C39,5 %6713727.2 %
03.12.2014 14:15:4819,1 °C39,6 %6713727.9 %
03.12.2014 14:20:5019,1 °C39,6 %6813728.2 %
03.12.2014 14:25:5219,1 °C39,6 %6713727.2 %
03.12.2014 14:30:5219,0 °C39,6 %6713628.2 %
03.12.2014 14:35:5419,0 °C39,7 %6713629.8 %
03.12.2014 14:40:5819,0 °C39,7 %6713629.3 %
03.12.2014 14:45:5819,0 °C39,5 %6713628.1 %
03.12.2014 14:51:0219,0 °C39,6 %6713625.0 %
03.12.2014 14:56:0219,0 °C39,5 %6713620.9 %
03.12.2014 15:01:0619,0 °C39,5 %6713616.4 %
03.12.2014 15:06:0819,1 °C39,5 %6713613.2 %
03.12.2014 15:11:0819,1 °C39,6 %6713611.2 %
03.12.2014 15:16:1019,1 °C39,5 %671369.3 %
03.12.2014 15:21:1419,1 °C39,6 %671367.5 %
03.12.2014 15:26:1419,1 °C39,6 %671367.0 %
03.12.2014 15:31:1619,1 °C39,5 %671366.8 %
03.12.2014 15:36:2019,1 °C39,5 %671365.5 %
03.12.2014 15:41:2219,0 °C39,4 %671364.6 %
03.12.2014 15:46:2619,0 °C39,3 %671363.7 %
03.12.2014 15:51:2819,0 °C39,4 %671362.9 %
03.12.2014 15:56:2919,0 °C39,4 %671362.1 %
03.12.2014 16:01:3119,0 °C39,4 %661361.4 %
03.12.2014 16:11:3519,0 °C39,3 %671360.4 %
03.12.2014 16:16:3919,0 °C39,3 %671360.2 %
03.12.2014 16:21:4119,1 °C39,3 %661360.0 %
03.12.2014 16:26:4319,1 °C39,3 %671350.0 %
03.12.2014 16:36:4719,1 °C39,3 %671350.0 %
03.12.2014 16:41:5119,1 °C39,3 %661350.0 %
03.12.2014 16:46:5319,1 °C39,4 %661350.0 %
03.12.2014 16:51:5519,1 °C39,3 %671350.0 %
03.12.2014 16:56:5719,0 °C39,3 %661360.0 %
03.12.2014 17:01:5719,1 °C39,4 %661360.0 %
03.12.2014 17:06:5919,1 °C39,3 %661350.0 %
03.12.2014 17:12:0319,0 °C39,1 %661350.0 %
03.12.2014 17:17:0319,1 °C39,2 %661350.0 %
03.12.2014 17:22:0519,1 °C39,4 %661350.0 %
03.12.2014 17:27:0719,1 °C39,4 %671350.0 %
03.12.2014 17:32:0919,1 °C39,3 %661350.0 %
03.12.2014 17:37:1319,0 °C39,3 %661350.0 %
03.12.2014 17:42:1319,1 °C39,4 %661350.0 %
03.12.2014 17:47:1519,1 °C39,2 %661350.0 %
03.12.2014 17:52:1919,0 °C39,2 %661350.0 %
03.12.2014 17:57:2119,1 °C39,3 %661350.0 %
03.12.2014 18:02:2319,1 °C39,2 %661350.0 %
03.12.2014 18:07:2519,1 °C39,3 %661350.0 %
03.12.2014 18:12:2519,0 °C39,3 %661350.0 %
03.12.2014 18:17:2719,0 °C39,2 %661350.0 %
03.12.2014 18:22:2919,0 °C39,1 %661350.0 %
03.12.2014 18:27:3319,1 °C39,2 %661350.0 %
03.12.2014 18:32:3519,1 °C39,2 %661350.0 %
03.12.2014 18:37:3519,1 °C39,2 %661350.0 %
03.12.2014 18:42:3719,0 °C39,2 %651340.0 %
03.12.2014 18:47:4119,0 °C39,1 %651340.0 %
03.12.2014 18:52:4319,0 °C39,2 %661340.0 %
03.12.2014 18:57:4319,0 °C39,1 %651340.0 %
03.12.2014 19:02:4719,0 °C39,2 %651340.0 %
04.12.2014 17:08:3218,2 °C36,2 %11318729.1 %
04.12.2014 17:20:3717,6 °C35,3 %9817029.7 %
04.12.2014 17:23:3217,7 °C35,3 %9716830.5 %
04.12.2014 17:24:0617,7 °C35,0 %9616830.0 %
04.12.2014 17:27:0517,9 °C39,3 %8312315.0 %
04.12.2014 17:32:0718,0 °C36,9 %479915.2 %
04.12.2014 17:34:2818,6 °C37,3 %7015431.4 %
04.12.2014 17:35:2918,7 °C36,8 %7012515.9 %
04.12.2014 17:40:3418,7 °C36,2 %4610017.1 %
04.12.2014 17:50:3619,1 °C34,5 %4710416.9 %
04.12.2014 17:55:3819,2 °C34,8 %4910916.6 %
04.12.2014 18:23:2219,3 °C38,1 %10817628.7 %
04.12.2014 18:24:1719,3 °C39,1 %10417230.2 %
04.12.2014 18:26:3619,7 °C41,7 %9413714.7 %
04.12.2014 18:31:3819,7 °C39,7 %5110815.3 %
04.12.2014 18:41:4019,6 °C38,2 %5311515.3 %
04.12.2014 18:46:4719,6 °C38,3 %5411716.0 %
04.12.2014 18:51:4619,8 °C38,8 %5411817.1 %
04.12.2014 18:56:4820,1 °C38,3 %5412016.1 %
04.12.2014 19:01:4920,4 °C38,1 %5612115.4 %
04.12.2014 19:06:5320,5 °C38,0 %5612316.2 %
04.12.2014 20:07:2819,7 °C41,7 %13921731.6 %
04.12.2014 20:08:5519,6 °C42,3 %13418330.1 %
22.12.2014 20:30:3221,4 °C50,6 %16121273.1 %
22.12.2014 20:30:3721,4 °C50,3 %13116372.5 %
22.12.2014 20:30:4321,4 °C50,3 %11113773.0 %
22.12.2014 20:30:4921,4 °C49,9 %9912472.6 %
23.12.2014 09:13:1119,0 °C58,3 %47064032.2 %
23.12.2014 09:13:1719,0 °C59,0 %43245533.4 %
23.12.2014 09:13:2218,9 °C59,1 %34832632.1 %
23.12.2014 09:13:2818,9 °C59,1 %29324332.7 %
23.12.2014 09:13:3419,0 °C59,0 %25720232.2 %
23.12.2014 09:13:3919,0 °C59,0 %23118231.5 %
23.12.2014 09:13:4519,0 °C58,9 %21016932.1 %
23.12.2014 09:13:5119,0 °C59,0 %19316131.6 %
02.01.2015 16:27:5320,3 °C43,0 %68459129.3 %
02.01.2015 16:27:5920,1 °C43,4 %44440929.4 %
02.01.2015 16:28:0520,1 °C43,3 %33931330.1 %
02.01.2015 16:28:1020,2 °C43,1 %28125929.9 %
02.01.2015 16:28:1620,1 °C43,1 %24522430.2 %
02.01.2015 16:28:2220,1 °C43,1 %22020129.7 %
02.01.2015 16:28:2820,2 °C43,1 %20018329.0 %