hello everyone
I'm trying to read the PWM from my wireless futaba receiver. Im using a low-pass filter that has a 10k ohm resistor and .1uF capacitor, with the transmiter stick centered the flilter outputs .269 volts, and .185 and .369 for left/right.
The receiver and my atmega168 share a common ground, and i connected the filter's output to my ADC.
After many weeks of tweeking software ive concluded that my ADC value somehow cycles through all 3 apropiate voltage values. For example if i have my LED turn off when the PWM is .185 or .369 and turn on at .269 the LED will basically flash or flicker depending on my ADC prescaler.
Should i changed my low pass filter or just try to read the PWM periods with interupts and timers?
I've spent many weeks on this problem, any help is appreciated