2.) Put caps 1uF on each side of the pic on the Vdd and Vss.
3.) No microwaves, no TVs, no fluorescent lights close to my project. I scanned my desk for any possible interferences but there is nothing.
4.) Put a .1 uF parallel with a 100K resistor at the ADCIN pin. Tried with different caps.
5.) Added a LED and it blinks ok. Do not see any skips or changes on the blinking rate.
6.) The only thing is that I could not find RF chokes locally (I'm in Panama Central America). I put a ferrite on the cable to the ADCIN pin just in case.
All of the above and problem still persists. I have not seen a single change on the way the erratic readins of voltage behave. I tried to see if there is a pattern to the erratic readings but can not see one.
Is this problem with erratic voltage readings something usual or rare? I have continued searching the web and I don'yt see anything that really talks about this.
Could this be a problem with the PIC18F4620? Or maybe I should not be using a breadboard?
Javier.
Last edited by JavPar; - 21st December 2008 at 06:42.
With what you describe, I feel certain the issue is not of hardware. I have used the ADC on a breadboard, with a far cruder supply (no RF chokes/filters) without a problem.
I have never used a PIC18F4620, though. Which is why I suspect perhaps its to do with some settings specific to that chip.
Could you temporarily replicate that with another PIC, say a 16F877?
2.) Put caps 1uF on each side of the pic on the Vdd and Vss.
3.) No microwaves, no TVs, no fluorescent lights close to my project. I scanned my desk for any possible interferences but there is nothing.
4.) Put a .1 uF parallel with a 100K resistor at the ADCIN pin. Tried with different caps.
5.) Added a LED and it blinks ok. Do not see any skips or changes on the blinking rate.
6.) The only thing is that I could not find RF chokes locally (I'm in Panama Central America). I put a ferrite on the cable to the ADCIN pin just in case.
All of the above and problem still persists. I have not seen a single change on the way the erratic readins of voltage behave. I tried to see if there is a pattern to the erratic readings but can not see one.
Is this problem with erratic voltage readings something usual or rare? I have continued searching the web and I don'yt see anything that really talks about this.
Could this be a problem with the PIC18F4620? Or maybe I should not be using a breadboard?
Javier.
Hi, Javier
Nothing about config.
BUT Your supply filtering looks to me a bit weak ... ( USB voltage stability ... ahem !!! )
I have a board with '452 and another with '2520 ... 220µF at the card pow. input + 10 µF Tantalum + 0.1µF ( closest as possible from PIC pins ).
see scheme attached.
Some capacitor tank ( > 10µF Tant.) close to your LCD could be useful too ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Hey guys I really appreciate your help. Alain, that schematic that you posted has made me think. I used my multimeter to test input voltage right at AN0 pin and the voltage is steady at 2.432 with the last gidit sometimes changing to 1.
I also noticed that measuring voltage in the output pin to my LCD I get oscillating 123mV to 127mV. That makes me think that possibly my PIC is doing something during the A/D convertion that it is outputting oscillating readings? The oscillating readings go out not only to my LCD pin but also to my PC pin.
Last edited by JavPar; - 29th December 2008 at 05:25.
Bookmarks