Тёмный

This Happens when all Buy Options Suck! Water Level Sensor (DIY or Buy) 

GreatScott!
Подписаться 2 млн
Просмотров 254 тыс.
50% 1

Mid-Year Mega Sale $250 Coupon & More Surprise: jlcpcb.com/midyearsales
Get $20 OFF on JLCPCB 6-Layer PCBs: jlcpcb.com/6-layer-pcb
You can get the used products here: (affiliate links)
Hydrostatic Sensor: s.click.aliexpress.com/e/_DBp...
Ultrasonic Sensor: s.click.aliexpress.com/e/_DFc...
ESP8266: s.click.aliexpress.com/e/_DFz...
CAT7 Wire: s.click.aliexpress.com/e/_Dcu...
Junction Box: s.click.aliexpress.com/e/_Dne...
Enclosure: s.click.aliexpress.com/e/_DFA...
5V Power Supply: s.click.aliexpress.com/e/_DnK...
Try the world's most trusted PCB design software, Altium Designer with
365, for free and 25% off your purchase:
www.altium.com/yt/greatscott!
Check out Altium 365: www.altium.com/altium-365
Check out OctoPart: octopart.com/
Here you can download the design files for my enclosure:
/ 106053253
Websites that were shown/used during the video:
www.amazon.de/F%C3%BCllstands...
www.amazon.de/dp/B0CCK2F6TH
esphome.io/index.html
esphome.io/components/sensor/...
Previous video (Home Assistant Screen): • I tried finding Hidden...
Facebook: / greatscottlab
Twitter: / greatscottlab
Instagram: / great.scott.lab
TikTok: / greatscottlab
Discord: / discord
Support me for more videos: www.patreon.com/GreatScott?ty=h
In this episode of DIY or Buy, we will have a closer look at a very niche project. I have a cistern in my garden that stores all the rain water from my roofs. Only problem is that I have no idea how much water is in there meaning I need some kind of water level sensor. But the Buy options for such a "niche" application are not that great. That is why I came up with my own DIY solution that might be better ;-) Let's get started!
Thanks to JLCPCB for sponsoring this video.
Visit jlcpcb.com to get professional PCBs for low prices.
0:00 The Buy Options Suck!
1:26 Intro
2:21 Buy Option 1 (Hydrostatic Sensor)
3:32 Buy Option 2 (Ultrasonic Sensor)
5:23 DIY Solution
8:40 WiFi DIY Solution
9:43 Final Assembly
10:34 Verdict

Наука

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 781   
@rexcat180
@rexcat180 18 дней назад
I know that it is important to use click bait in order to get engagement but it is impossible to search your most recent videos effectively. I have watched you ever since the ebike battery and enjoy your vids but I'm scared this change will make it much harder to find information in the future. Can you at least add one or two words to the title about the project?
@greatscottlab
@greatscottlab 18 дней назад
Do not worry. After a week I usually add something to the title of the video. Here I will probably add "Water Level Sensor"
@rexcat180
@rexcat180 18 дней назад
@@greatscottlab thank you, good vid 👍
@TheMrRatzz
@TheMrRatzz 18 дней назад
Its all about the clickbaity my friend... Pixelating words and images -- you know, like they used to do in 2018! 👍🏻
@GoonyMclinux
@GoonyMclinux 18 дней назад
Thanks, I occasionally use your videos as a template and keywords truly help find things. ​@@greatscottlab
@cro2cl267
@cro2cl267 18 дней назад
if you want morea accurate titles, the Dearrow browser extention does an awesome job of it ( if someone updated the title ofc)
@inothome
@inothome 18 дней назад
Nice project, two simple suggestions. One, put a drip loop in that wire that runs to the box holding the PCB so water doesn't travel down in to it. It may not be wet now, but with high humidity and changing temps it will condensate on the wire and travel down. Two, I work with the industrial ultrasonic level sensors and there is a minimum distance they need to be away from the side, based on the depth of the tank to reliably detect the lower levels. Since as the sound wave travels out, it gets wider and the reflected sound is also wider. So we usually mount the sensors in the middle of the tank, like you did, but not up against the side of the wall there. It seems yours is working now with high water levels, but if you end up with erratic readings once the level goes down, try and move the sensor more to the middle of your opening. So the sensor isn't against a flat surface on one side like that.
@Flying0Dismount
@Flying0Dismount 18 дней назад
Those wires for the ultrasonic transducer are actually transmission lines not just DC signal line therefore you can't spice them but have to replace the entire length of cable. The joints in the wires caused by spices cause reflections in the signals which can cause all of the erroneous readings. You can use any random coax as a replacement but you have to replace the entire length you just can't splice them
@keycontroller
@keycontroller 18 дней назад
But if its just "coax" there are connectors& plugs extenders etc? Like oldschool tv coax ?
@Flying0Dismount
@Flying0Dismount 18 дней назад
If he replaces the tiny thin stuff with RG-59 or something, yes there are impedance matched splices available, but they still cause reflections that may affect the function. and if replacing the coax, why not just just the full length required then? And there are no splices for the thin stuff...
@swilson42
@swilson42 17 дней назад
The signal strength in TV broadcasts is orders of magnitude larger than what is in these tiny sensors. Splices do affect TV (you can easily measure this effect and consistently guess the number of splices and length of cable with practice, some meters actually have this function built in), just not enough to matter for signals as strong as TV until you add 10 or 20 splices.
@dollymix5
@dollymix5 17 дней назад
Sorry, I didnt understood very well. If I replace everything with a regular 4 or 6mm cable it would work? Or it need to be a special cable? What about the solder at the cable/pcb/connector. It would affect the signal?
@swilson42
@swilson42 17 дней назад
@@dollymix5 Short answer is yes, but I can see some caveats to that in this case because you probably can't get all the way to the sensor component itself with how it's molded together and would still have a splice, just closer to the component. I don't know if that splice closer to the component and then no splice on the other end until you connect to the board would be "clean" enough, but it could be worth a try if you really wanted to. I stand by my other comment though, that the under water pressure sensor would be the way to "upgrade" this setup. Mostly because that sensor is more robust and I think it has a better chance of still working 10 years from now.
@randycarter2001
@randycarter2001 18 дней назад
A former employer once told me about the prices he charged. "It's not about the parts, it's about the smarts." The price of the IC is nothing compared to knowing how to use it is everything.
@SmallSpoonBrigade
@SmallSpoonBrigade 18 дней назад
That reminds me of a story I heard many years ago. One day there was a problem with some of the equipment and a consultant was brought in to address the problem. He takes a few looks and bangs one of the machines on the side with a hammer. The equipment then proceeds to start work. He wasn't being paid gobs of money to hit it with a hammer, he was being paid to know where to hit the machine with the hammer and that hitting it with a hammer would work.
@ArifKamaruzaman
@ArifKamaruzaman 16 дней назад
yup. people charge money to do things they know. as my uncle said to me, if you're good at something don't do it for free. (i'm IT guy)
@neoxnitro81
@neoxnitro81 17 дней назад
In projects where the microcontroller operates continuously, I always implement two safeguards: - A hardware watchdog timer on the microcontroller itself. - Node-RED logic on the home assistant system to monitor sensor data publishing frequency. These combined measures (hardware and software watchdogs) improve system reliability by automatically restarting the microcontroller if it malfunctions and by alerting me if sensor data updates become infrequent, potentially indicating an issue.
@fluffyfloof9267
@fluffyfloof9267 18 дней назад
I've worked for a company that sells cisterns - 0:48 - i can tell you, right now - you want an ultrasound distance measurement - easy-peasy to figure out the current/remaining volume level! Especially with rain water, there's gonna be lots of contamination and "growth" in your tank, so conductive sticks won't work long-term - those tend to "get eaten". (fine-mesh rain water filters are a thing, as you're undoubtedly aware)
@greatscottlab
@greatscottlab 18 дней назад
Thanks for the feedback :-)
@caffeinatedinsanity2324
@caffeinatedinsanity2324 18 дней назад
You could use a capacitive tank sensor to remove the risks of corrosion but you'd still be stuck with the variable properties of rain water that can alter readings. I have mostly seen these types of sensors used in generator fuel reservoirs, judging by the building automation projectd i habe been involved with until now.
@moeburn
@moeburn 18 дней назад
Time of flight sensor > ultrasonic sensor.
@widgity
@widgity 18 дней назад
​@@moeburnI can't imagine ToF would work well to measure the surface of a body of water given that they don't work well with reflective objects.
@-szega
@-szega 18 дней назад
@@widgity See ST AN5851 for some considerations on this.
@ArchiWorldRuS
@ArchiWorldRuS 18 дней назад
5:40 I was waiting all things to collapse after you took out the screw😂😂😂
@greatscottlab
@greatscottlab 18 дней назад
Oh boy
@sublimationman
@sublimationman 18 дней назад
In my teens (now 60) I helped my dad fix a water level sensor in his motorhome. They used a very simple (and reliable) system that had brass bolts at different levels in the water tank and a simple display with little lights (5 bolts 5 lights) that at the push of a button would show the water level, it was about as simple as you can get.
@Cyba_IT
@Cyba_IT 13 дней назад
I bet that is still working. I would be blown away if this still works after 45 or so years. This is still very cool and has more functionality but there's nothing like old school solid, simple and reliable solutions to get the job done. 😊
@H4zuZazu
@H4zuZazu 18 дней назад
the cable of the sensor looked like a coaxial cable, high frequency can be a bitch sometimes, also since you don'tt know the impedance of the coax it is pretty difficult to extend.
@greatscottlab
@greatscottlab 18 дней назад
Yeah. I searched online for a solution but it seems like no one managed to find one yet.
@guyincognito.
@guyincognito. 18 дней назад
@@greatscottlab Buy another JST for dirt cheap and use the cable from that one to extend. Increase the ping time to at least 30 microseconds; the module seems to prefer this for some reason.
@theussmirage
@theussmirage 18 дней назад
Use two arduinos and connect those by a long cable 👍
@db1tau75
@db1tau75 18 дней назад
Isn't the type of coax cable printed on it? But if not, I think greatscott has a VNA, he could measure it (or even use his signal generator and oscilloscope). After that coax cables can only be extended with the right impedance plugs and of course the right impedance extension cable. That soldering experiment with the STP cable will generate a lot of reflections at the connection.
@ProtonOne11
@ProtonOne11 16 дней назад
It probably benefits a lot from having the right impedance cable without any splices. Maybe even the resistance part of the wire plays an important part, in order to get the right amount of power into the transducer and the amplitude of the return signal is in the range where the return signal amplifier has it's working point. For someone with that much test and measurement equipment i would have expected a bit more of an analytic and scientific aproach than just blindly trying a few different cables and give up. One thing that might be a bit strange is that the signal frequency is probably below 50kHz because it's ultrasonic, so well below the usual RF frequency where normal coax cable impedance is specified. If you look at a frequency/impedance plot and the phase angle between voltage and current, cables like RG-58 are getting very unlinear below 100kHz. So that might play into cable selection here as well.
@imaginitivity7853
@imaginitivity7853 18 дней назад
An alternative solution, I'm sure there are many, is to have reed switches interspersed with resistors along a pole. A float, containing a magnet moves up and down with the water level. Extremely reliable.
@greatscottlab
@greatscottlab 18 дней назад
Sounds good
@bansheedearg
@bansheedearg 18 дней назад
I use two of these for my irrigation system, using a 555 time in flip flop mode. 555 is nice because I can run off of a wide voltage range, and the relay it triggers is 12v.
@imaginitivity7853
@imaginitivity7853 18 дней назад
@@greatscottlab it's what they used in the mud pits in the oilfield
@Bob.Jenkins
@Bob.Jenkins 18 дней назад
Personally - old School - a stick in a tube with a float on one end. How far the stick travels up the tube tells me the current water level. EDIT: The 'stick' is a length of PVC pipe and the Float was obtained from an old toilet cistern.
@arunprasath4139
@arunprasath4139 18 дней назад
@@Bob.Jenkinshaha I use the same for my sump tank😂 I do have a buzzer at the bottom limit, so when the pole goes below a certain height it triggers a small momentary limit switch to sound the buzzer so I know that my sump is low and not to power the pump!
@theheadone
@theheadone 18 дней назад
Pressure is the way to go for measuring water height in a tank. We had ultrasonic sensors that constantly failed at work and switched to using a pressure sensor about 5 years ago and have been working great (in salt water also)!
@greatscottlab
@greatscottlab 18 дней назад
I will see how it will perform in the future :-)
@moeburn
@moeburn 18 дней назад
I am replying to all the comments that do not know that Time of Flight sensor is the best for measuring water height in a tank.
@yannick7230
@yannick7230 18 дней назад
​@@moeburn What are the advantages of the time of flight sensor in this use?
@jacksonblack9408
@jacksonblack9408 18 дней назад
Yes that'd be my goto as well. If it works in washing machines it's gotta be reliable
@moeburn
@moeburn 18 дней назад
@@yannick7230 cheap, reliable, small, simple, low power, designed for pitch black environments. i use it for measuring salt level in water softener. i guess pressure sensor would be better if liquid is constantly moving, but it would require an airtight container. ultrasonic is better when there are too many light sources , since TOF sensor works best in darkness.
@kgrzeg
@kgrzeg 18 дней назад
Few weeks ago I had a similar need to monitor water level in a well. I considered ultrasonics and some other ideas and decided that the simplest solution for me is a capacitive linear sensor made with old polyethylene flat tv antena cable (symetric and unshielded, used half a century ago). I have connected the cable directly to ground and one of gpio pins on esp32 (s2). Flashed with ESPHome and used its capacitive buttons function for the measurement. I have added a proper readout on Home Assistant panel together with a graph. Worked flawlesly from the start. I got a data stream that I could scale to water height in cm. The response seemed very linear and stable. Flat ribbon cable I have used for initial testing worked too (I have connected wire 1,2,3 to gpio, 4,5,6 unused, 7,8,9 to esp's gnd). I prefered polyethylene because I had doubts about pvc insulation changing its proprieties while being kept under water all the time.
@Andreas-gh6is
@Andreas-gh6is 18 дней назад
I faintly remember a scene from "waterworld" where they had a scroungy hobo-looking dude in the cistern on a ship, and he would tell people the water level. But it's a long time ago.
@greatscottlab
@greatscottlab 18 дней назад
That sounds like a fun job :-)
@imaginitivity7853
@imaginitivity7853 18 дней назад
He was floating inside the petrol storage tank as I recall. Not too realistic as he'd be instantly overcome by fumes. And then was blown up inside it if memory serves
@jacksonblack9408
@jacksonblack9408 18 дней назад
@@imaginitivity7853 It was crude oil so no fumes (it was an old oil tanker). He was a prisoner and floated on a little boat and got spat on. He longed for death
@imaginitivity7853
@imaginitivity7853 18 дней назад
@@jacksonblack9408 I still think you'd asphyxiate in a crude oil tank.
@Jehty_
@Jehty_ 18 дней назад
I am shoked that you guys used words like "faintly remember" and "if memory serves". Are you all not ashamed that you haven't re-watched this masterpiece more recently?
@some1994
@some1994 18 дней назад
6:16 I love that you included that meme in the video 😂
@greatscottlab
@greatscottlab 18 дней назад
It is one of my favorites :-)
@4nk8r
@4nk8r 18 дней назад
Nothing beats the satisfaction of doing it yourself . Being cost effective is the most important. Looking forward to the next video
@N1ghtR1der666
@N1ghtR1der666 15 дней назад
I absolutely love that your getting into more smart home stuff, definately want to see more videos on DIY smart home creations!
@Tenajeh
@Tenajeh 16 дней назад
Nonelectronic option: Put three tubes into the tank at different depths that poke out of the ground: near bottom, middle, top. Place floaty thingy into the tubes, that have very light sticks mounted on them, that also poke out of the ground. Make sure that the floaties can only move up and down a few centimeters. Done. When everything is closed, you have all three sticks poking up with a full tank, two sticks with a half full tank, one stick with a less than half full tank and no stick with a near-empty or empty tank. Low tech, lasts for decades, no software compatibility required, costs maybe 10 bucks in total materials. But yours is cool too, especially if one values a full integration into one's home system.
@Infrared73
@Infrared73 18 дней назад
First thought that came to me was adapting a fuel tank sender unit. It’s essentially a float on an arm that pivots adjusting a variable resistor.
@SirJamez0
@SirJamez0 День назад
Thank you! I instantly bought all the components when i saw your video to set up a sensor for my home heating oil tank. I altered your code to suit my tank depth, and all i have to do now is design my own 3d mount and install it. I've run out of oil too many times, and it's an absolute pain to bleed the system. I need to disconnect the pipe at the burner and use a pump to vacuum the oil to break the air lock.
@someguy2741
@someguy2741 18 дней назад
An easily analog/digital approach is to take a thin narrow bar of the same length as the depth of your tank. Twist it 270 degrees. Then take 2 guide rods and take a cork float and drill two holes such that the guide rods pass through. Mount the spiral plate between the guide rods. Cut a slot in the cork float that matches the the profile of the spiral plate. As the float raises the spiral plate gets twisted. You can mount a potentiometer or a pointer on top. This system has been used on fuel tanks a very long time. Look up snowmobile fuel tank gauge for examples.
@mnxgojwhs
@mnxgojwhs 18 дней назад
This is the perfect video as I was trying to do the same thing for my home. Thank you!
@Gershy13
@Gershy13 18 дней назад
Love these kinds of videos, please keep the series going for other random small projects you do. I needed a temperature sensor for my room, i was going to get a smart sensor, but remembered i had a dht11 from an arduino kit and esp8266 lying around. Installed ESPHome, wired it up and saved £10!
@featheredskeptic1301
@featheredskeptic1301 18 дней назад
My idea was to make a float similar to the one that controls the water in toilets, but instead of it controlling a valve it would turn the shaft of a potentiometer (used as a voltage divider). Buffer the middle pin voltage of the potentiometer via an op amp, buffer it once more on the other side of the cable as well, and have a galvanometer showing the water level. Yes, I'm a very, very analog guy.
@meJaso
@meJaso 18 дней назад
This is how it’s done in the gas tank of some cars.
@codykey2508
@codykey2508 17 дней назад
so basically a gas float from a car?
@mikebond6328
@mikebond6328 17 дней назад
I like it.
@xDMG15x
@xDMG15x 16 дней назад
This was my initial thought also, but with an accelerometer to measure the angle of the rod that the float is connected to. Ultimately the ultrasonic sensor is a far better option. No moving parts, small space requirement.
@FrancoGrimoldi
@FrancoGrimoldi 18 дней назад
I love these project videos, keep 'em coming!
@SIFAXelectrical
@SIFAXelectrical 7 дней назад
Thank you, professor, clear and excellent explanation
@sergimaurimoreno3298
@sergimaurimoreno3298 17 дней назад
As always wonderful content, waiting for a review of this DIY system in the future. I think is a very smart solution, Congratulations Scott!!!👏🏻👏🏻👏🏻👏🏻
@IvanFernandezMielgo1979
@IvanFernandezMielgo1979 18 дней назад
Thanks! Always learning with you
@pandrosof
@pandrosof 18 дней назад
I Have been using the same ultrasonic sensor for 2 years. In my experience it works very well, depending on the application you will need to apply some sort of signal processing. Once in a while condensation might be an issue but I just clean the sensor. By the way, the first transmissor comes in RS485 and works very well at big distances with 24V power. I have a couple of tanks with these RS485 transmitters since 1 year and so far everything is ok with no maintenance need.
@LegoBeto
@LegoBeto 18 дней назад
Your projects are the best. this has got to be the one channel i mostly bookmark.
@susugar3338
@susugar3338 18 дней назад
The fact that I made a project similar to yours just 2 weeks ago. But i chose a different way to measure water level. I used hx710b sensor (~2$) and ESPHome supports it as HX711. The seller calls it as a " liquid pressure sensor" but i think it would cause leak over time. Instead of water i used it to measure pressure of air at the bottom of the tank. After some of calibration, it appeared to very accurate, maybe to every 1/10 litter. Now I just wait to see is the sensor drift over time or not.
@greatscottlab
@greatscottlab 18 дней назад
That sounds like a really creative solution. Love it :-)
@petarmiletic997
@petarmiletic997 18 дней назад
That is exactly how it is done on washing machines. Either a pressure switch for three levels (empty, level 1, level2) or probably on some more modern models a full on pressure sensor.
@kareca18
@kareca18 18 дней назад
Great video, once again. Loved to see a project that went as tought!😅 Good job!
@zodiacfml
@zodiacfml 17 дней назад
thanks. i could use this type of sensor for a project or solution in the future.
@sasoperme
@sasoperme 17 дней назад
I had exactly the same idea for the underground water tank. Since I had spare Shelly Uni, I used that and hooked it up to the pressure sensor you've shown. Works great as well.
@casozerg
@casozerg 17 дней назад
I've done the same thing, it works great if you have a decent wifi...
@prince3121
@prince3121 17 дней назад
Great DIY idea to solve a problem. I'm filing this for future use! 😎
@dtharmo
@dtharmo 16 дней назад
Need more of this kind of videos !
@grins047
@grins047 17 дней назад
Awesome, I really enjoyed this video. Thanks.
@rsdandy
@rsdandy 17 дней назад
Fantastic video. It gave the push I need to do something very similar. Thanks for sharing.
@sulpheralchemist
@sulpheralchemist 17 дней назад
Thank you SO much! We have an Kerosene tank for the heating here and I've been trying to come up with a sensor to monitor the fuel level. this looks like it will do exactly that!
@ProtonOne11
@ProtonOne11 16 дней назад
With fuel and the fumes, you need to really carefully select all the components that are involved. A lot of plastics will break down quickly in there. And i guess it should be Ex rated components that are fit for a possibly explosive environment with the fumes in the tank. There is a good reason most fuel sensors still just use a float and some clever linkages to get the level mechanically out of the tank, before you convert the data in neutral atmosphere to an electronic signal.
@sulpheralchemist
@sulpheralchemist 10 дней назад
@@ProtonOne11 good point thanks !
@brianwood5220
@brianwood5220 17 дней назад
Great idea, which turned into an excellent project. Thanks for sharing, Scott.
@joshuaobelenusable
@joshuaobelenusable 17 дней назад
Perfect timing. I was about to replace my old "starter" ultrasonic sensor I added to my water softener lid with a better one, this one seems to be a great match!
@thedarksage328
@thedarksage328 18 дней назад
Great video and a real clean project!
@Nbec95
@Nbec95 17 дней назад
I'm actually planning something really similar for my water tank in my camper van (which also runs home assistant of course). So thanks very much!
@ccmangb
@ccmangb 16 дней назад
I had a similar problem many years ago, in that I had to measure the water level in a tank, with the added caveat that a pump would be sporadically filling the tank up and causing surface turbulence. I also tried waterproof single transducers, and had the same issue with minimum distance, and one from maxsonar couldn't cope with the surface turbulence and gave false readings. In the end I used an A02YYUW waterproof distance sensor that has two transducers and it works great.
@Hasitier
@Hasitier 18 дней назад
I also got a water reservoir at my house and tried different things. In the end I used the hydrostatic sensor you showed and it works fine. Yes it was about 25€ when i bought it but I did not have to mess around a lot. Simply putting the signal in the analog pin of an esp. Running a little web server and calibrating it one time (full and empty). The rest was a little math.
@MakerTim
@MakerTim 18 дней назад
We are using an option that you did not mention. It is effectively a buoy with a rope and measured the distance. Its so simple but effective & easiers to deal with the whole water aspect, I can recommend it
@lyamschuss8786
@lyamschuss8786 18 дней назад
A buoy is the most practical solution, that's how water tanks close their intake as well
@greatscottlab
@greatscottlab 18 дней назад
Sounds like a reliable analog solution :-)
@daklhs6460
@daklhs6460 18 дней назад
​@@esuomiwith a smart placed switch.
@lyamschuss8786
@lyamschuss8786 18 дней назад
@@esuomi you could built a draw line encoder, or built a linear encoder where you have leds on one side and photocells on the other and the rope blocks the leds
@moeburn
@moeburn 18 дней назад
Time of Flight sensor like VL6180X is cheaper, easier and smaller than all of these solutions.
@andymouse
@andymouse 18 дней назад
All of my projects have been something I need so I couldn't agree more...cheers.!!
@MrGuru666999
@MrGuru666999 17 дней назад
I did exactly this for my own water reservoir. We are having a heavy drought here in Mexico City and we are close to day 0. So I needed a precise way to measure the amount of water and give warnings when the reservoir gets too low. I added to my project a SD card logger with a RTC so I can do projections in case of extreme conditions.
@lloydsshednanigans
@lloydsshednanigans 18 дней назад
Well-done! :) I did almost exactly the same thing some years ago with my water tank. Luckily, I didn't have to extend the sensor cable and used a D1Mini running tasmota-sensors as the micro-controller.
@greatscottlab
@greatscottlab 18 дней назад
Nice work!
@lloydsshednanigans
@lloydsshednanigans 18 дней назад
@@greatscottlab As I was watching, I was saying.."He's using the same sensor!! He's using the same control-board! Ahh crap, he used a different ESP!" :)
@iGNUiCould
@iGNUiCould 18 дней назад
Can't tell you how many times I've had to DIY because what I wanted was so niche. Good research!
@shivatherish
@shivatherish 17 дней назад
its good to see... finally u worked in a Level Controller. Make sure that sensor grade of IP. and also add a automatic valve in water IN when the Tank fills.
@ulwur
@ulwur 18 дней назад
I did one for my dad when i was young. Just a stick with wires of different length with exposed copper at the ends and a ground wire at the bottom. 10 or so op-amps as comparstors and leds arranged in a line. A 9v battery and a pushbutton to energise the circuit when he wanted to know if the submersible pump still worked.
@emailausdrucker
@emailausdrucker 18 дней назад
Amazing build! I love being in Canada and feeling to be a part of your smart home project. ❤
@dtnicholls1
@dtnicholls1 17 дней назад
If you end up having trouble with the ultrasonic sensor, look up nxp pressure sensors. They're fairly reasonably priced and give you a 0-10kpa range which is about as perfect as you can get for just less than 1m in water height. To use it hook up the sensor to a tube (so that the tube is sealed) and lower the tube into the tank, oriented so the end faces down. Hydrostatic pressure will push on the air in the tube which your sensor can then read. That will give you enough accuracy to measure the water level almost to the mm, or nearest 10L. The sensor also doesnt have to be in the tank, you can run the tube that distance instead of the wire, making waterproofing a lot easier.
@y2ksw1
@y2ksw1 18 дней назад
You could use an acoustic meter. The emptier the container is, the deeper is the sound resonance. Contactless and precise.
@juanmacias5922
@juanmacias5922 18 дней назад
What a fun project, hope we get to see more. :)
@montaniero7459
@montaniero7459 17 дней назад
I did a similar project in HA for my drinking water tank (Height 2.8m x 3 m x 2m) and I have faced a lot of problems. In my case the sensor is AJ_SR04M which is quite different than yours. First problem was the reflections from the ultrasonic cone, any obstruction within that cone was generating errors, solved with repositioning of the sensor. Second issue was the range, after the surface distance of 1m it was returning rubbish readings, Problem solved with keeping power supply separated from esp32 and feeding the sensor with 3A. For the last nine months is working flawlessly!
@onecircuit-as
@onecircuit-as 18 дней назад
Lovely work - what a nice project! 👍😀
@justliberty4072
@justliberty4072 17 дней назад
Hey, I'mm all for sensors and automatic reporting, but a stick works really well in this application.
@mayukhbari
@mayukhbari 17 дней назад
My water tank has a float sensor which has a Reed switch inside. Working flawlessly for couple of years.
@piratetv1
@piratetv1 17 дней назад
I used the cheap 2 transducer ultrasonic sensor in my home oil tank. The arduino micro with 10 leds showing tank level was about 15 meters away using 4 conductor telephone wire. It was still very accurate for me. I recently bought a pre made version that can warn you that the tank is low with an app, so i replaced it.
@gutrali
@gutrali 18 дней назад
I can see that the cable you were trying to extend was coaxial cable. Coax is used for high frequencies and to ensure low loss, which is perfect for RF. You probably could have extended that cable with a grossly higher specked cable like common RG6 (cable TV wire). But you might have needed to add another conductor beyond the center signal, and the ground shield, if you need power and ground as well. Ive seen coax wire out there that has an external moulded third wire attached to the coax!! I'm pretty sure that it's used for giving power and getting signal back from analog surveillance cameras. Would have been perfect for this !
@mrwho30
@mrwho30 18 дней назад
Following some pages which also tried to exend the range of the sensor, the HF transformer on the PCB is tuned to the cable lengh. Guess with such cable length/difference RC specs the hole resonance loop on the board needs are total rebuild?
@gutrali
@gutrali 18 дней назад
​​@@mrwho30 I see, makes sense!! In RF radio applications, an SWR meter can help measure the standing wave charactistics given a specific antenna, cable, and receiver/transmitter, at any frequency. It helps the operator visualize and tune the impedence to be most efficient (reduce power loss) and is always based on matching some fractional wave length of the frequency you are targeting. That way the operator knows they are getting the highest gain possible with energy spent or received. A similar mismatch was probably happening on that wire , just because it is so high frequency, which is why they use co-axial cable. Not only do the waves have to line up to reduce deconstructive interference within the cable, but we have to make sure the signal doesn't dissipate to outside sources as happens with (normal) electrical conductor cables. How Cool is it that great Scott's fail helps us all link concepts together at a high level!! Thank for sharing your fails!!!!! 🥳
@SuperFredAZ
@SuperFredAZ 18 дней назад
Excellent diy, you got exactly what you wanted.
@ThierryC2373
@ThierryC2373 17 дней назад
Great project, measuring water level is always challenging especially with corrosion due to humidity or direct contact to water. Having a graphical gauge displayed would complete this project beautifully!!
@Manuqtix.Manuqtix
@Manuqtix.Manuqtix 8 дней назад
I like it when you say “stay creative and I’ll see you next time”
@elitearbor
@elitearbor 18 дней назад
I would love some more details on that flexible water resistant junction box! I've never seen one like that before, and a wide variety of uses immediately come to mind.
@greatscottlab
@greatscottlab 18 дней назад
It is very common for electrical installation here in Germany. I tried linking a similar one in the video description.
@HackingElectronics
@HackingElectronics 18 дней назад
This was exactly the video I was looking for, I wanted a reliable water level sensor but I was concerned about wrong readings due to the ultrasound reflecting on the sides of the tank. And I definitely agree on DIY being the winner, being an electronics hobbyist, this is the obvious route to choose as I enjoy the process too and can diagnose easily if something goes wrong.
@mpneuried
@mpneuried 18 дней назад
Thanks for your videos. In this case i don’t learned something new, as i use exactly this solution for same problem with same software since 5 years. I only had to replace it 2 times, it got flooded in winter or by very heavy rain. My ultrasound detector board is mounted at the top of the cistern in a sealed jam jar. Let’s hope it works for more than 2 years now :-)
@RonParker
@RonParker 17 дней назад
I also did a DIY ESPHome water level sensor for my potable water tank. I have that same ultrasonic sensor, but I determined that the "full" line on my tank is well within the blind spot of the sensor for any reasonable mounting location. Also, the water inlet is very near where I'd have to install the sensor, so it would get erroneous readings whenever the pump in the well was running. I ended up using a 24V 4-20 mA version of that hefty steel pressure sensor. It was a bit cheaper because 4-20 mA is an industrial automation standard, but it was still pretty expensive. I've found that as I have it currently set up, and with the geometry of my tank, it's precise to within about 10 liters. I've never tried to calibrate it, so it's probably not terribly accurate, but that doesn't really matter since the intake at the bottom leaves about 200 liters (give or take some sediment) in the bottom when it runs dry, so as long as it's within a hundred liters or so of the true value, that's good enough for me. I could probably improve the precision and the signal-to-noise ratio a bit by choosing a different current sense resistor and using a dedicated ADC instead of the one in the ESP32, but I haven't experimented with that. It does what I need it to, so I've left it alone. I even mounted the ESP and the 24V PSU on a DIN rail on the wall next to the water tank, despite being in the US where we don't really use DIN rails outside of industrial settings.
@PhG1961
@PhG1961 18 дней назад
Indeed I enjoyed the video. Great content!
@anandsaravanan8732
@anandsaravanan8732 17 дней назад
I did the exact setup on 3 tanks and im pretty confident to say that "dont proceed with ultrasonic sensors". Especially in these high moisture environments. It surely needs lot of tinkering once in a while and ultimately you switch to some other sensor.
@SteveWyatt
@SteveWyatt 18 дней назад
Ultrasonic level sensors, laser based level sensors, radar based level sensors are all commercially available. As are mechanic ones like high, 50%, low level floats, or floating scales. Also a visual indicator could be made with a plastic float on a rod in a tube that rises and falls in a transparent above ground tube with a scale indicating level.
@abishvijayan76
@abishvijayan76 17 дней назад
I did implement the same at my home a few years back, the only disadvantage was the minimum distance. When the distance between the sensor and water level is below 20cm, there'll be inconsistencies in readout.
@user6193
@user6193 18 дней назад
Great video as always. What a coincidence i was doing almost similar project today for my terrace water tank monitoring. I also used same waterproof ultrasonic sensor in combination with a solar manager module and a esp32 with deep sleep mode config. Unfortunately the ultrasonic sensor is not working so i paused my projet in evening until i order new one. And just now got notification of your vodeo :)
@greatscottlab
@greatscottlab 18 дней назад
Very cool!
@gehmni15
@gehmni15 18 дней назад
Wunderbar! Erst letztes Semester im Elektrotechnik-Studium genau dasselbe Projekt als Belegarbeit umgesetzt :D Kann mir aus Deinem Video Anreize mitnehmen, was ich noch verbessern kann.
@HappyfoxBiz
@HappyfoxBiz 15 дней назад
the most basic option I can think of for this would be a fuel pump assembly, it works on ohms to detect the level and that's transferred to a gauge which then displays the level based on the ohms received by the fuel pump assembly, how it detects the level is... with a floater and a pressure switch that's attached to a spring so that it can lower when the liquid lowers. I'm not saying drop a fuel pump into your rainwater tank, that's basically asking for trouble, but having something run on what would be considered a whiff of watts from 12v or lower, can basically be ran by... a solar panel and maybe even a lithium battery housed under the solar panel, using a meter that's got a glowing hand should reduce the power needed as you can see the level in the dark then. Total cost would be cheap, maintenance would be low and the functionality would be high as it would basically only be doing what it needs to do.
@AlfisGarage
@AlfisGarage 18 дней назад
Nice solution. I was dealing with same task, but I used water level sensors in multiple depths, ie. I have just couple of depth values :) i connected the sensors to zigbee door sensors and then just used some automation in home assistant to calculate the level based on state of the “door sensors” :)
@davidquirk8097
@davidquirk8097 17 дней назад
I think that the problem you encountered when trying to lengthen the cable on the sensor is not the cable but the system. I've used sensors from Micro epsilon in the past and both their eddy current and capacitive sensors have to have the cable between the sensor and the signal conditioning amplifier 'tuned' as can suffer problems from reflected waves at the high frequencies used in the sensor head. The sensors we were using had a resultion of 0.5 micron and worked faultlessly in the engine testing environment.
@Mad-Jam
@Mad-Jam 17 дней назад
One thing i want to do for my rain tank is a LED UV lamp to get cleaner water. All i can find is $€£ expansive. My tropical plants are getting sick of the rain water (i think some type of fungi) and i can not use tap water (hard water).
@Badg0r
@Badg0r 18 дней назад
DIY please. I love projects like these. Thank you.
@kinsi55
@kinsi55 18 дней назад
Changing the wire length of the Sensor probably messed up the hardcoded timings of the sensors board
@greatscottlab
@greatscottlab 18 дней назад
Maybe.....
@TheRealEtaoinShrdlu
@TheRealEtaoinShrdlu 18 дней назад
Those sensors are impedance matched to the controllers. Which means you need a matched feedline.
@Shocker99
@Shocker99 18 дней назад
Nah. The original wire is a coax cable and he just used a regular multi core cable. It would of worked if he had used a coax cable of the correct impedance.
@ftinvencoes
@ftinvencoes 17 дней назад
I had made something like this some months ago, and i extended the ultrassonic sensor by 3 meters, i just adjusted the potentiometer in the controller board and it worked
@ivanvanhoof7933
@ivanvanhoof7933 17 дней назад
I used to work for a telemetry company working with well depth and soil moisture sensors and flow meter loggers etc, electronics under ground or in water vapor environments needs to be designed and installed correctly to work properly. I would run a pvc tube down to the bottom of your tank down the power cable conduit and have a air source and pressure transducer in the work shop panel. Keeping the electronic s dry and safe.
@gordonlawrence1448
@gordonlawrence1448 18 дней назад
I designed one of these for a friend. All it needed was the wiring, 5 float microswitches, some relays, and some KEDs. The whole lot came in at about 30 euro. The most expensive bit was the cable.
@reshwan_
@reshwan_ 18 дней назад
great video, Eid Mubarak!!
@hamzaterzi8801
@hamzaterzi8801 18 дней назад
I think the project turned out pretty well. We can also measure the water level with a hand-made strip (supported by a stick) capacitive sensor. Making a 1 meter capacitor can be difficult (Two conductors will be placed close together and nicely insulated). But it is very useful in small water tanks. There are examples made with Arduino on the internet.
@2kadrenojunkiegaming655
@2kadrenojunkiegaming655 16 дней назад
in terms of slow response time water level sensors i'm a fan of using what i call a float column, not sure what its real name would be but its essentially a bunch of float switches in a tube with a filter on both ends. as for connection i use two main methods: wire them all in parallel with resistors of specific value that you could then use ohms law to determine how many are on and by extension how high the water level is, or wire them all in parallel with individual wires for each. additional options for each switch include using floating wires to trigger mosfets instead of floats, linear variable resistor with spring reset, pressure plates, etc. in your use case i'd imagine you could get by with just a handful of thresholds. you can make that type of sensor from literal trash (unless you use mosfets) so its pretty much free, but you'd probably spend a bit longer on the assembly. less time on the troubleshooting/ software though given the simplicity.
@danieldaniel-qr1my
@danieldaniel-qr1my 18 дней назад
Love those DIY or buy videos 😭😭😭❤️❤️❤️❤️❤️❤️🤩🤩🤩🤩🤩
@RegisMichelLeclerc
@RegisMichelLeclerc 17 дней назад
There's probably a cheaper way using 2 pulleys (to measure the distance), 2 motors (to bring the weights up and down) and 4 stop switches on a pair of weighted strings (one with a denser-than water, the other one with lighter than water): the first string (with the dense weight) goes to the bottom and measures the total distance, the second one measures the current distance to the lighter weight. both strings go on a pulley to trigger the stop switch when they stop going down. The operation starts by bringing both weights to the top where they trigger the stop switches, the the "total depth" line goes down and triggers the "no-gravity" stop switch (release), then the "light" weight goes down and triggers its stop switch. The difference between the number of turns of pulleys. Also, you could also simply measure the distance between a ping pong ball and the sensor in a PVC pipe going to the bottom if you know exactly the distance of your pipe, so you don't need to measure that with the weighted line and you can do "on demand" measurements without keeping the system active at all times. $37 sounds very expensive...
@tretronthedragon
@tretronthedragon 17 дней назад
I really like the solution, the only thing i might have done differently is that i would added an E-ink display at the distrobution board for local readout of the waterlevels and place the water level in the center of the tank to avoid reflections at lower waterlevels
@tvalenca
@tvalenca 18 дней назад
I would had left the "extender box" visible near the sensor mounting point... but that's a great solution just as you did.
@olafschermann1592
@olafschermann1592 17 дней назад
Great work!
@MisterkeTube
@MisterkeTube 14 дней назад
I'm using such a "car weatherproof ultrasonic transducer" for exactly this purpose for several years now. It works well when the water level is still, but when rain-water is pouring into the (also for me 10000l) container the measurements are quite irregular, so I added a lot of averaging. Mine uses an attiny85 powered by an 18650 and sending its findings over a simple 433MHz transmitter to my ESP8266-based 433MHz to wifi gateway which also receives via 433MHz signals flagging access to my letterbox, ringing of the doorbell and various other things. The attiny85 and sensor run more than a year on a single 18650 charge, waking up every 15 minutes to take numerous samples and send through the results and the battery level. Ah yeah ... what's also a pain is ... cobwebs ...
@fir3w4lk3r
@fir3w4lk3r 18 дней назад
Many years ago I had just fitted a potentiometer on a cord type analog dial level indicator.
@gator_fz
@gator_fz 17 дней назад
diy helps me to stay creative! Cheers 😄
@monkeypoo8511
@monkeypoo8511 18 дней назад
So cute in your lil worker suit jumpsuit ❤
@KeritechElectronics
@KeritechElectronics 18 дней назад
Cool hacking there :). I like the DIN rail mounted box, it should keep the electronics warm, dry and comfy. Speaking of which, I really love your Hager distribution box. Clean and elegant. The legendary German quality! At some point I did a repair job on my friend's old VW LT28 camper, where he needed the wiring and plumbing fixed and ready for a trip around Europe. I don't remember the exact manufacturer and model of the system controller in that thing, but it featured a water level meter that used four screws in the tank's wall as probes placed along the height, plus an additional ground probe. It must have been either a resistive or capacitive sensor, though it could only quantize the volume to five levels: empty, 1/4, half, 3/4, full.
@marceloandrade225
@marceloandrade225 13 дней назад
Great! I´m doing a project just like this one!
@BorisSiber
@BorisSiber 18 дней назад
Nice job, thx for sharing
@AliYassinToma
@AliYassinToma 18 дней назад
might as well add a water volume in liters on the display could be more useful than actual distance
@sjbechet1111
@sjbechet1111 18 дней назад
All the most reliable industrial stuff I've come across are pressure sensors. A pipe with a closed and open end submerged and measure the changing air pressure.
Далее
I tried Injection Molding using a 3D Printer!
18:27
Просмотров 395 тыс.
Rope climb tutorial !! 😱😱
00:22
Просмотров 4,4 млн
The Numitron: An obvious idea that wasn't very bright
23:21
This bizarre density toy just got an upgrade
13:04
Просмотров 973 тыс.
I 3D Printed a $1,224 Chair
23:56
Просмотров 38 тыс.
The Most Confusing Part of the Power Grid
22:07
Просмотров 1,2 млн