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...
thanks for the reply: what is the matter with the caps????..anyway thanks for the link,actually i need code example in basic programing language for a running average routine...thank you all for any info..
THANKS FOR THE REPLY: I DID TRY THE AVERAGING TECHNIQUE,IT HELPS A LOT. THERE IS STILL THAT ANOMALOUS READING THAT POPS US DUE TO THE FACT I AVERAGE IN THE NOISE WITH THE ACTUAL DATA....FROM WHAT I READ ABOUT THE MEDIAN TYPE FILTER IT IS LESS LIKELY TO HAVE ANY OF THE NOISE IN THE FINAL AFTER...
HELLO: WELL I HAVE SPENT MOST OF THE DAY READING ONLINE ARTICLES ABOUT CODING FOR A MEDIAN FILTER. EVEN TRIED AN EXAMPLE,STILL OVER MY HEAD...I HAVE A 22 BIT ADC FOR A CO2 SENSOR,OUTPUT IS IN P.P.M., SO AT 5% GAS OR (50,000 PPM IS WHAT I WILL DISPLAY),THE READING IS A LITTLE JUMPY. LIKE 50,130...
WELL MY FRIEND YOU DID IT.....AFTER THREE HOURS MY UNIT IS RUNNING FINE ( FOR NOW)..TO SUM IT UP, AFTER YOU FIXED THE MATH PART OF MY PROBLEM,IT STILL DID NOT WANT TO WORK..MY CALCULATOR CONFIRMS THE MATH IS PERFECT,MY MICRO CONTROLLER,NOT SO...SO AFTER LOOKING THROUGH MY CODE,I FOUND I WAS...
OK MY OUTPUT IS 574 TO 634 FROM A 10BIT ADC,ONLY USING A SMALL DIFFERENCE OF THE FULL SCALE FROM 0 TO 1024...I CAN GET MY ANSWER FROM 574 TO 634 TO BE FROM 0 TO 100...STILL NOT FROM 30 TO 50..
OK, I HAVE HAD A LOT OF THESE MATH PROBLEMS AND AFTER I PULL A FEW HAIRS OUT I HAVE MY ANSWER. WELL THIS TIME I HAVE A BRAIN FART,STILL NO ANSWER...IF SOMEONE HAS A FORMULA FOR THIS ONE,A MILLION THANKS...I HAVE A SENSOR THE OUT PUT ADC VALUE IS FROM 574(LOW END) TO 634(HIGH END),OK THAT IS...
WELL I HAVE LEARNED A LOT THROUGH THIS DISCUSSION.NOW I KNOW WHAT I NEED TO MAKE THE INSTRUMENT WORK RIGHT. MUCH THANKS FOR YOUR TIME AND EXPERTISE. I AM SURE I WILL BE BACK WITH OTHER GAS RELATED QUESTIONS...THANK YOU SO MUCH AGAIN...
HI: I DESIGN ELECTRONIC CIRCUITS. SOME INSTRUMENTATION FOR MUD LOGGERS IN OIL AND GAS.USUALLY I BUY PRE MADE SENSORS AND BUILD CIRCUITS AROUND THEM..SO I WAS TALKING TO SOMEONE,THEY SAID THEY USE A HANDHELD SENSOR THAT MEASURES PERCENTAGE OF METHANE,FROM THE GROUND,CONVERTS IT TO BTU. THEY DO...
HELLO: I WAS HOPING A PROFESSIONAL IN THE FIELD COULD HELP WITH VERIFICATION. I DID GOOGLE AND FOUND A LOT OF HELPFUL INFORMATION,BUT THAT FINAL VERIFICATION WOULD REALLY HELP.I WANT TO KNOW HOW TO CALCULATE BTU OF METHANE FROM PERCENT BY VOLUME OF METHANE GAS. FOR EXAMPLE: I HAVE 10%...