PDA

View Full Version : How to Read r/c signal PCM



jetpr
- 17th March 2005, 15:25
Hi all
i need help to read PCM signal and scale from 0 to 100%

Acetronics2
- 17th March 2005, 18:09
Hi, jet

Pulsin seems to be very adequate ...

@ 4 Mhz result will be ~100 to ~ 200 ...

100 is 0% 200 is 100% ...

@ 20 Mhz ...............~ 500 to ~ 1000

then just calculate the y = ax+b equation ...

But if you want to have precise 0% for stick down and 100% for stick up , you'll have to calibrate and memorize result first.

i.e 112 is 0 % and 188 is 100% @ 4Mhz

May be you will have to use DIV32 for calibration if 20 Mhz necessary for 2µs resolution ( see manual ...)

Alain

jetpr
- 21st March 2005, 23:57
I need a specify pin to connect the rc input to read PCM or not

Acetronics2
- 22nd March 2005, 07:06
Hi, jet

I Think the best for you could be to learn the Melabs or Parallax Basic manuals from the beginning.
Jet models will have to wait some time ...

Alain