Click here to Skip to main content
15,885,777 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
please give some solution to keep ADC value as constant
Posted
Comments
_Asif_ 12-Sep-14 0:58am    
How on earth we could understand your mind with a 10 word Question?
enhzflep 12-Sep-14 1:10am    
Remove power to it. Then you'll have a constant low-level output. :roll-eyes:

This can pretty normal behavior if the ADC is connected to, for example, a fast sensor.

The first thing you need to do is to make sure your hardware is working properly, so you don't have that kind of problem.
Also read the spec of the HW in order to know how much fluctuation that is normal.

Then there are several methods to reduce fluctuations, or rather the appearance.

1. Select an adequate range
If you are measuring a battery voltage of 12V, don't present the result in uV.

2. Reduce the number of decimals when you display the ADC value.
One or two decimals are usually enough.

3. Slow down the refresh rate
How often do you really need to update the value from the ADC?

4. Present a mean value
You can measure, for example, 5 values and calculate the mean value and display this value.
 
Share this answer
 
v2
There are many possible reasons why the ADC measures fluctuate. You should provide more details about your scenario.
Measuring with an ADC is a bit tricky technique: for instance, using a SAR ADC, you have to be sure that your measure meets the ADC sample time requirements.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900