question

Mike Dorsett avatar image
Mike Dorsett asked

Analogue vs Ultrasonic for large tank measurements?

I recently installed an SR04 ultrasonic ranging unit in my 3200l water tank for level detection. This was connected to a Beagle bone Black, and the routine to measure tank level was triggered every 5 minutes. Each measurement cycle was repeated 10 times, and the result averaged. However, I found that the level reported reading became "noisy" as the tank level dropped from 100% to 50% and below. The reading was also significantly affected by temperature - the air space in the tank can get to 50C or more with 95%+ humidity as the tank is exposed to tropical sun. The beaglebone is also running several other tasks as well as reading the tank - BMS, VE-direct and VE-bus programs are also running. So part of the "noise" could well be random delays caused by the processor being busy with other tasks - the beaglebone does not have a hardware interval counter that could be used for timing the return pules from the SR04 module. The longer the return pulse takes, the more likely it is to be 'missed' due to other tasks being executed, leading to timing variations.

I've now resorted to an analogue sensor made from a 2" pulley and a 100 ohm 10 turn pot - driven by a weighted line to a float on the water. Housings for the pot, pulley and float were all 3D printed. This can directly connect to the Bone's ADC, using the ADC supply and ADC ground to bias the pot. So far this is delivering much improved results with no detectable noise or temperature influence.

Whilst this setup only works for stationary tanks, it is relatively simple to implement - only the pulley diameter needs to be calculated for the height of the tank to achieve ~10 turns from full to empty.

I did try to look up articles on the effect of temperature and humidity on the speed of sound, but could not really come up with a definitive answer. The variation in measurement was also much greater than the articles seemed to suggest.

So if you have a large tank and the temperature variation is high, I would consider the analogue solution to be preferable to the Ultrasonic one....

tank monitor
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
derrick thomas avatar image
derrick thomas answered ·

You might also consider a pressure transducer. I use them in my fresh/grey/black tanks and they work great.

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Josep morancho avatar image Josep morancho commented ·

Derrick, I would appreciate if you tell me what pressure transducer you use and when i can buy it.

On the other hand:

1 - how tall are your tanks?

2 - are your transducers connected to Cerbo to monitor tank levels?


Thanks



0 Likes 0 ·
derrick thomas avatar image derrick thomas Josep morancho commented ·

I use a 4-20 ma transducer, you can find them on Amazon. There are drop in that I just drop in from the top of the tank, and there are threaded ones that can be threaded into a bung, or installed into the outlet plumbing of the tank such as fresh water or diesel. My tanks are 30" tall, but transducers come in a range of options for different depth of tanks.

The transducers are connected to the cerbo via the tank140.

0 Likes 0 ·
Mike Dorsett avatar image
Mike Dorsett answered ·

dsc00100.jpg

This gives my a visible indication too.

Do you use static (water pressure sensor) or an air buble/pressure type sensor? I tried the latter on our yacht many years ago, but had problems with the air pressure pump...


dsc00100.jpg (6.4 MiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.