MartinVerges / womolin-waterlevel

DIY project to build a smart fuel sensor for RVs or in other projects. It is based on air pressure and is able to measure fresh water as well as grey and black water levels with high precision.
Other
13 stars 3 forks source link

Air pressure measuring issues #7

Open OldPlanets opened 10 months ago

OldPlanets commented 10 months ago

Thanks for this great project. This was exactly what I was looking for, and it's great that someone else already did such a great job building and implementing it. πŸ‘

Now about my issue: I'm not sure if it matters, as I'm not proficient enough in relevant physics, but I have chosen a different design for my measurement tube. Basically, I'm just using 4mm Quick Connectors with a check valve behind the pump, a Y-Connector to join the sensor and air pump tube, and then a bulkhead connector for the tank. So just one single, small tube is going into the tank. For me, this has the advantage of being easier to make; it looks cleaner, and I can leave the last part of the tube in the tank forever and just connect the tube from the device to the bulkhead connector.

I have tested it, and it is airtight and all, keeping the pressure over days. However, I have run into one issue: Using the pump produces a significantly higher pressure reading (about 10-15% in my local tests) inside the test tube than if I fill the empty jar (test tank) with water but don't use the pump. I'm sure there is an exact physical explanation for it, but I don't know it.

Does anyone know if that's because of my changed measurement tube, or does the suggested setup have similar issues? Does using a larger/wider tube mitigate it?

For now, I'm planning to just detect if the tank gets filled up (which only happens every few days anyway) and run the pump on those occasions, as well as running the pump between the setup steps when the water fills up, and reference values are taken.

On a side note: Right now, the build compensates changes in atmospheric pressure by running the pump. Wouldn't it theoretically be possible to compensate for the changes by calculation? So you could have builds without a pump, as long as your tank gets totally emptied every few days/weeks to make up for diffused air

MartinVerges commented 10 months ago

Hello,

It already tries to compensate the ambient change a bit, but I'm not that good in developing a solid math to do so reliable enough.

My first approach to solve the issue of going uphill and downhill was a pump, but I couldn't find a air tight cheap small pump for this. Please share the exact parts you are using, that's awesome.

Regarding the higher reading: Yes you have to wait a short time (2 sec or so) until the pressure is on a correct level again. Besides that, nothing that I noted so far using the pump.

Best regards Martin Verges

OldPlanets @.***> schrieb am Fr., 25. Aug. 2023, 06:45:

Thanks for this great project. This was exactly what I was looking for, and it's great that someone else already did such a great job building and implementing it. πŸ‘

Now about my issue: I'm not sure if it matters, as I'm not proficient enough in relevant physics, but I have chosen a different design for my measurement tube. Basically, I'm just using 4mm Quick Connectors with a check valve behind the pump, a Y-Connector to join the sensor and air pump tube, and then a bulkhead connector for the tank. So just one single, small tube is going into the tank. For me, this has the advantage of being easier to make; it looks cleaner, and I can leave the last part of the tube in the tank forever and just connect the tube from the device to the bulkhead connector.

I have tested it, and it is airtight and all, keeping the pressure over days. However, I have run into one issue: Using the pump produces a significantly higher pressure reading (about 10-15% in my local tests) inside the test tube than if I fill the empty jar (test tank) with water but don't use the pump. I'm sure there is an exact physical explanation for it, but I don't know it.

Does anyone know if that's because of my changed measurement tube, or does the suggested setup have similar issues? Does using a larger/wider tube mitigate it?

For now, I'm planning to just detect if the tank gets filled up (which only happens every few days anyway) and run the pump on those occasions, as well as running the pump between the setup steps when the water fills up, and reference values are taken.

On a side note: Right now, the build compensates changes in atmospheric pressure by running the pump. Wouldn't it theoretically be possible to compensate for the changes by calculation? So you could have builds without a pump, as long as your tank gets totally emptied every few days/weeks to make up for diffused air

β€” Reply to this email directly, view it on GitHub https://github.com/MartinVerges/womolin-waterlevel/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNMDDQ3V5AYXKG2INRIN5TXXB63PANCNFSM6AAAAAA36KNSDQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

OldPlanets commented 10 months ago

Parts for the tube I use? They are pretty standarized but I got mine here: https://www.wassertechnik.pro/steckverbinder/metrisch/ On the attached picture you can see the three items I used (+ the tubes).

As for the pressure, no it's not just a few seconds, it stays constant for hours. And I'm sure it is actually higher pressure (so a physical thing) not a sensor issue. I'm just not sure what's causing it and if it's actually the proper measurement (and pouring water in without the air pump has some skew) or if something in my setup causes it. I suppose I should be able to calculate it, after all I know how much pressure a given water column should result in, but I haven't tried that yet. But again, adjusting the code for it is not a problem, I'll probably go that way.

(I'm also doing some other changes because my build doesn't have a Wifi button, so I'll use power up to turn on Wifi for X minutes. And I'm also hoping to use the light sleep with BLE, whcih I read should be fine, but not there yet.)

PXL_20230825_135801017