Go Down

Topic: Changing resolution of AnalogRead() on Arduino Uno (Read 875 times) previous topic - next topic

huynh213

Hello,

As I understand the analogRead() function has a resolution of 5V/1024= 4.9mV. Now I try to increase the resolution to 50mV to avoid unwanted noise plus I don't need it to be as low as 4.9mV. I am wondering if there's any good ways to do it.

Thanks,

Grumpy_Mike

Quote
I am wondering if there's any good ways to do it.
Only with software dividing the reading, you can not affect the hardware resolution in this direction.

huynh213

Hi Grumpy_Mike,

Any recommendation of what direction I should take? I am a bit confused by the meaning of "software dividing the reading".

Thanks,

AWOL

50mV is greater than 4.9mV - that's a reduction in resolution.

huynh213

My bad, its a reduction in resolution. Any thought?

sterretje

Code: [Select]

int value = analogRead(A0) / 10;


As said before, simply divide.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Paul__B

It may be as well to add five before you divide by ten.

JohnLincoln


JohnLincoln

There seems to be some confusion about whether you require a higher resolution, or a lower resolution.


Maybe it is a bit like a x10 oscilloscope probe - it doesn't multiply the signal by 10, it divides it by 10

Go Up