Years ago, after running out of breadboard space yet again, I reimplemented the ZM1 6502 computer in a Xilinx Spartan-3AN FPGA on a Spartan-3 Starter Kit board.
Now that I’ve reversed engineered the Rako protocol, I decided to redesign my touch switch controller so that it transmits Rako commands directly, rather than going via a bank of relays and an official Rako radio module. As the picture above shows, this results in a much smaller and simpler device, and also gives me a lot more flexibility in how the controller can interact with the lights.
Following on from the previous post where I described the RAKO wireless protocol, I’ve created a sniffer that listens for RAKO messages and dumps them to a serial terminal. The sniffer was created simply by connecting an RRFQ1 receiver module to an Arduino as shown in the image above and uploading the sketch which can be downloaded from here.
The more RAKO devices I add to my house, the more I’ve been running into annoying limitations and strange design decisions. Previously I’ve had to create a duplicate command filter for the RAKO DALI bridge due to its assumption that it will be the only controller on the DALI bus. Most recently I was amazed to discover that their three channel LED controller (RLED90-3DCV) doesn’t support dim-up and dim-down commands, instead it reuses these command to go into a colour cycling mode. This makes it useless for controlling my bathroom light and I’d need to use six single channel controllers at £100 each instead.
So, I thought I’d have a go at reverse engineering their protocol. Then I can create my own compatible devices that do exactly what I want and cost a whole lot less.
Instead of having a normal light switch in my new bathroom I wanted to have a touch switch hidden behind the wall tiles so that the light could be turned on and off by simply touching a tile, and as with all the other lights in the house, I wanted it to integrate with the Rako home automation system I’m using.
I’ve seen lots of clones of the Philips Ambilight system that extend a TV picture out onto the surrounding walls by shining coloured LEDs out from the back of the TV. I wanted to do the same with my TV but all the clones out there seemed to be software based, requiring a PC to be producing the TV picture which they then grab frames from, analyse to get the light colours and drive the lights. My TV picture comes from MythTV, so I already have the PC running permanently, but I was worried that the extra load might cause problems when watching blu ray rips. I also wanted to have a lot of LEDs and I didn’t want the lag that is often seen between the TV picture and the LED output.
So I thought I’d try making a completely hardware based Ambilight clone that directly takes in a 1080p HDMI signal.
Click here to jump to the demo videos.
Most of the lights in my house are incandescent bulbs controlled by RAKO PILL dimmers. These dimmers fit into the back-box behind the light switch and have the advantage of keeping a normal looking light switch in addition to adding dimming and wireless control, which makes for a very invisible system, which I like. The actual light switch is swapped out for a momentary switch instead of the traditional rocker and becomes press once for on, press again for off, press and hold to dim up, press and hold again to dim down.
My kitchen light however is a flourescent tube. I wanted to be able to control this in exactly the same way as the other lights in the house, including keeping the normal looking light switch. After a bit of research I found that this is possible by using a DALI electronic ballast in combination with a controller from Tridonic (DALI GC-A) that fits in the light switch back-box in exactly the same way as the DALI PILL does for the incandescent lights, and also has exactly the same press on, press off, press and hold to dim control method.
The DALI control system operates on a shared bus and can have multiple lights and multiple controllers on the same bus and RAKO make a RAKO wireless to DALI bridge, so it looked like I could combine a DALI balast and switch controller from Tridonic with the RAKO DALI bridge and get seamless and invisible control of my flourescent light. I was almost right, but once I’d bought all the components and set it all up on the bench for a test there was one small flaw…