I am using a arduino mini. I have been using SparkFun RC robot control code. It used PulseIn to read pwm from a Tx. It was working great reading values from 1000ms to 2000. All of a sudden it stopped working. It now reads values from 0-12000 and occasionally it settles in 1000-2000 or settles at a constant 9000ms.
I can’t seem to diagnose the problem. Has my arduino broken? Am I getting some severe electrical interference? Has the internal clock broken(if that can happen).
The only topics I can fine on similar situations were people advising to use interrupts. Which I have tried. However I am getting the same situation.