Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADC FORMULA 1

Status
Not open for further replies.

DANTHEELECTRICMAN

Electrical
May 24, 2013
14
HELLO:I have a bit of a math curiosity. I need to understand how the formula works. This is from a flow sensor,going to an ADC,on a 5 volt ref.. Here it is...

(240 - 238) = 2 (* 2) = 4 (\ 5) = .8 (+ 30) = 30.8 original formula...

(240 - 238) = 2 (\ 2.5) = .8 (+ 30) = 30.8 my reduced formula...

240 = ADC_count from sensor
238 = ADC_count at 0 flow
\2.5 or * 2 \ 5 = ???? mystery number
+ 30 = lowest value displayed on screen (50 is the highest)
30.8 = flow rate

OK so ADC value is from 238 to 288,translates to 30 to 50 on screen...
The formula works,but how???
What is the \2.5???
Is there an easier way to work this without the 3 constants (-238 offset),(\2.5 mystery number),(+30 lowest reading on screen)???
If any one has a good explanation and/or a better way to rewrite this formula that's great....THANK YOU FOR ANY HELP.....



 
Replies continue below

Recommended for you

Mystery number is convertion range = range 1 / range 2 = (288-238) / (50-30) = 50/20=2.5
 
WOW!!!! That was easy...Sometimes I just need to see it...Thank you very much....[smile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor