I2C light control

Hi!
Having used a week searching and reading, I find a lot of useful info in this forum (and others, like doityourselfchristmas), but not exactly what I'm looking for. What I want to do, as many other here, is control my lights (mood settings, etc etc). I'm planning in having each spotlight (currently 12VAC halogen spots, might move to LEDs later) on a separate channel. That way, only the imagination sets limits for how I can control the lights. For example, I can choose to only lit the lights over the desktop. You get the idea.

I want to use I2C, because of the cheap hardware available(example NXP's PCA9633). That way, I could build cheap dimmer modules, and wire them up with a bus cable. I'm planning to power the dimmer modules with the 12VAC the spots is running, a simple rectifier with 7805 will probably do the job(?). The I2C master will be a Arduino. This allows for a simple wiring in the ceiling. The 12VAC transformers are already there, I just need to wire up a bus cable between every 4 spotlights, and having connected the Arduino somewhere on the bus. I'm thinking to communicate with the Arduino over ethernet(so that it can communicate with OpenRemote). The arduino could be powered over ethernet. The lights will be controlled with PWM on the 12VAC side, using a power mosfet or a triac, allowing high power lights(PWM might be a problem for the transformer, especially when near to the minimum load specified).

This setup makes it possible for some 120 dimmer modules connected. Since PCA9633 supports 4 channels each, this will support 480+ separate controllable lights in ideal environment(bus length, etc). If the length of the bus become a problem, I could use buffers (PCA9600), shielded cable, lower bus speed..

And so, to the question. I have seen many things that looks like this (high power led shield, TLC5940 solutions, ++), but not quite this. Have this been done before?

I'll attach some sketches I quickly drew.

A more precise topic might be "cheap I2C high power dimmer modules"..

I alway thought that I2C was designed as a "chip-to-chip" protocol, not something going over cables.

Please keep me (us ?) informed over the progress you make.
Thanks

Yes, the I2C was designed for on chip communication, but more sophisticated chips have been developed since then. The PCA9633 is good for a cable with 4000pF capacitance. A shielded STP cat 5 is about 45pF/meter. Also, as I understand, the speed of the bus is a factor in the possible length of the bus (see this: http://electro8051.free.fr/buslong/AN452.pdf). A light dimming would not need a lot of bandwith.

Sure, there is better buses, which are more robust. But it's hard to find any chips which makes the design simple and affordable. This guy, http://www.hoelscher-hi.de/hendrik/english/dimmer.htm, makes an affordable do-it-yourself DMX-512 dimmer. But the fun also lies in making it myself.. :wink:

You don't need the diode D2 in the return path.
You need more capacitors each side of the of the regulator.
You can't control AC lights with PWM:-

  1. Because the PWM frequency is not syncronised with the AC
  2. Because your incandecessent lamps will not respond to such fast switching

Note that if you rectify 12V AC you will get 12 * 1.414 = 16.968V DC, that might be too much for the regulators to cope with heat wise.

Thanks Grumpy_Mike for taking the time to look at the schematics.

Then this will only work for LEDs then..(of course the output will need to be mosfet or similar).

Might want to jump to jeenode, or simply do the Henne's DMX-512 dimmer.