ok. This is what im basically doing.
Using a 16F876 to monitor my temperature (LM35), current and speed of my R/C Car. A PC would be used to sent data to my PIC to control the movements. in order to confirm what data im receiving from the PC, i had the data received in the RCREG immediately displayed out through LEDS.
But everytime the LEDS lit up, my monitoring readings would fluctuate badly. Example, 26 celcius reading would suddenly jump to 35 celcius and maitain there until i off the LEDs. Another instance, i plug the ADC pin raeding my 'current' directly into the ground. Instead of displaying zero, it displays somekind of value (verysmall value).
This seems to happen everytime i output something or consume more current in the PIC.
Another thing to add is, by using my PIC to control my motor, the monitoring raedings would fluctuate very very badly. The motor is using another power source with the ground connected to the PIC ground of course.
Whenever i do not output anything from the PIC, everything seems to run smoothly. Is there any possiblity this is caused by an unregulated power supply ?
Any idea what is going on?
Thx