12V to Prop Interface Suggestions
I realize that I am probably covering ground that is well trampled, but I'm hoping you all can direct me a little here.
I have a number of situations where I am going back and forth between the 3.3v of the Prop to 6, 12 or any other number of voltages in between. So far the only way I can think to use these voltages for inputs is to regulate the voltage to the device so that system voltage fluctuation doesn't effect it, and then use a resistor based voltage divider circuit to get down to the 3.3v that the Prop needs. Then use a pulldown (or pullup whichever the case may be) to maintain residual voltages.
Is this an acceptable way to get "back and forth" between the 3.3v of the Prop and the rest of the voltages in the world? Or is there a better way?
I'm just talking inputs at the moment. Driving higher voltage/higher amperage devices with an output would be another discussion for me.
![smile.gif](http://forums.parallax.com/images/smilies/smile.gif)
Thanks.
I have a number of situations where I am going back and forth between the 3.3v of the Prop to 6, 12 or any other number of voltages in between. So far the only way I can think to use these voltages for inputs is to regulate the voltage to the device so that system voltage fluctuation doesn't effect it, and then use a resistor based voltage divider circuit to get down to the 3.3v that the Prop needs. Then use a pulldown (or pullup whichever the case may be) to maintain residual voltages.
Is this an acceptable way to get "back and forth" between the 3.3v of the Prop and the rest of the voltages in the world? Or is there a better way?
I'm just talking inputs at the moment. Driving higher voltage/higher amperage devices with an output would be another discussion for me.
![smile.gif](http://forums.parallax.com/images/smilies/smile.gif)
Thanks.
Comments
There's a whole long thread on interfacing the Prop's 3.3V logic to other voltages. Please read it (the 2nd thread in the "sticky" threads at the top of the forum thread list).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Thanks.
Why isn't this kind of thing utilized more often? Are they expensive compared to common transistors?
And I'm guessing you can get them in various configurations of acceptable voltages on the input and acceptable voltage/amperages on the output?
I didn't see any for sale on the Parallax store.
Why aren't optocouplers used in place of transistors more often? What am I missing? It seems like a relay that uses photons in stead of a mechanical device.
I have a 12v control that outputs 12v on one of 4 wires depending on the control position while you cycle it by hand. What would be a good transistor to have that 12v power open the gate on with my 3.3v VDD being switched to an I/O pin of the Prop?
Also, could I use a Zener to control the voltage with a large resistor just "upstream"?
Thanks.
You could use a Zener diode, but an integrated regulator would be better. What's your supply voltage?
With a large enough resistor I was thinking the current from the Zener could be relatively low. And I guess I could just use a 3.3v regulator on each of the 4 input wires to drop it down from 12v.
I'm just wondering what would be considered an "appropriate" or usual method of getting a 12v signal into the Propeller without potentially causing issues by applying to much voltage to an input/output pin.
After that I can figure out how to drive 12v circuits with an output pin.
And thanks for the help. The more I read the more I understand. I just don't have any background in semiconductors.
Post Edited (Mike Green) : 7/14/2008 5:32:10 PM GMT
Would there be any reason not to increase the resistance of the first resistor so that you could run even lower amperage? Obviously a change to the pulldown resistance would have to accompany that. Or is around 3mA a good target amperage for something like this?
Thanks.
Thanks.
BTW, I did a voltage divider for now. It seems to work fine although I'm going to tweak the resistance values some to get the amperage a little lower still. But regardless, it takes in the input and controls the servo accrately, so that is a sucess in itself.