![]() Mine is 100PSI or 0.689įloat calibration_offset = -0.0403 //-0.0535 //inverse of whatever the transducer reads at ambient pressure. int transducer_signal įloat scale = 0.5 //72PSI 0.689 //100PSI //the maximum resolution on the transducer in Mpa. Note: there's values in comments that I used when I thought I had a 0-100PSI transducer. What is a better way to do this that still puts a variable in the calculation to adjust both the zero and still have full sweep of the range? I'm guessing it's easier to adjust the calculation to work on a scale from 165-? than it is to write a calibration adjustment, but I want to keep this intuitive for future changes without having to spend so much time to calibrate my code. ![]() When the transducer is at ambient pressure, it returns a value between 163 and 168 instead of the expected low 100s. ![]() There's a blow off valve set at 75 PSI so it should never see 0.5Mpa and typical operating range is 30-something to mid-50s PSI. It matters not, 0.5Mpa will work just fine for my purposes. I never threw the air compressor in the back of my truck. I trust the air compressor gauge far more than the bicycle pump gauge. I think it's actually a 0.5Mpa transducer because I'm using a >highly accurate<< bicycle pump to test it and an external gauge from an old air compressor. I bought a 3-wire "100 PSI" pressure transducer from Amazon. ![]() This is my first attempt at logging pressure. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |