cross-posted from: https://lemmy.world/post/45847124

For quite a while I had been longing to measure the waterlevel in my well.

The first attempt with a HC-SR04 failed due to distance (4 meter deep well) and problems of how to mount it in the well. Then I came across the JSN-SR04 sensor. It’s all running on an esp2866 (I found it to have better wifi than the esp32). Several parts re-used from old projects. Added small solar panel to keep it all self contained. Data is sent to homeassistant (mqtt) and a bit of log/debug data to syslog.

Due to circumstances had it been lying on my desk quite a while, but finally, today I was able to install it!
I screwed a drainpipe cap to the lid of the well and mounted the sensor in another. A simple pipe connector in between works like a charm.

  • prenatal_confusion@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    1 month ago

    Ah didn’t make myself clear. I meant you have a measurement that isn’t binary as in water/no water with a simple switch but a distance sensor.

    • redlemace@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      Ah, no, it isn’t binary. It gives me centimeters of water column above the outlet three times per hour. In the code i rounded it to whole cm becasuse millimeters sounded very useless.

      Sharp drops:

      • shower
      • water for ducks
      • washing machine