Designing some Internet of Things – The Town Light

I have been experimenting lately with some Internet of Things (IoT) object. Some time ago, I attended a workshop at the MadLab at Manchester. Adrian McEwen presented his Bubblino, an Arduino bot that makes bubbles triggered by a Twitter message. He has written a book about designing IoT things. Based on all these examples I started experimenting myself. Working with some IoT myself, I started planning how user interfaces (UI) might affect how do we use the data that is streamed on the Web.

The Night Light Town

This is an experiment that reads the amount of light. The light data is sent to a server, which then is returned. Once the data is sent back, the Arduino reads the value and depending on the intensity, it turns on or off a LED.

To set up this you need:

  • Arduino
  • Arduino Ethernet/WiFi Shield
  • Photocell
  • 1k Ohm Resistor
  • 220 Ohm Resistor
  • A Breadboard

Here is the layout. You can use Fritzing to check more in detail how to set it up.

light_bb

Fritz File

Alternatively you can download the Fritzing File:

Using Xively to Monitor Data

 Xively is a service that allows you to monitor data and then make other services or object react. In this case I use it to dump the light data to it and then get it to send it back to me. I followed the basic tutorial from the Xively website. Nevertheless, they provided the code for the WiFi Arduino Shield, so I had to make some basic modifications. This final script was based on the ones provided by Xively and Paul Bellamy.

Here is MY final code. (Make sure you include the libraries)

Advertisements