Digital Pots
rapscaLLion
Posts: 75
Hi guys,
I'd love to pick your brains on this one, sorry if it's been covered as I haven't found much in the search.
I need to use a digital pot to variably divide a 30vdc signal. This is to control what is essentially an analog 0-10vdc dimmer, except for whatever reason it uses 30vdc. (I actually read high 28v at the point at the end of the cable).
I'm trying to replace a manual pot with a digitally controllable one. I've got everything else set, but the digital pot I have (MCP41050) doesn't seem to be rated for anything more than 7vdc, and I'm using a 5v rail.
Will a non-inverting op-amp work? Because I can't seem to find much in the way of digital pots that will accept 30vdc through the wiper.
I'm happy to consider any way of scaling up the 0-5v to 0-30v, or using another digital pot or some other method that will allow me to variably divide the 30vdc with a minimum of 128 steps, and ideally 256 steps or more.
Thanks in advance for your thoughts!
I'd love to pick your brains on this one, sorry if it's been covered as I haven't found much in the search.
I need to use a digital pot to variably divide a 30vdc signal. This is to control what is essentially an analog 0-10vdc dimmer, except for whatever reason it uses 30vdc. (I actually read high 28v at the point at the end of the cable).
I'm trying to replace a manual pot with a digitally controllable one. I've got everything else set, but the digital pot I have (MCP41050) doesn't seem to be rated for anything more than 7vdc, and I'm using a 5v rail.
Will a non-inverting op-amp work? Because I can't seem to find much in the way of digital pots that will accept 30vdc through the wiper.
I'm happy to consider any way of scaling up the 0-5v to 0-30v, or using another digital pot or some other method that will allow me to variably divide the 30vdc with a minimum of 128 steps, and ideally 256 steps or more.
Thanks in advance for your thoughts!
Comments
-Phil
I think the OP has left the building.
-Phil
I'm not sure how to explain this any better, but I'll do my best.
I have a (variable) dimmer, that is operated with a manual slide potentiometer. Lights are at full when the pot is all the way up, lights dim and go out as the pot is brought down. I need to replace this manual pot with a digital pot, so it can be controlled via DMX.
The dimmer outputs +30vdc down the control cable. This voltage is divided by the manual potentiometer and sent back to the dimmer via the same cable. The dimmer responds by dimming the lights to a level relative to the pot.
So yes, I think I want a voltage divider. I would be interested in considering how to synthesize the variable voltage required. We want to avoid moving parts in the system.
Anything you can suggest?
Thanks again!
-Phil
One option would be to take a rotary encoder that allows continuous rotation(16 steps per revolution), some code could be easily written using the quadrature encoder object that would allow any number of steps, 128, 256, or any max limit. Scale the counts to a PWM output that controls an opto coupler configured as a voltage divider for the 30Vdc. The following opto acts like a variable resistor.
http://dspace.dial.pipex.com/isocom/h11f1.htm
Kwinn: Thanks, I'm going to try it tomorrow. I'm worried that even if it works, the digital pot seems to have an extremely non-linear curve. When wired as a rheostat the resistance is nearly perfectly linear through the step range, but when used as a pot the voltage output is wildly un-linear. I pretty much have control through the whole range from steps 0 to 25. From 25 - 255 there is only about a 0.2v difference... Not great when I need at least 128 steps ideally.
T Chap: I'm not sure why I would need a rotary or quad encoder. Can you explain further? The idea is that the houselights are computer controlled via the lighting console rather than any manual switch. (There is a manual override for emergency control). I will look into the pwm/opto coupler option though, thanks.
-Phil
T Chap: So would I be able to take the 30v in from the line, pass it through the FET and send the output back down the line?
Tubular: Thanks I'll check it out.
-Phil
It has the following advantages:
- Dimmer is completely isolated from the Propeller control circuit.
- No op-amps are required to drive the long cable.
- Output is a regulated current, immune to voltage losses in the cable.
It works like this: The filtered DUTY mode output from the Prop drives the op-amp's positive input at 0-3.3V. The output of the op-amp drives the LEDs in the optoisolators in series, so each receives the same current. Since all three isolators are in the same package, their current transfer ratios should be pretty well matched, so each phototransistor will pass the same current. One phototransistor is used for feedback to the op-amp. The other two phototransistors are doubled up in parallel, so the output current is twice the feedback current. The feedback current is applied to a 330-ohm sense resistor, which produces a 3.3V feedback voltage when the feedback current is 10 mA, IOW when the output current is 20 mA. And a 20 mA output current will produce 30V across the sense resistor at the other end of the cable, assuming zero cable losses and zero VCE saturation of the isolators. Since the latter conditions are not realistic, you might want to reduce the remote sense resistor to 1.4K. This will give you a 0-28V full scale, with 2V of headroom for the phototransistor and cable losses.-Phil
-Phil
Phil's detailed post and diagram will work perfectly if you need to be up and running right a way. I would like to suggest another idea for you to try and that is the HC-8+ by EFX-TEK.com. The HC-8+ has 8 high current transistors (TIP120) which can handle around 2amps and it's also designed to work with DMX. See the EFX-TEK support forums for more info on the HC-8+.
BTW, I have the same user name on EFX-TEK forums as here.
Thanks for the suggestion, I'm really not clear on what the HC-8+ is.
Phil:
Thanks again for your effort, I really appreciate it! I looked into it, but unfortunately the option of placing the controller by the dimmer is not going to be viable on our end (for various practical, cost and bureaucratic reasons). It could be that the best option for us is going to be going with a servo driven pot. I'm really looking for the simplest option here, as I won't be able to get the hours to implement anything terribly complex.
Thanks again everyone!
-Phil
It won't be possible for me to install anything in or near the dimmer unfortunately. It's permanently installed and I am prohibited by policy to access it. Getting someone in to do it would exceed the budget we have for this little project. Gotta love large institutions!
Cheers
The HC-8+ is a high current output control board that is a replacement for the DC-16 that was sold by EFX-TEK.com. The cool thing that this new product is able to do is dim high current LEDs used in Halloween props and theater via DMX, since the HC-8+ has a dip switches for setting the DMX address. Contact EFX-TEK.com for more info
Here's the link to the forum page about the HC-8+ http://www.efx-tek.com/php/smf/index.php?topic=1538.0