Generating 0 to +5v on 13 pins of the prop with at least 128 steps
base2design
Posts: 78
Hello prop-ers!
I'm trying to interface to a control-voltage (CV) device with the prop that needs 0 to +5 volts output to 13 input pins on the external device with a resolution of (at least) 7 bits or 128 steps.
My first thought is to use PWM on 13 prop pins going to a pair of 74HC244 buffers (to obtain the 3.3v to 5v shift) and then run through resistors/capacitors to filter the output.
Does this sound like an efficient setup? Any way to simplify this?
Thanks in advance for your input!
I'm trying to interface to a control-voltage (CV) device with the prop that needs 0 to +5 volts output to 13 input pins on the external device with a resolution of (at least) 7 bits or 128 steps.
My first thought is to use PWM on 13 prop pins going to a pair of 74HC244 buffers (to obtain the 3.3v to 5v shift) and then run through resistors/capacitors to filter the output.
Does this sound like an efficient setup? Any way to simplify this?
Thanks in advance for your input!
Comments
C.W.
Less than 60Hz...
If so then yes using PWM with filters would suffice.
Cool. So can you wizards out there give me some pointers on how to suitably filter the output?
In the meantime, I'll probably spend some time google-ing this, because my fundamental understanding of electronics is so limited.
I'll post my results here for the next poor traveller...
-Phil
Jonathan
Thanks for the tip PhiPi!
Interesting... would this work with PWM on one pin? A resistive ladder to me implies one resistor per output bit, so if I understand you, this would require 7 output pins per CV input (I need 13 independent CV outputs), so I don't have enough prop pins to do that.
Correct me if I misunderstood what you suggested.
BR!
Jonathan
Jonathan
The problem is the protection diode at the Propeller pin. So your R1 can pull up the pin only to ~3.3V + 0.7V = 4 V and not 5V. Also the total PWM resistance has a non linear component because of this diode.
Andy
You want to target the ripple to be less than 1 LSB, so the RC filter timeconstant needs to be longer than 64 * 50% Period.
To simplify the RC filtering, you can shift from PWM, to the slightly more complex Rate Multiplier.
Look at the CD4089BE http://focus.ti.com/lit/ds/symlink/cd4089b.pdf
for an example of how a binary rate multiplier works.
Jonathan
Andy
Jonathan