Tank water level with MS5540-CM

Moderators: Voyager, BertB, rtenklooster, Stuntteam, Martinus, grovkillen, TD-er

Post Reply
Message
Author
Sejcek1
Normal user
Posts: 2
Joined: 08 Sep 2018, 11:13

Tank water level with MS5540-CM

#1 Post by Sejcek1 » 08 Sep 2018, 16:25

Hi all,

Is there support for sensor MS5540-CM planned? It is quite cheap waterproof pressure sensor.
https://www.ebay.com/sch/i.html?_from=R ... M&_sacat=0

It seems it might be good for projects where you need to monitor the amount of water or other fluid (height / pressure) and, for example, drive the garden irrigation automation. Certainly, such a possibility would apply to many other people. Could anybody will be able to write a plugin for this sensor? I found some script for Arduino, but I can not know how to write it for ESPEasy:
https://gist.github.com/hephaestus9/daf ... 720e0e3431

Best Regards!
Sejcek1

User avatar
grovkillen
Normal user
Posts: 1897
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Tank water level with MS5540-CM

#2 Post by grovkillen » 08 Sep 2018, 16:33

Looks like a good sensor. You should add it as a feature request on GitHub.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Sponsor ESP Easy, we need you :idea: :idea: :idea:

HomeJCL
Normal user
Posts: 36
Joined: 03 Feb 2018, 10:42

Re: Tank water level with MS5540-CM

#3 Post by HomeJCL » 08 Sep 2018, 19:32

Looks good

But how to implement ? how to rig this to existing piping or water tanks ?

By the way, for level ... a barometer won’t be of much use.
Belgium and land of ESP ... counting :D

Domosapiens
Normal user
Posts: 126
Joined: 06 Nov 2016, 13:45

Re: Tank water level with MS5540-CM

#4 Post by Domosapiens » 09 Sep 2018, 21:11

How about the supported Ultrasonic HC-SR04
https://www.letscontrolit.com/wiki/index.php/HC-SR04

Waterproof:
https://www.aliexpress.com/item/Integra ... 90912.html

(not sure if they have the same interface towards ESPEasy)
18+ ESP units for production and test. Ranging from production control of heating equipment, floor sensing, floor thermostat to a "fun box" for my grandson. Mainly using Wemos D1.

Sejcek1
Normal user
Posts: 2
Joined: 08 Sep 2018, 11:13

Re: Tank water level with MS5540-CM

#5 Post by Sejcek1 » 14 Sep 2018, 02:00

@HomeJCL: Just put it to the lowest place of the tank/pipe. Water/hydrostatic pressure is equal to water height so barometer should be useful (sure, only for atmospheric pressure tanks). It should be easy to convert pressure to water height.

@Domosapiens: You can measure up to 100m water level in narrow borehole within this sensor and sensitivity looks quite good.
https://www.youtube.com/watch?v=g_7txTdy-tg

HomeJCL
Normal user
Posts: 36
Joined: 03 Feb 2018, 10:42

Re: Tank water level with MS5540-CM

#6 Post by HomeJCL » 14 Sep 2018, 04:16

There are several types of this sensor

The link goes to a range of 10 ... 1100 mbar
with 100m waterproof spec ! Means over pressure capability nothing todo with measuring range.

Anyway if you use the linked sensor, (abs press sensor barometer), you need a second one as reference (for measuring atmospheric pressure) to be substracted from the level pressure

Eg Pabs 1023 mbarabs. Measurement of level 1089mbarabs

Level 1089-1023=66mbarabs ~ 660mm level

With sensor max range 1100, this summer where I live, we had max Patm 1037 leaves us a max useful level on that day of 630mm water !!!

Recap :
read carefully spec sheet !
need 2 pces to measure level or anyway you’ll need a Pabs reference to calculate level from vessel. Needs additional “programming” not much but I’m lazy

So you simplify by using same type but looking for a gauge pressure type and not absolute pressure.

But then we are back at square 1, expensive, difficulty of mounting, exposed circuit and risk of leakage !

JSNxxxxx sensor costs around 7 $US works up to 4-5m and does mount in no time and no risk of leakage.

KISS ... that is ESP Easy philosophy
Belgium and land of ESP ... counting :D

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests