I'm planning a make over at home, where I'll have some automation-enabled dimmers (probably TRIAC-style), but for some specific reasons (color control, lamp fixture design etc) I'll be using LEDs (not LED bulbs, mind you) which work out of 12V DC.
I would like to receive the TRIAC input on the Arduino, and convert it to two channels 12V DC with PWM control - two channels because they would slowly switch colour along the day, powering a mix of two LED CCT colour temperatures (3500K and 5500K).
There are lots of topics on controlling dimmable lights with Arduino, but I have seen none talking about the opposite: dimmable input into the Arduino, for retro-compatibility reasons.
I highly doubt it. There's a chance such "adapter" might exist, but it's so niche it's not even possible to find on Google for me. At least I haven't been able to find...
Besides, such adapter would still have to be "processed" by arduino so that it would drive the two separate PWM channels. This is starting to seem like an impossible task...
There are off-the-shelf mains drivers available which are driven directly by appropriate dimmer units.
I doubt you'll find anything @12v though as most operate up around 28 to 35v output mark.
If you want to "play" with mains devices, perhaps this approach would be better given the low voltage.
Exercise care even then as some of the "el-cheapo" drivers may not be isolated supplies.
Though not the perfect solution, I'll see what I can do with it and input it into Arduino (or go through some electronic wizardry first) and mark it as solved.
While we're at it, are there any 5V supplies designed to work at the "load" end of a (standardish) triac dimmer? Assume that I'd like to do something like have the dimmer setting control the NUMBER of LEDs illuminated, instead of just dimming them.
Good question. Early in this thread I was thinking of a DIY solution with an opto coupler and series resistor. However, there may be some leakage, say via a snubber, which has to be taken into consideration. Measuring the duty cycle and switching leds would of course be trivial.