adc值波动 [英] adc values are fluctuating

查看:236
本文介绍了adc值波动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请给出一些保持ADC值恒定的解决方案

解决方案

如果ADC连接到例如快速传感器,这可能是非常正常的行为。



您需要做的第一件事就是确保您的硬件正常工作,这样就不会出现这种问题。

还要阅读HW的规格,以了解正常的波动程度。



然后有几种方法可以减少波动,或者更确切地说是外观。 br />


1.选择适当的范围

如果您测量的电池电压为12V,请不要将结果显示在uV中。 />


2.显示ADC值时减少小数位数。

通常一两位小数就足够了。



3.降低刷新率

你真的需要多久更新一次ADC的值?



4.提出平均值
您可以测量,例如,5个值并计算平均值并显示该值。


ADC测量值波动的原因有很多。您应该提供有关您的场景的更多详细信息。

使用ADC进行测量技术有点棘手:例如,使用SAR ADC,您必须确保您的测量符合ADC采样时间要求。

please give some solution to keep ADC value as constant

解决方案

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.


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.


这篇关于adc值波动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆