I need to convert an old fashioned variable analog 0-10Vdc to variable resistance, with the an increase in voltage proportionally changing the resistance and vise versa.
I know that arduino has no difficulty interfacing with a digital pot via the serial connections, but how do I get the potentiometer to respond from a 0-10V input?
What I'm trying to do: I am using another stand-alone lighting controller, which is used to fade lighting on and off, but it only outputs 0-10V. The LED driver I have built utilizes a current set resistor to regulate the current to the LEDs. Therefore if I can change the set resistor, I can thereby have dimming control over the LEDs.
Alternatively, my LED driver readily accepts PWM from arduino. So how could I have the 0-10V input change the level of PWM using the standard Arduino 'fading' sample program?
Which is the easier option and do you have any recommendation on how to write the program for it? Obviously converting 0-10V to PWM is the ideal resolution, but I don't know to get Arduino to read the voltage and automatically adjust the PWM level. I'm looking for about 100-256 'steps' of PWM (or levels of dimming.)