Re: ADCIN giving inconsistent results
I would insert a low-pass filter and buffer between the sensor and the PIC. This way, you cut the noise, avoid some spikes (if designed accordingly) and make sure you also have the maximum input impedance on the ADC. (2Kohm if my memory serves me well)
Side note, if your unit is mounted on a breadboard... you may/will experiment all sort of behaviours, Car noise can be really nasty sometimes.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks