converting adc value to millivolt

Status
Not open for further replies.

raman00084

Full Member level 6
Joined
Nov 29, 2010
Messages
375
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Visit site
Activity points
4,076
how can i convert my adc value to Milli-volt in the range of 0-5000mv that is 0-5v
my adc_value changes from 0 - 1023
for example my adc_value is 1023 i must get 5000mv

how can i do this i am a beginner of c kindly help thank you
 

how can i convert my adc value to Milli-volt in the range of 0-5000mv that is 0-5v
my adc_value changes from 0 - 1023
for example my adc_value is 1023 i must get 5000mv

how can i do this i am a beginner of c kindly help thank you

mv_value = (5005 * adc_value) / 1024;
 

Hi
Do this
In put rage 0 - 4.88v

Then Out put multiply by 5
 

5 divided by 1023 is roughly 0.00488V or 4.88mV. So you could just multiply the adc result by 4.88.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…