Hmm.. borrowing this thread a bit..
I really hate math, especially when I constantly find myself struggling with float math when trying to do something in PBP.. It would be SOOOOO nice if this could be built into PBP, so I didnt have to use my brain for this kind of things.. this is what computers are supposed to be good at.
In my current program I would like to do:
calcpress = ((( pressure / Vs) - 0.04 ) / 0.00396 )
(Vs is the reference Voltage, 5v)
I really tried to understand what melanie wrote, knowing that it could solve this problem too, but nopes.. dont get it to work out..
I really would like to get a grip of this, coz when working with the ADC's I constantly get this kind of troubles when I want a "real" value calculated with the formula in the sensors datasheet, like in this case.
Please help![]()
Bookmarks