andytork
Well-Known Member
- Joined
- 26/4/08
- Messages
- 443
- Reaction score
- 36
My bubbler is super accurate, its more down to how round your pots are and how accurate your radius/diameter measurements are.Truman said:Wow..that my man is freakin awesome. How well do you find the bubbler system works? I considered it but thought it wasnt worth the trouble.
If you are using MPX5010DP sensors and need a hand, give me a shout. I spent many hours on these.
Here is my workings, don't bother with psi, keep in kpa (as that translates to mm easily) - my pot has a 237 mm radius as seen below. I also use an averaging system to cater for splashing.
formula was
Vout = VS x (0.09 x P + 0.04) ± (Pressure Error x Temp. Factor x 0.09 x VS)
ignoring errors becomes O = 0.2 + 0.45P
or they way we want it p = (O -0.2) / 0.45
Output of below is litres (with decimals)
Code:
val = cMPX5010.GetSensorByName("H")->m_iAvgVal;
//Serial.print(val,4);
val = ((5.0/1024.0) * val); // range is 5v, we have 1024 steps giving 5v
val = (val -0.2) / 0.45;
val *= 100;
val *= (3.1415927 * (237.0*237.0)) /1000000.00;
cProgram.hlt().SetVolume(val);