I have only a brief understanding of circuitry so bare with me.
I need to convert a pulse width modulation signal into a 0 to +5v analog signal. The PWM can be supplied with 7.2 volts DC 700 mA. Pulse widths are 1ms to 2ms, where 1 ms is 0%, 1.5ms is 50%, and 2ms is 100%. The analog outputs are 256 values, where 0 is 0V, and 255 is +5V. Pulse width sensitivity is also 256 values given the pulse width.
I have only a brief understanding of circuitry so bare with me.
I need to convert a pulse width modulation signal into a 0 to +5v analog signal. The PWM can be supplied with 7.2 volts DC 700 mA. Pulse widths are 1ms to 2ms, where 1 ms is 0%, 1.5ms is 50%, and 2ms is 100%. The analog outputs are 256 values, where 0 is 0V, and 255 is +5V. Pulse width sensitivity is also 256 values given the pulse width.
Presumably these are radio control servo signals?, what are you wanting to do?, and why do you need a 0-5V signal?.
Assuming they are radio control servo signals?, but the voltage is too high, and the current FAR too high - although current depends on the load, not the source.
I have only a brief understanding of circuitry so bare with me.
I need to convert a pulse width modulation signal into a 0 to +5v analog signal. The PWM can be supplied with 7.2 volts DC 700 mA. Pulse widths are 1ms to 2ms, where 1 ms is 0%, 1.5ms is 50%, and 2ms is 100%. The analog outputs are 256 values, where 0 is 0V, and 255 is +5V. Pulse width sensitivity is also 256 values given the pulse width.
Fixed frequency of 500Hz? Use a counter to count on-time of cycle and output value to 8 bit D/A with filter. Be sure to provide some adjustment feature so that final circuit can be calibrated at 0V & 5V. Is this the kind of thing you are asking about?
A joystick doesn't output a voltage, it's simply a variable resistor, and only uses a small part of it's range. Unless you have something which requires a 0-5V signal?, you can't simply feed a 0-5V signal in where a joy stick should be.
I know Joysticks are just potentionmeters that loop-back resistence, I'm trying to simulate that resistence. Oh, I was fiddling with Electronics Workbench to do a simple capacitor cut of a PWM signal and it worked pretty well for a DC voltage. With a given pulse width I can control the voltage, but I'm not sure how to tanslate that into an output resistance using the +5v feed from a joystick port to the app and then to the designated analog pins.
If anyone can help me with this I much appreciate it.
Current App:
(The X1 & X2 would be the pins on the joystick port.)
I dont get it .What are you trying to do whith the joystic. Or do you wan to read te joyticks position whith an PIC(thats simple to do it the PIC has A/D converter)?
let me make my self clear:
What do you want to do whith the joysrick and the PIC?