About Me

I've been taking things to bits, and making things ever since I can remember, starting with dismantling knackered alarm clocks and watches and helping my dad fix the car. Now I have a well-equipped workshop and have aquired lots of new skills, so I can make better stuff. When they first appeared, I became involved with personal computers, and these and developments in electronics have increased the scope of the things that I can do. Just recently retired, so O yes, now I can make all sorts of stuff.....

Friday 11 November 2011

Arduino home control part 2

Well, the enthusiasm for this project has been dented a bit over the past week. I received my radio modules from the good folks in China, and set to work hooking them up to the Arduino using some breadboard. I also downloaded all of the software I could find that had any application to controlling the Home Easy kit and set to work. BTW, I'm already tired of typing Home Easy, so from here on its HE, OK?

The system needs a bit of code to do a 'one off' exercise first. This code listens to the radio receiver and when a button on a HE remote control is pressed, the software reads the incoming transmission and decodes the following key items of information:-

- the address code for the remote control unit (this is needed since all devices need to be paired with a one or more remotes, and won't activate otherwise)
- the address code for the target HE devices - if you don't know the code for the device, how can you switch it on?

The receiver software collects other stuff in the incoming package as well, but these are the only bits I am interested in.

The whole process fell in a heap at this point. Some of the Arduino software that I downloaded threw up loads of compile errors, possibly because not all of the required libraries are available. Other software uploaded to the Arduino OK, but then just sits there blank with no indication of what (if anything) its doing. Out with the breadknife and hacked the code around a bit to discover that -

- the radio module receives a fair amount of random noise traffic, to be expected I guess
- I get no change to the random noise when the button on the HE remote is pressed.

Tried a second receiver module in case the first was duff, but no change. Switched to several different input pins on the Arduino, no change. I have two different HE remotes, a HE200 and a HE300, no difference regardless of which one I used. Hmmm.

The HE remote is supposed to send a preamble sequence of high and low pulses to alert the target device that a live transmission is coming, and then sends a data package. The software that I have downloaded is supposed to look for the preamble and then capture the data. So, I have the following possible causes for my non-capturing:-

- the remote is sending a completely different bundle of preamble and data to that which the software is looking for
- the radio module is faulty
- I've connected the module wrong (unlikely, there's only three wires plus an antenna)
- the Arduino is reading the wrong pin
- the software is not reading the pulses on the input pin properly (I really hope its not the software as a) cleverer people than me have written the code, and b) although I can code simple stuff, this is a lot more complex and its going to take me ages to learn to write my own.)

I need to rule out the radio module first, so the first task is to hook it up to 5v power from a separate power supply (in case the Arduino output is too low - its already running a bunch of LEDs around the house - and look at the data output with an oscilloscope. If I get output from it, the next stage is to see how it changes when the HE remote is pressed next to its ear. A positive result from this means the radio is OK, so I then need to look further.

I'll hook up the 'scope over the next few days and see where we are then.

3 comments:

  1. Nice blog i like your project work that you make radio with Ardunio chip system well can you specify the sites where you get software that would install in chips.

    ReplyDelete
  2. Hi, I have several pieces of software for use with the radio modules, but I have not been able to make any of them work yet. I plan to check out the radio modules first with an oscilloscope to make sure they are working properly

    ReplyDelete
  3. Hi,
    Nice blog entry, you might find these posts from 2009 on my blog useful:

    http://martgadget.blogspot.com/2009/06/bbsb-meets-arduino-part-1.html
    http://martgadget.blogspot.com/2009/10/homeeasy-meets-arduino-homeeasy.html

    And also the simpler code samples near the bottom of this page:

    http://arduino.cc/playground/Code/HomeEasy

    I can assure you they work fine 8-), have fun.

    ReplyDelete