I've been wanting to build an arduino led dimmer for a while now, and i finally got the parts i had been waiting for. I have a mega 2560.
I have a rough understanding of how to use an analog input (0-5v) to scale pwm outputs. I can't write scripts at all, but have seen enough examples to be able to figure out how to modify examples i have seen to fit my application.
Basically, i want to use one of those pwm led dimmers with the rf controls, the 12-24v 8a cheapo dealextreme/ebay black box ones, to act as an analog input, and use the scale adjustment, to use the dimmer remote to dim the buckpuck/led attached to the arduinos digital output.
A few questions-
Will this even work? Feeding a pwm output 5v signal into an analog input? Whats the current limit as far as how much dc can be put into the analog input?
I want to use the 5v out wire from the buckpuck for the input to the rf dimmer, or should i be using a 5v on the mega? if so which pin?
should i attach the ground for the dimmer ground input to the buckpuck input ground? I'm pretty sure so since the 5v ref is coming from the puck.
On the output side, i assume i need to attach the positive wire (from rf dimmer) to the analog input, and the ground i don't know where to put. Arduino board or the buckpuck? If the arduino which pin? PWM ground, or one of the grounds next to p-in?
Finally, i've read about this inverted pwm thing, and while i don't mind using the down for up and up for down on the remote, is there an easy jumper/solder or software solution to this issue?
Alternatively, is there a programmable rf remote kit for arduino's that would accomplish this? I don't want to get ahead of myself as far as scripting something like that, but in the future it would be nice to add a few more lights w/o more remotes/dimmers.
Any help/advice is much apprecciated. :)