Report
5 years, 6 months ago.

Web based heating control.

I am very new to mbed and like most newbies i have a big idea for what i want to use my mbed board for. My plan is to automate a the heating of a large building. I would like to know if it would be possible to read multiple temperature sensors, log temperature on a web page, switch relays and create a timed queue of things to do, all over the web. I would like to be able to control the buildings heating from my home computer, rather than having to go up there and set it each day. Any help much appreciated. I am not completely new to the idea of C as i had a brief go at Arduino.

Comment on this question

1 Answer

5 years, 6 months ago.

This is certainly feasible, albeit reasonably involved project for a beginner.You should give it a go.

I would advise you setup an mbed notebook to track your progress.

The next steps would be something like this:

  1. Get hold of a temperature sensor and get it working
  2. Get hold of a relay and get it working
  3. Write a program to control the temperature of a plastic storage box using a lightbulb connected to the relay.
  4. Get hold of a wifi or cellular module and get it working.
  5. Write a small server which can receive data, or use Xively.
  6. Make your project send temperature to the web service
  7. Make it so your project can receive a message to set the temperature.
  8. Increase the functionality of these basics to meet your needs.

Ashley

Thank you for the quick response, i no its not the most simple of tasks but i wanted something better than a flashing led for a first project. Do u have any recomendations for hardware and places to start for such a project?

posted by Alistair Mitchell 14 Oct 2013

Also is there not already ethernet capability on the board? What is the difference between xively and a small server?

posted by Alistair Mitchell 14 Oct 2013

There is ethernet on the board, so you can use that. I was imagining the thermostat being in a remote place.

The difference between xively and small server, is that the first is an existing service whereas the latter you would be writing yourself.

In terms of hardware, a good place to start would be the mbed application board:

http://mbed.org/cookbook/mbed-application-board

It has an ethernet port and a temperature sensor built in.

Then you should look for a relay board, something like this:

http://www.coolcomponents.co.uk/basic-spdt-relay-carrier-with-5vdc-relay-assembled-1045.html

And probably use a transistor to drive the relay:

http://mbed.org/users/4180_1/notebook/relays1/

DISCLAIMER: Obviously you need to observe caution when dealing with mains voltages.

You can start by switching a led on and off using the relay (the same relay will work).

Ashley

posted by Ashley Mills 15 Oct 2013

To post an answer, please log in.