MCP3202 ADC readings jumpy
Don M
Posts: 1,652
I am using Ken's object from the OBEX http://obex.parallax.com/objects/515/. I have the chip connected as per the diagram with the demo with the exception I am using 5VDC as the Vref. I have a 3.3K between the Prop and the DI/DO pins. I am trying to read a LiPo battery and my meter indicates a nice steady voltage but the ADC values are all over the place. I'm using a Quickstart and am just wondering how persnickety these chips are? I don't have any bypass caps on the Vref other than what is on the Quickstart (using the proto board that plugs into it) and am wondering it that is my trouble.
I'm only reading the value every 2 1/2 seconds. I have it set to average (using one of the methods) 100 times.
What has been other peoples experience with these chips?
I'm only reading the value every 2 1/2 seconds. I have it set to average (using one of the methods) 100 times.
What has been other peoples experience with these chips?
Comments
Please explain. Pin 8 is VDD / Vref. The IC is rated to operate from 2.7 - 5.5VDC. As I understand the spec sheet if I operate the IC from 5VDC then I can input a voltage from 0 - 5VDC to measure. If I operate the IC on 3.3VDC then my input range is 0 - 3.3 VDC.It shares a common ground between the IC and the voltage input.
So what I tried next was to operate the 3202 from 3.3VDC and added a .1uF cap across the VDD / Vss pins. It seems to have settled down but the reading sometimes works sometimes doesn't. I can put the input to ground and it will show "0". If I put the input to pin 8 (3.3VDC) I get 4095 which I would expect. Then I go back to ground but the display sits at 4095. Or it might jump to 0. It isn't predictable. I even quit using the average sampling setting to see if that helps. Not much difference.
I have it reading in a repeat loop every 1/2 second. Also tried reading every second and 2 seconds. No different.
Also tried another 3202. No different....
Confused with this at the moment...
Is there supposed to be any pullup on the DO/DI pin? Seems like a driver problem to me.
Sorry, my misunderstanding. I thought it had separate Vdd and REF inputs like the MCP3208 I use.
The original object would only work for a few seconds then it seemed to "lock up" and become unresponsive. I didn't put my logic analyzer on it to see what was happening. And I was using it as-is with it's demo.
So my final configuration is- VDD / Vref connected to 3.3VDC with .1uF cap. Battery voltage in goes through resistor divider- IN >> 180K >> AD0 In >> 330K >> Ground. Allows me to measure up to 5.1 VDC scaled to 3.3 VDC.
Edit: Thanks Elkin!!
Glad to finally be able to give someone on here some useful information for once!