Saturday, August 25, 2012

Building Blocks for Wireless Sensor Networks

"Smart wireless sensor networks will bring about improvements to the quality of life, allow greater interaction  with everyday systems and lead to energy savings and better efficiency". Well - that sounds like quite a tall order, but if you care to look back over the last five or six years, and have witnessed the rapid growth in this area of technology, you will surely agree that wireless technology is now thoroughly embedded in many aspects of our daily lives.

What has brought about this quiet revolution has been the availability of low cost wireless hardware and innovative design. Wireless technology has very much become an area of innovation within the open source community, and the availability of low cost open hardware for experimentation has greatly assisted in putting smart sensors into the hands of the amateur enthusiast, hacker or maker.

One of the most innovative proponents of low cost wireless hardware undoubtedly is Jean Claude Wippler of JeeLabs. Over the last 4 years, jcw has blogged tirelessly about wireless networks, physical computing and ultra low power sensor networks. Not only has jcw had new and fresh material almost o a daily basis, but this material has been a living lab-book of all his experimentation and product development. jcw returns to his blog at the start of September after his summer break - and if you haven't got him on your list of "must read" now would be a good time to start.

jcw's main innovation was to come up with the combination of a low cost microcontroller grafter to an equally low cost wireless transceiver module.  By making the microcontroller the same as the one used by the Arduino community and writing a code library to support the wireless operation , this ensured a rapid and large uptake by the DIY market.   However, through the JeeLabs shop, this hardware was made available at less than 20 Euros, putting it well within the budget of the hacker and maker community.

Not only has jcw produced a fine platform on which to base wireless sensor designs, but he also single handedly has developed almost every possible add-on widget to enhance the basic sensor.  The JeeLabs shop is an Aladin's cave of low cost pcbs and kits - both in conventional through hole construction and in size reduced SMT format.

JeeLabs has inspired others to contribute to the community, and there are a number of open hardware designs based around the JeeNode core.  Energy monitors, internet gateways, sensor/actuators, tiny format sensors, graphic displays have all arisen from the original work by jcw.

For all the reasons above, I would like to show my respect and appreciation for all the work done by jcw in furthering the open hardware community.

A Small Success 

For anyone working with open hardware, there is always that great feeling when stuff comes together - and just works.

The latest example, is my recently acquired emonGLCD from openenergymonitor - as it's name suggests, a graphical LCD.  This display however has at it's heart an ATmega328 microcontroller connected to the ubiquitous RFM12B wireless transceiver - so it's an Arduino compatible wireless graphical display. How cool is that?

Well, actually, it's very cool, because the GLCD can provide a big, bold display of wireless sensor data, and it can also communicate with a web connected basestation and display text, data, messages -  even graphs from the internet.

So this evening's task was to build up the GLCD kit and get it to display data from my WiNode wireless sensor.

The build to just under an hour, and about another half hour to gather together all the various code libraries scattered around the web to breathe life into it and get a working display.  Assembly was very easy - assisted with the excellent pictorial and video build guide.

A few modifications to the emonTx (energy monitor) code - so that it worked correctly on the WiNode hardware, was all that it took to get the system up and running.

Tomorrow I will endeavour to get the emonBase  (aka Nanode RF)  to communicate with the system  and get some of the sensor data up to a remote server.

Central Heating  - Revisited

One of the areas in which wireless sensor networks have already made a visible impact, is that of energy monitoring, and there are numerous commercial products available for electricity monitoring, as well as some from the open hardware community.

However, whilst an electricity monitor may help you to shave your electricity bill by a few pounds a year - the area in which smart sensors could really make a difference is in the control of the domestic central heating system.

Here in the UK, where natural gas prices are always on the rise, and we are more reliant on overseas gas, almost every UK gas heated property is using a heating control system that fundamentally has not changed in effectiveness since the 1960s.  Most homes are still reliant on a time clock, a poorly located bi-metal thermostat and a couple of motorised valves - at the helm of controlling their greatest energy consuming appliance - the gas central heating boiler.

There are several key places where wireless sensors - and actuators could make an impact on the average domestic heating system.

Firstly - a better thermostat - one that is actually located in the room you wish to control the temperature of! So many houses had their thermostats located in the hallway - that draughty wasted space between the front door and the stairs. With a wireless thermostat, you have one which can be located in the room you are sitting in, and if the thermostat is a display unit like GLCD - then you can have instant feedback on the room temperature.

Radiators located in unoccupied rooms should be shut off, or at least to a minimum, when the room is not occupied. Clearly we don't want the risk of the room being freezing, but if the radiator is fitted with a thermostatic valve, we have the means of individually controlling when that radiator comes on, and to what temperature it heats the room.

By monitoring one a room by room basis, how the house responds to changes in external temperature it should be possible to construct a model of how much heat is needed to keep the various living areas comfortable.

Now that we are approaching the end of August, and with the "heating season" only about a month away, the aim is to put in place and prove, the main elements of an end to end web based smart heating control system.  By better informing the occupants, and finer control of the boiler and radiators, a saving of energy should be possible.

The WiNodes will be used for room temperature and water temperature sensing - and the high current pwm outputs can be used to drive power resistors - used to close down thermostatic radiator valves when not needed. The GLCD will be the user interface - located in the living room, - easy to get at, simple, intuitive and not buried at the back of some airing cupboard.

Gas Meter Monitoring

If you can measure it - you can control it

Most of us haven't got a clue of how much gas we use in a typical day - and how this can vary wildly with outside temperature.

With simple monitoring it is possible to obtain fine grained reading of the gas meter consumption.  I am fortunate that my meter has a reflective patch in the centre of the end zero digit - so I can use an opto reflective sensor to monitor when a unit of 10 litres of gas has been consumed.

With a better knowledge of when gas is being consumed, and how this relates to central heating, water heating and cooking activities will allow these activities to be better co-ordinated with lifestyles. For example if hot water is needed for a morning shower, then this tank heat up period should be incorporated into the morning heating period - when the boiler is already up to temperature and can take the extra load of the hot water coil, without loss of efficiency.

If a bath is required in the evening - then the heating controller should have a bath button - which heats the tank sufficiently for the bath or baths to be taken - and informs the user of when the bath will be ready.


Robby said...
This comment has been removed by the author.
Robby said...

You really provide very deep information about wireless sensor networks .Its very beneficial for me to improve my knowledge about sensor networks.Thanks for providing this information.