Reading Pressure
Carl P
Posts: 5
Hello all I'm working on a project I need to measure the pressure on a refrigerant circuit . I have a pressure transducer with a 0-5V output 0-500 psi how can I covert the ADC to a psi # I would appreciate any help this is my first time using ADC
Comments
Welcome to the Forums.
By far, the simplest way to proceed is to get an LTC1298 dual channel ADC chip. Its a 12-bit unit and available with sample code from Parallax or you can get the chip from your favorite supplier and download the sample code from the Products page.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
Thanks again
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
As Carl H pointed out, you can run a set of tests and get some representative points.
If its a commercial transducer, you'll probably be able to use a formula like:
pressure = adnum* (multiplier) + offset
For instance, say 500 psi drove the a/d to fullscale(4096). The multiplier would be 500/4096 or about 0.122. Now, the only snag is that the Stamp works in whole integer numbers so you'd have to use a technique of dividing by 8; or multiplying by 10 then dividing by 82. The offset would be something like (-15) to take atmospheric pressure into account.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
A lot of good suggestions. I just ran thru the same situation using an 8 bit converter. I collected some data (measured pressure vs converter output count) and entered it into an excel spreadsheet, and then had excel plot a graph. Luckily, mine was a linear function.
I used the excel "trendline" and "show formula" function and it gave the conversion formula.
My formula was psi = ADcount * 16.38 + 120. As Tom said, the integer math won't handle the 0.38 part, so I wrote the fromula as:
psi = (ADcount * 38)/100 + (ADcount * 16) + 120.
There will be a little bit of truncation error when you divide by 100, but it will probably be insignificant for your application.
Your application is interesting. I made a transducer from a little surface mount wheatstone bridge pressure sensor and it worked pretty well. The hardest part was getting the 4 wires for the bridge out of thru the wall of the pressure vessel without any leakage.
Regards,
Lloyd
Thank you all for your input, my pressure transducer will be in on Friday·· ·Can you post a Link to this Pressure Transducer
·and i will get to work I will keep the post updated as i move along········ ·Can I ask you what you are builting
Sound like· every nice Project
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
The Pressure Transducer
[noparse][[/noparse]url]http://sensing.honeywell.com/index.cfm?ci_id=140301&la_id=1&pr_id=122351[noparse][[/noparse]url]
I dont have the hang of the url attachment yet
im building a refrigerant monitoring controller for a garbage plant Im not sure how far i can take it but im going to give it my best
If I can help you with any coding let me know
Post what you want it to and let see what happens
Thanks for the Link···· This link really helped a lot for a project at work need a pressure switch like that
The Glass icon is what you use to link a site
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
Post Edited (sam_sam_sam) : 9/2/2009 11:46:50 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen