Can you get the original analogue signal from the PWM signal?
-
I'm making a radio controlled car simulation for some electronics coursework and I've stumbled across a problem... I'm going to control the speed of the motors using PWM and sending it across using an r.f transmitter and receiver, I was just wondering if there is any way of me, after receiving the signal, converting it back to the original analogue signal so I can stick it into a comparator to determine which way the motor will spin? Or is there an easier way to go about this? Thanks in advance.
-
Answer:
Yes you can. The R/C signal is itself a form of PWM, where the pulse repeats every 20 ms and the width varies from 1 ms to 2 ms (and in some cases from 0.5 ms to 2.5 ms). The midpoint of this range, 1.5 ms, corresponds to neutral - pulse widths (PW) less than 1.5 ms correspond to one direction, and those above 1.5 ms are for the other direction. I'm not an R/C guy, but as far as I can tell, the reason for the small PW range (i.e. 2 ms instead of 20 ms) is so that multiple control functions (e.g. steering, throttle, ...) can be accommodated on one radio channel. So, depending on how you are decoding the signal, digitally or with an analog low-pass filter, there are different ways of determining the direction. Digitally, you would program a microcontroller to time the precise width of each pulse and compare the result with a value stored in memory, corresponding to 1.5 ms (plus or minus a dead zone to prevent jittering). With an analog low-pass filter, you would run the resulting voltage though a pair comparators that compare it with upper and lower voltages corresponding to each direction. Again, you'll want to have a dead zone so the you never have both comparators turning on at the same time (as when the voltage is near the neutral value).
Elliot at Yahoo! Answers Visit the source
Related Q & A:
- How do I get the original e-mail format back?Best solution by Yahoo! Answers
- How do you get the original Myspace background back?Best solution by Yahoo! Answers
- How can I get the cable signal in my room?Best solution by Yahoo! Answers
- Where can I get the original Half-Life for PC?Best solution by Yahoo! Answers
- Can I get a better signal than 480i?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.