Every Shower needs this Upgrade! (Online Water Tracker)

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 มิ.ย. 2024
  • Check out the Prusa 3D Printer here: prusa.io/greatscottlab/mk3s
    Printables for the 3D Models: prusa.io/greatscottlab/printa...
    Free Altium Designer Trial: altium.com/yt/greatscott!
    Previous video: • I tried Wireless Video...
    Latch Circuit video: • Mechanical Switches a...
    HomeAssistant video: • DIY Home Automation In...
    Project information on Instructables: www.instructables.com/Online-...
    Facebook: / greatscottlab
    Twitter: / greatscottlab
    Instagram: / great.scott.lab
    Support me for more videos: www.patreon.com/GreatScott?ty=h
    Parts list (affiliate links):
    Aliexpress:
    TP4056 Battery Charge & Protect: s.click.aliexpress.com/e/_Dd7...
    LiPo Battery: s.click.aliexpress.com/e/_DlZ...
    Boost Converter: s.click.aliexpress.com/e/_Dlh...
    EPS8266: s.click.aliexpress.com/e/_DEQ...
    P-Channel MOSFET: s.click.aliexpress.com/e/_DeT...
    Water Flow Sensor: s.click.aliexpress.com/e/_DD7...
    Water Switch: s.click.aliexpress.com/e/_Dno...
    LED: s.click.aliexpress.com/e/_Dmq...
    Resistors: s.click.aliexpress.com/e/_DkV...
    Amazon.com:
    TP4056 Battery Charge & Protect: amzn.to/3JRzrss
    LiPo Battery: amzn.to/3dsdJz1
    Boost Converter: amzn.to/3SRI7TC
    EPS8266: amzn.to/3pgMzhl
    P-Channel MOSFET: -
    Water Flow Sensor: amzn.to/3AlO97L
    Water Switch: amzn.to/3PmHM8z
    LED: amzn.to/3QraeYa
    Resistors: amzn.to/3AlnkR6
    The goal of this project was to lower my shower time since I am spending way too much water/money there. And what better way than to see how expensive each shower is? That is why I built an online water tracker that not only tells me how much waster I am using, but also what it costs. Let's get started!
    Websites which were shown/used in the video:
    datasheetspdf.com/pdf-file/13...
    github.com/kalkih/mini-graph-...
    Thanks to Prusa Research for sponsoring this video.
    0:00 My Plan to Reduce Shower Time
    1:19 Intro
    1:33 The Water Flow Sensor
    2:45 Arduino Prototype (for the Sensor)
    4:20 Powering the Electronics in the Shower?
    5:54 Final Arduino Prototype (Liter/Cost/Battery)
    6:32 Building the WiFi uC System
    7:22 Water Resistant Enclosure
    8:50 Final Assembly
    9:18 Home Assistant Programming
    10:14 Final Test & Verdict
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 894

  • @joostluyten_ON3JT
    @joostluyten_ON3JT ปีที่แล้ว +380

    Before the company changed my meter to a digital one I had a small reed contact mounted in my meter. Every half liter a pulse. Used the Electric imp(001) to count the pulses. Pushed the data in the mysql db and used AMcharts to visualise everything. Brings back memories. 🙂

    • @greatscottlab
      @greatscottlab  ปีที่แล้ว +45

      Also sounds very useful :-)

    • @tobiashegemann1811
      @tobiashegemann1811 ปีที่แล้ว +14

      The Digital ones usualy have a S0 / SML or Modbus interface, sometimes all tree. They can give out a much higher resulution and some statistics

    • @WillOnSomething
      @WillOnSomething ปีที่แล้ว +7

      What's nice about that setup is it lets you call out the water company's BS when they overcharge you!

    • @TheSingularNextuz
      @TheSingularNextuz ปีที่แล้ว +7

      We still have a analog meter with arrow's turning and a counter with numbers.
      No problem to use a webcam and a raspi to read it :)

    • @joostluyten_ON3JT
      @joostluyten_ON3JT ปีที่แล้ว +1

      @@greatscottlab haha indeed. You can recognise patterns after a while. When my wife took a shower after her night shift at the hospital, or our diswasher, ..

  • @evanbarnes9984
    @evanbarnes9984 ปีที่แล้ว +162

    I've never thought of showering as a hobby before, but that's EXACTLY what it is. I also forget time and space while immersed in the warm flow!

    • @sylaswojciechowski6895
      @sylaswojciechowski6895 ปีที่แล้ว +3

      😂

    • @MCsCreations
      @MCsCreations ปีที่แล้ว +3

      Yeap, I know the feeling.

    • @AtlasReburdened
      @AtlasReburdened ปีที่แล้ว

      @@devalue7064 Germans are masochists. This thing will probably take off there.

    • @hicknopunk
      @hicknopunk ปีที่แล้ว

      You are lucky. Water makes me feel pain.

    • @MattyEngland
      @MattyEngland ปีที่แล้ว +8

      @@devalue7064 Crazy that you can't even enjoy a nice long shower now. Politicians need to hang.

  • @HarshilRekhi
    @HarshilRekhi ปีที่แล้ว +25

    Just use cold water, shower time will decrease automatically and therefore monetary spending will decrease as well.
    I can’t applaud enough for your ingenuity, great work 👏
    A budding TH-camr.

    • @greatscottlab
      @greatscottlab  ปีที่แล้ว +4

      Great tip!

    • @ErebosGR
      @ErebosGR ปีที่แล้ว +3

      Ending your hot shower with a quick cold rinse can also reduce anxiety and depression.

    • @Ebolachicken
      @Ebolachicken ปีที่แล้ว +1

      Also shower less

    • @Lively_1185
      @Lively_1185 ปีที่แล้ว +1

      @@ErebosGR
      Just make sure you don't breathe all the water in from the involuntary gasping that will occur from cold shock. I've had too many falls and close calls from that due to being dizzy and light headed, it's just a bad idea.

    • @ErebosGR
      @ErebosGR ปีที่แล้ว

      @@Lively_1185 Umm, you can make the switchover gradual if you want to...

  • @thewolfin
    @thewolfin ปีที่แล้ว +80

    Version two: You set a baseline temperature and it automatically dials up the cold water mix percentage as you get closer to the self-defined cutoff time/usage amount.

    • @nagi603
      @nagi603 ปีที่แล้ว +6

      TBF, I thought that's what he did at first. Or constricting flow altogether.

    • @Tommy-pv1vh
      @Tommy-pv1vh ปีที่แล้ว +3

      thats called a water heater

    • @RandomUser2401
      @RandomUser2401 ปีที่แล้ว

      it's also not really accurate given that warm water costs a lot more than cold water and the mixture depends on the desired temperature.

  • @Aser6000
    @Aser6000 ปีที่แล้ว +182

    If you're relying on constant water pressure and flow from your shower for an accurate reading, then you may as well skip the flow meter and have just flow switch and use a timer on the mcu to time how long the water is on for. In fact, just put a waterproof clock in your shower.

    • @willw7743
      @willw7743 ปีที่แล้ว +23

      I was thinking the same. This is an over engineered solution for something that doesn’t actually save you money.
      A clock or timer would achieve the same (without the data,) cost you less time and money and have value outside of showering.

    • @deroffi1572
      @deroffi1572 ปีที่แล้ว +1

      My thoughts exactly!

    • @frosty129
      @frosty129 ปีที่แล้ว +3

      Brilliant, and spot on. There’s gotta be a pretty linear relationship between shower time and water usage.

    • @deang5622
      @deang5622 ปีที่แล้ว +7

      Water pressure isn't constant if you can turn a knob on the shower to adjust how powerful it is

    • @wiktorszymczak4760
      @wiktorszymczak4760 ปีที่แล้ว +3

      Do you keep your water running all the time youre showering? Do you never change mode on your shower head?

  • @balanbogdan9160
    @balanbogdan9160 ปีที่แล้ว +3

    I can't belive he is at 1.7M subscribers. I ve been following his channel for years and never been disappointed. He is working soo hard for these videos, and explains things pretty well.

  • @MladenMijatov
    @MladenMijatov ปีที่แล้ว +147

    You should really mark `pulseCount` as volatile since you are updating that value in interrupt so that compiler does special optimizations for it and you avoid some of the really hard to debug issues. I'd also implement sleep mode which Atmel supports. In that mode its power consumption is really really low around 0.1 micro-amp and interrupt can wake it up. It's simple to implement and makes rest of the code even easier to implement since you'd just have to upload stuff, call sleep and be done with it.

    • @ffoska
      @ffoska ปีที่แล้ว +19

      Good idea, gets rid of the bulky float switch. Also I would add price calculation for hot water, since you probably don't use cold water for showers, and the bulk of the cost comes from heating the water with electricity or natural gas, not the water itself

    • @Cheesypockets
      @Cheesypockets ปีที่แล้ว +1

      @@ffoska This. Though the heat may come off as an estimate since it takes time to run the hot water through or heat it up. You could probably do an estimate based on the temperature.

    • @Gurux13
      @Gurux13 ปีที่แล้ว +9

      Trouble is, it's ESP8266 in the end which has a different idea about deep sleep and interrupts, but yeah, it is possible to solve this problem without an extra water switch.

    • @JasperJanssen
      @JasperJanssen ปีที่แล้ว +4

      ESP is not atmel.

    • @JasperJanssen
      @JasperJanssen ปีที่แล้ว +7

      @@Gurux13 I’m not so sure that ESPHome - which integrates nicely with Home Assistant - implements deep sleep very well. Maybe I’ve just missed it so far.

  • @bosstowndynamics5488
    @bosstowndynamics5488 ปีที่แล้ว +47

    In defence of the cheap flow meter, I suspect that higher end devices do exactly the same thing but have a calibration in their datasheets. The problem is that you aren't directly measuring flow rate, you're measuring rpm as a proxy for flow rate, and since it's an impeller with gaps around the blades a higher flow rate will change the relationship between flow and speed (guessing here but presumably higher flow rates didn't increase speed by as much, would expect to see bypassing to an extent/less efficient operation). Intuitively it makes sense that pulses should match up with fixed volumes but once you lose the assumed linear relationship that goes out the window.

    • @andrebartels1690
      @andrebartels1690 ปีที่แล้ว +7

      There are other types of more exact flow meters on the market. For example, one working principle is measuring the difference in the reflection of ultrasound through flowing media. Or you can measure the different electromagnetic features of flowing (electrically conductive) media vs non-flowing. These two principles are much more reliable than the little repeller doing its funny thing. They are a bit pricey though.

    • @ffoska
      @ffoska ปีที่แล้ว +2

      That should be the manufacturer's job though, to provide the user with a curve/ function or lookup table for the sensor they are selling. It's not that hard to build an experimental setup for getting halfway decent curve, so shame on them for not doing it

    • @dadsgarage738
      @dadsgarage738 ปีที่แล้ว +2

      The flow meter needs a consistent stream to work - most flow meters use some form of restrictor or other method to remove turbulent flow.
      It wouldn’t matter if it was ultrasound or conductive or mechanical - the sensor won’t read consistently if the application is correct.

    • @philippegauthier2212
      @philippegauthier2212 ปีที่แล้ว +9

      Using a flow meter is still a widely used way to measure volumes in industry. Usually you don't have a curve for the flow/pressure/etc as it depends on your liquid (water vs oil for example) they give the relationship for pulse per turn. Some flow meters do have a relationship for pulses, but those sensors measure an actual volume (ex 3.14ml/pulse).
      What is done to make accurate and repeatable measures is called a K factore. If you have a constant flow for example coming from a pump you can simply do the calculation at the rated flow, but if the flow or pressure or liquid change, you need a multi K factor compensation. It is done by taking multiple measurements across the flow variation. Then you do a linear interpolation between the K factors.
      An example would be for example a variable speed pump in an oil pipe and you need the result in kg. You will start by taking the number of pulses and the frequency at 10% speed, and for each 10% up to 120%. You can do it for a couple of different temperature points as well if you have a temp sensor. Then in production if you read a frequency at 63% you interpolate from you 60 and 70%.
      I don't know if it make sense the way I wrote it, but I do those kind of things regularly where I work. We are able to get below 0.5% error with cheap sensors and this method. Our process requires less than 2% error.

    • @richardcranium7404
      @richardcranium7404 ปีที่แล้ว +4

      @@philippegauthier2212 you are correct on a number of levels, as are some of the other comments to some degree. High quality flow meters often use a four wheel paddle and hall effect pick up. The issue we have always found is turbulence in the fluid flow. There must be some distance between the entering and leaving ports of the sensor from any kind of bend, valve etc that creates any kind of turbulence

  • @DonParlor
    @DonParlor ปีที่แล้ว +2

    Good job Great Scott! I did a similar project with a YF-B5 flow sensor. At the end of each shower, I programmed a Service Call to Google Home Mini speakers to shout out how many litres have been used, how long the shower lasted, and what % the shower duration was compared to national average. For the ON/OFF flow sensor, I didn't use a mechanical one, I programmed a boolean to tell if flow was On or Off.

  • @MyProjectBoxChannel
    @MyProjectBoxChannel ปีที่แล้ว +1

    I love these flow switches and flow metres. When my boiler needed replacing I salvaged them out of the old boiler. I also got some out of an old coffee machine from work. I used them in various projects to detect water and biodiesel flow.😉👍

  • @henrik.norberg
    @henrik.norberg ปีที่แล้ว +1

    As someone with no "running water" during about 6 months in winter in, north of Sweden, I'm using a reservoir with 1200 liter (used to be 600). That is about 6.5 liter per day for drinking, cooking, showers, dishwasher and some limited washing machine (I try to wash at other places than home). It absolutely astonish me to see others water consumption 😃
    I'm planning a mobile tiny home and will have water consumption messure like this and ultrasonic water level messure but also just now building a shower that recirculating water with inline filters for a usage of about 5 liter per shower no matter how long it is used (with inline instant water heater to keep temperature).
    But the upside is that my water/waste bill is zero since I live in the forrest not connected to the water grid 😀

  • @lmaoroflcopter
    @lmaoroflcopter ปีที่แล้ว

    Nice! What with droughts ongoing at the moment it's super good to track this.
    I have always just turned my shower on and off during my shower whilst using it, like the old showers that used pull handles to allow water to run.

  • @drawingboard82
    @drawingboard82 7 หลายเดือนก่อน

    Thank you very much Scott. I have been thinking of making something similar. I live in Scotland where water is charged at a flat rate (It rains a lot) and there isnt a significant environmental problem with using a lot of it. What is not free however is hot water. So I intend to measure the temperature as well as the flow rate and work out the Kwh consumption. Unfortunatly my wife has installed one of those fancy showers with multiple outlets so that will nicely complicate the system! I'll need a display in the shower too because thats where the infomation is going to do the most good.

  • @cybrwerks
    @cybrwerks ปีที่แล้ว

    Ive been watching for years, I didn't even realize I wasn't subscribed to the channel because every new upload was on my feed. Just subbed. Sorry I know it doesn't help the analytics but just know that I have learned a great deal watching this channel.

  • @DEtchells
    @DEtchells ปีที่แล้ว +10

    Great project! Two thoughts:
    1) it would have been yet more complication in the code, but you could also measure the pulse frequency and use that to adjust the conversion factor based on flow rate.
    2) They probably don’t exist as commercial parts, but you could use the water flow to run a small generator to charge the battery whenever the water is running. I think it could easily produce enough power that you’d never need to charge the battery externally.
    The project was already more than complex enough and works plenty well, so these would be needless additional complications, but I don’t think it would have been *too* difficult to implement a first-order correction for flow rate.

    • @srtghfnbfg
      @srtghfnbfg ปีที่แล้ว +3

      I think #2 is actually nice, although my noob idea was to hook up some alternator to a spinning wheel and charge automatically 😂 wouldn't be very waterproof probably

  • @otm646
    @otm646 ปีที่แล้ว +1

    This is how you take the joy out of everything. Not every aspect of your existence needs to be logged and generated as a report in your inbox.

  • @RealAphotiX
    @RealAphotiX ปีที่แล้ว +14

    Apparently you can use MEMS to 'listen' to your water flow. I've seen sensors sold that work non intrusively and I'm guessing this is how they work. One should be able to connect this to their main to detect all water usage even in apartments. I'd love to see a project using MEMS (or even a cheap analog microphone I suppose) in place of a flow meter.

    • @ffoska
      @ffoska ปีที่แล้ว

      Now that's an idea. Thanks!

    • @mrtechie6810
      @mrtechie6810 ปีที่แล้ว

      Ultrasonic sensing is far more expensive than turbine.

  • @sparshdhiman72
    @sparshdhiman72 ปีที่แล้ว

    I AM DEFINITELY MAKING THIS! NO DOUBT!

  • @1kreature
    @1kreature ปีที่แล้ว +1

    You can read the blinks on your watermeter...
    Most electronic meters generate power by the water sensor and has a indicator light that registers a certain amount of liters.

  • @Helli__
    @Helli__ ปีที่แล้ว +6

    Have you considered using a micro turbine to help with powering the circuit/charging battery? It would probably make this a lot bigger, but it may be interesting how long it would last.

  •  ปีที่แล้ว

    It is very clever solution! The first thing on my mind was - why just not to read plain numbers from the water meter - directly in the place where water pipes are. You can "simply" take a photo on regular interval, process the image for extracting numbers and then store it in Home Assistant even with better precission and not only for one shower pipe. Anyways, the flow sensor seems to be much more fun and challenging project. Everytime I watch your video you get me inspired!

  • @Tigrou7777
    @Tigrou7777 ปีที่แล้ว +31

    What about using the waterflow to generate a small amount of power and charge a capacitor ? (so there is no need of battery)

    • @cokeacolasucks
      @cokeacolasucks ปีที่แล้ว +4

      Or, could the running water charge the battery, instead of a capacitor? I am intrigued about the capacitor idea, though...

    • @SpecialeW
      @SpecialeW ปีที่แล้ว

      Quint BUILDs tried to power some electronics with his shower once.

    • @Tigrou7777
      @Tigrou7777 ปีที่แล้ว +2

      ​@@cokeacolasucks I am pretty sure that the whole thing does not need a lot of power to operate, so a capacitor might be enough and easier to charge than a battery. It's same idea as RFID cards.

    • @mubeenalamkhan9761
      @mubeenalamkhan9761 ปีที่แล้ว

      @@cokeacolasucks Battery need a lot of power to charge. extraction this power from a fossed flow is not possible.
      i you even found a generator to do so, the generator will convert the kinetic energy of the water flow to electricity, reducing the pressure at shower head, ruining the shower experience

    • @greatscottlab
      @greatscottlab  ปีที่แล้ว +9

      Tried it. All commercial water turbines I found could not nearly produce enough energy for the system.

  • @dm5rkt
    @dm5rkt ปีที่แล้ว

    Great project. More money/energy saving gadget ideas please. We are gonna need them this winter.

  • @basvandersluis5662
    @basvandersluis5662 ปีที่แล้ว +16

    I thought that I was over complicating stuff when it comes to home automation, but you sir, have beaten me. I also measure water usage, but I added a proximity sensor to the outside of my water meter. My water meter has a small metal piece that rotates and passes by when one liter has been used. The proximity sensor can sense that disc. Now, my boiler has an API, which allows me to check if it is heating water or not, so I know when hot or cold water is being used.
    As far as I can see, you have Techem water meters. I believe they can be read from the outside using a 866mhz signal.

    • @mr_gerber
      @mr_gerber ปีที่แล้ว +1

      MHz, mHz - whats nine orders of magnitude between friends

  • @JawadAhmadsahibzada
    @JawadAhmadsahibzada ปีที่แล้ว

    GREAT 👍SCOTT - WELL DONE - NICE PROJECT

  • @peterk.3236
    @peterk.3236 ปีที่แล้ว

    What a nice project, greanpeace also love it. Thank you GreatScott.

  • @natet3345
    @natet3345 ปีที่แล้ว

    You are an amazing person. This stuff is awesome!

  • @datort
    @datort ปีที่แล้ว +1

    Off-Topic fun fact: I closed a meeting this morning with the phrase "aaannnddd see you next time" thinking the whole day where this phrase and pronounciation came from. Now I remembered. #addicted ;)

  • @alerighi
    @alerighi ปีที่แล้ว

    Cool. You can also combine it with data from your boiler or water heater to know how much money you spend on hot water, that is really the cost of making a shower. On a modern boiler with the OpenTherm interface you can get a lot of data about what it's doing so it shouldn't be that difficult to get it (you can also get the flow of the water that passes trough it, thus you can avoid the sensor in the shower, if you estimate the percentage of hot water that you mix with cold one).

  • @elpaustian
    @elpaustian ปีที่แล้ว +1

    I've thought about that too.
    My idea was to set up a small camera that films the numbers on the water meter.
    The clue is that the arduino camera module is hooked up to a Raspberry Pi Pico which converts the pictures into numbers by a machine learning algorhitm.
    That way you won't interfere with the water meter and your readings would be quite acurate. Also there are tutorials for TensorFlow Lite on TH-cam which is designed to be used on micro controllers.
    After googling my idea I wasn't sure if this already exists, but find out yourself!
    Greetings!

  • @RambozoClown
    @RambozoClown ปีที่แล้ว

    There are clamp on flow sensors that can measure flow in a pipe without making any changes to the pipe. Also I had a showerhead that had a small hydro-generator to power some LEDs and would change color from blue to red when the water was warm. Something like that could be used to power your project, so no batteries required, maybe a super cap to buffer the power.

  • @AudreyRobinel
    @AudreyRobinel ปีที่แล้ว

    on utility meters, you can often add an esp in front, with a light sensor to capture the light pulses emitted. If they are purely mechanical, you often have a disk spinning with contrasting color, that should be readable too.
    Last option is more complex, but you can spin a solution with a pi, a camera module, and opencv to read the numerical values.
    However, this is a nice project, and i am building something similar to monitor garden watering. I wasn't aware of the water pressure variance however.
    Hopefully, for drip irrigation, you need a pressure regulator, thus the pressure of watering is limited to a specific value; thus i should be able to proceed as you did to calibrate it

  • @JuanAmeijeiras
    @JuanAmeijeiras ปีที่แล้ว

    It's a nice project. The water flow sensor that you got is cheap as it is not calibrated, it is just a flow sensor (yes/no) and not a calibrated sensor which can cost 10 or 100 times more than that and is restricted to flow ranges, pressure, temp, etc... If you get a calibrated one definitely the project can be moved into the main pipe, right after your internal water cut-off valve so you can track all house water expenditure. I have a similar project (it can be powered all the time as it is in a humid zone and not in a wet zone) but used a cheap meter and faced the same issues as you did with different flows.

  • @amandioreal2293
    @amandioreal2293 ปีที่แล้ว

    Congratulations, very good ideia.

  • @TonnyCassidy
    @TonnyCassidy ปีที่แล้ว +5

    thing with sensor used there is that those are sold as FLOW METER sensor, not meant to measure volume of water flowing through it

  • @somewaresim
    @somewaresim ปีที่แล้ว +6

    Fantastic idea! I need this to show my family how much water they use in the shower. :)

    • @greatscottlab
      @greatscottlab  ปีที่แล้ว

      Yes :-) It is really a revelation to see how much water gets used there.

    • @sonicmistress
      @sonicmistress ปีที่แล้ว

      Really what are you a weirdo with nothing better to do.....Want to show how much water you use in a shower....Put the plug in and when you've finished, then measure it! No need whatsoever to moan about the 'Environmment' whilst making over complicated parts, that in total actually cost what to produce and ship and package, in plastic no doubt, plus using Lithium Batteries on projects.....The hypocrisy is laughable. Plus if you can't get in a shower, clean yourself in about 2 mins, then get out, there's something missing....

  • @knightstar7264
    @knightstar7264 ปีที่แล้ว +1

    Great Scottii is great👍👌🥰

  • @nezu_cc
    @nezu_cc ปีที่แล้ว

    Many of the moderm power/water meters have either a wireless or a ir/wired interface where you can "easily" read the data of them in a similar way that your utility company does. I know a few people that do exactly that. This gives you the most accurate graphs possible(literally the exact same that your utility company sees and charges you for) and does not require any modifications to the meters themselfs

    • @Killerhertsbjj
      @Killerhertsbjj ปีที่แล้ว

      This was what I thought about doing

  • @suji730
    @suji730 ปีที่แล้ว

    Great idea
    Day by day your video is awesome
    Big fan 🙂🙂

  • @noanyobiseniss7462
    @noanyobiseniss7462 ปีที่แล้ว +1

    Half way through the vid had to run in and shower (before company arrives) and man it feels good on a hot summer day! :D

  • @iBlaze69
    @iBlaze69 ปีที่แล้ว

    Nice build!

  • @boltzbrain3039
    @boltzbrain3039 ปีที่แล้ว

    Nice Project,
    The missing precision of lowend waterflow sensors is also one thing i had my share of problems with.
    Right now i am trying to create a easy to build and accurate DIY flow sensor.
    Also you could have added a temp sensor so you can also calculate the energy usage from your shower, in times of raising energy prices it would have been a neat feature.

  • @lernenmitrobin
    @lernenmitrobin ปีที่แล้ว +1

    Another idea is to measure three temperatures:
    - cold inlet
    - hot inlet
    - common outlet.
    Where you already know the amount of water at the outlet, you can calculate the cold and hot inlet water flow with a "Dreisatz" ;-) .
    When you also have the temperature difference ∆T from hot inlet to cold inlet, you can calculate the amount of energy you used for heating the water with:
    w = c*m*∆T. Where c is the specific thermal capacity from water with 4190 [J/(kg*K)], m the amount of water from the hot inlet in litre or kilogram [kg] and ∆T the temperature difference from hot inlet to cold inlet in Kelvin [K].

  • @michaegi4717
    @michaegi4717 ปีที่แล้ว

    This is a very cool project. If I build this thing, I will also add a temperature sensor to calculate the consumed energy for heating the water. (Maybe I need to measure the cold water temperature in addition for accurate measurement?).
    I still want to build a self made weather station that accurately measure how much rain falls. Maybe I utilize some of your ideas. Up to now I planned to use a weight cell combined with a Pythagoras cup syle container.

  • @Paxmax
    @Paxmax ปีที่แล้ว +19

    Did you include the cost of heating the water to a comfortable shower temperature? I don't know how it's done in other places in Germany, but did you also include the waste water fee?

    • @wayland7150
      @wayland7150 ปีที่แล้ว +1

      Waste water is simply the water that you use.

    • @geneshort8160
      @geneshort8160 ปีที่แล้ว +2

      He is speaking of sewer fees

    • @ernestgalvan9037
      @ernestgalvan9037 ปีที่แล้ว +2

      @@wayland7150 … where I live, water costs x dollars for the first thousand gallons, 1/2x for the next thousand, then 1/4x for all following gallons used.
      PLUS 4x dollars for each thousand gallons used as a SEWER FEE.

    • @whizzbang7520
      @whizzbang7520 ปีที่แล้ว +2

      He didn't include the costs of warm water heating, as seen on his improvements sheet in the end.

  • @dh2032
    @dh2032 ปีที่แล้ว +1

    like the project Idea, I have a suggestion: could do a the same sort of project for button shushing toilets, (or may be toilet in general) a different angle, of the same problem, false, or phantom, flushing does not stop, and in only noticed next time, the toilet or bath/shower is used, could be happing for hours or even days, if happens and you not being in you home at the time?
    alter the project a little, to say a little more than say one load water, without an interrupt in the water flow, (a water on, off as fill water tank, for next use? a water solenoid (auto on/off) would be nice, but even just big loud sound (like remote door Bell) would also help?

  • @oneilgoisot9615
    @oneilgoisot9615 ปีที่แล้ว

    To solve your charging port problem you can use magnetic charging port, it is really cheap and I've used this solution in few projects!
    For warm water price there's few solutions, just measuring water temperature and calculate the amount of energy necessary to heat the volume from 18 to 38 and assume that your heating system is 100% efficient (if it's electric). Or you can simply measure the power consumption during a day and average the consumption.
    Last solution is to transfer this device from your shower to your heating vessel and measure all your hot water consumption

  • @racingheart92
    @racingheart92 ปีที่แล้ว

    You are a genuine teaching University.
    Hope i can work under your guidance

  • @roros2512
    @roros2512 ปีที่แล้ว +1

    excellent project, great job!

  • @theredstoneblock8878
    @theredstoneblock8878 ปีที่แล้ว +1

    Great project as always. If you ever plan on making a new and improved version it would be cool to make it charge from the water flow as well.

  • @7777Felix
    @7777Felix ปีที่แล้ว +3

    Really nice project! But I think the price/recourse calculation are quite off, since heating up the water is way more expensive than the water itself and heated tap water has a much higher climate impact than cold one. Tap water has a footprint of something like 0.35 gCo2/liter while heating the same amount water for 20° (for example with natural gas) costs around 13 gCo2/liter. So much more than the water itself!! So adding a temperature sensor would be really useful I think.

    • @yekutielbenheshel354
      @yekutielbenheshel354 ปีที่แล้ว

      Oh please stop peddling "save the planet" claptrap. We are on the cusp of extremely cheap electricity thanks to extremely cheap solar and extremely cheap wind energy. Steel and aluminum used to be extremely expensive too; nowadays they are extremely inexpensive.
      Burning fossil fuels at scale is very rapidly being phased out. In another 20 years fossil fuels will probably hardly be a significant source of energy. Once that happens all of this greenhouse effect, er, uh, I mean global warming, er, uh, I mean climate change hysteria will no longer "be a thing." Learn to think clearly and scientifically. Don't succumb to fearmongering.

  • @martink9785
    @martink9785 ปีที่แล้ว

    Excellent project 👍

  • @deepblueskyshine
    @deepblueskyshine ปีที่แล้ว

    One thing you can google out from literature and other liquid flow mechanicl measuring projects is that there are two factors apart from mechanical friction, ballance and fluid dynamics affecting accuracy of a propeller sensor: first is the density, or volume weight of the propeller's material should ideally be equal to the dencity of the liquid measured; and the second factor is that flow resistance in the pipe before and after the sensor should be equal. Regarding the second factor some orientation is provided in the printed mounting manuals provided with regular water meters saying that before and after the meter a straight piece of pipe of the same diameter with lenght of minimum 5 pipe diameters shold be provided (in other words, it's more accurate to experiment finding out pulse count to volume relation with shower hose mounted after the sensor).

  • @WafiShaker
    @WafiShaker ปีที่แล้ว

    Gut gemacht

  • @csthll
    @csthll ปีที่แล้ว

    cool project, would actually use that too!

  • @sanjaybhatikar
    @sanjaybhatikar ปีที่แล้ว

    Awesome, thank you

  • @JurassicJenkins
    @JurassicJenkins ปีที่แล้ว

    @:35 showering is a hobby😱🎈thanks for the video. I had a similar idea but got stuck on the automation too. I’ll give your idea a try!

  • @glenmiller1437
    @glenmiller1437 ปีที่แล้ว

    Neat project. Several years back we had a $1000+ USD water bill because of a broken water line after the meter. (In Hawaii, palm roots broke the line. The soil is very porous so there was little visual indication we had a huge leak.) We found a commercial product called Flume the goes against a USA style water meter and senses the flow. It requires batteries (special high capacity AAs) that last about a year. Still, it works great, gives you stats, warnings on usage, peace-of-mind, etc. I would have enjoyed making something like this instead, but for the whole house. You'd need to work out sensing that measured the flow without making any changes to the piping, though. A GreatScott version of that would be a great follow-up project.

  • @proaudiorestore8926
    @proaudiorestore8926 ปีที่แล้ว

    Great project!

  • @bertoid
    @bertoid ปีที่แล้ว

    I'd put this sensor on the cold input to the hot water service, where the pressure is much more constant, and it then also accounts for all hot water usage.
    And provided that the HWS is outside of the bathroom, much of the special safety issues are obviated. The alarm could be a simple radio activated standalone unit.
    My external HWS is controlled by an AVR with an RTC that follows a temperature schedule, so that overnight the water is kept lukewarm, but gets the water hotter at the times that I will need it. It also records inlet, tank, cupboard and external temperatures. I think I'll add one of these flowmeters when I upgrade it.

  • @stm32user
    @stm32user ปีที่แล้ว

    Hi Great Scott. Every Sunday I am visiting for a new video

  • @309electronics5
    @309electronics5 ปีที่แล้ว

    Nice project! I will add some more circuitry like a shower timer that turns of a solenoid valve so the water going to the hose gets blocked. Ofcourse i can turn of the timer aswell if i don't want the feature

  • @applicablerobot
    @applicablerobot ปีที่แล้ว +1

    This is a flow sensor. Proper way to use would be making a pulse rate to flow rate calibration table (hopefully it's linear?) Then use a lut in the code to convert pulse/s to flow rate. This flow rate can be integrated to determine volume of water used

  • @BeardedTinker
    @BeardedTinker ปีที่แล้ว +3

    Did you consider using home water metering valve for this same purpose? Possibly in combination with occupancy sensor in bathroom (that could also trigger ventilation if needed).

  • @orlin369
    @orlin369 ปีที่แล้ว

    Best video ever! ❤️

  • @LAYATORS
    @LAYATORS ปีที่แล้ว

    Super cool!

  • @GertvandenBerg
    @GertvandenBerg ปีที่แล้ว

    My main water meter has a place for getting data out (Some data sheets call it "impulse emitting devices", other it seems like there is a place for a reed switch to get pulses) (mine (a Sensus meter) seems to have the reed switch output) "T-probe reed switches" seems to be the term used for those sensors (I mainly see South African discussions - so it is possible that it is mainly common on our meters...)

  • @studentofedison421
    @studentofedison421 ปีที่แล้ว

    One of the best video

  • @allezvenga7617
    @allezvenga7617 ปีที่แล้ว

    Thanks for your sharing

  • @ninaddeshmukh654
    @ninaddeshmukh654 ปีที่แล้ว +1

    Such a cool project
    Also saw the Tweet that you Tweeted saying you got those Drone parts hopefully we’ll get the video soon

  • @vedantsamadhiya2304
    @vedantsamadhiya2304 ปีที่แล้ว

    Missing this kind of video , finally got after long 😀😀

  • @Pippy626
    @Pippy626 ปีที่แล้ว

    Love the videos! I want a diy water temperature display and keeps the water at that temperature. My hot water doesn’t last long and need to adjust the temp every minute to keep a constant temp

  • @123Liquid321
    @123Liquid321 ปีที่แล้ว

    nice project. same applies for driving with the car. a smart taximeter could also be something that makes it easier to "push" you into using public transport or your bicycle.

  • @frollard
    @frollard ปีที่แล้ว

    Friend of mine did similar by stealing the wireless signals transmitted by the water meter - it transmits every minute or so the account number and usage. With an RTL sdr he can listen to all the neighbors - once he figured out which was his he pointed the sdr to an mqtt thingamajig. Granted it dilutes things down to much longer intervals, and misses multiple users at once - but he's a bachelor so it doesn't much matter.

  • @truthreigns7
    @truthreigns7 ปีที่แล้ว

    I like your idea.. This is great.. Our water company has an app which allows me to see how much water we are using. It has graphs and history plus other features.

  • @mattbunce2509
    @mattbunce2509 ปีที่แล้ว +1

    Would be interested to know the difference in the production of the flow sensors kn the main meters which are (hopefully) accurate, and the cheaper one.
    Would also be interested to know if there are any magnets flying around inside the official water meter that you could read with a hal effect sensor to get access to the more accurate readings without actually interrupting the main meter

  • @PPRstudio
    @PPRstudio ปีที่แล้ว

    That reminded me about my plan to get water pressure meter with IoT.
    My house is small and have no space for water tank and pump, sometimes water flow is really slow so I need to know when the water pressure is highest and pick the best time to shower.

  • @AlexApol
    @AlexApol ปีที่แล้ว +2

    Great info for your German audience. Heating prices this winter are going to be insane.

    • @greatscottlab
      @greatscottlab  ปีที่แล้ว +1

      Yep. Trying to help a bit here :-)

  • @lernenmitrobin
    @lernenmitrobin ปีที่แล้ว +9

    Great project as usual!
    If you search for "water turbine 5V", you'll find different kinds of micro hydro generators you can put in series to you measurement part. It could be used to recharge the battery again. Maybe you need to convert from 12 V to lower voltage, but as I know you are an expert in voltage conversion ;-)

  • @gohangoku3447
    @gohangoku3447 ปีที่แล้ว

    Great Idea!
    Now we want a metering of drawn current by the "Durchlauferhitzer" while showering :D

  • @herantd
    @herantd ปีที่แล้ว

    My first thought was that it would be better to place a measuring device on the output of the water heating tank, since that’s the most expensive water you can use but also powering device from mains wouldn’t be any problem since most water heaters located inside “dry” zones.. but then again, for MDUs it’s probably a bit hassle since you probably have some kind of central heating system supplying other apartments

  • @Mr_ToR
    @Mr_ToR ปีที่แล้ว

    HACS is something you will install when you progress being an automator with HA. It is an amazing free store made by people for people. There is nothing awkward about it. Also, since I started using Home Assistant, I stopped using arduino since I can do everything much easily and with native wifi. There is multiple times less overhead with HA compared to Arduino.

  • @misthafalls
    @misthafalls ปีที่แล้ว +3

    Well this is an interesting topic, since I was busy with the water flow sensors today as well. But my main idea is not for water usage measurement per se, but the measurement in flow between hot and cold water paths. The reason for it is to use the percentage in the flows between the two paths to automatically set a temperature point for a water heater within a showerloop system. In this way I can have a completely regular shower install, but have the temperature and the rest of a showerloop system be completely automated.
    If I finish this project then I will definetely post something about it on youtube and github about it :D

    • @ffoska
      @ffoska ปีที่แล้ว +1

      Just an idea but maybe for showers you could use the waste water. Measure it's temperature under the drain and adjust accordingly. Although that's definatelly a workaround and does not work for baths or filling stuff with water like buckets

    • @misthafalls
      @misthafalls ปีที่แล้ว +1

      ​@@ffoska Well it is a showerloop, so all the waste water will go through a pump, filters (sediment, uv) and the be reheated back to a desired temperature (complete water re-usage). In this case I am trying to get the temperature adjusted by using a standard shower value (so no thermostatic valve) and checking the water flow on the separate paths to set a temperature. So far I have all the individual components working as necesarry. But the code and design is rather primitive and experimental (breadboards, janky scripts).
      So the next step is to get it all together and create a more professional cohesive system :)
      Also looking at maybe automatic removal and refill of shower water after a certain amount of rotation.
      btw. water will always be purged after a shower end, so every shower will have fresh water.

    • @ffoska
      @ffoska ปีที่แล้ว +1

      @@misthafalls That's a really nice concept you got going on. Nice work!

  • @JustPyroYT
    @JustPyroYT ปีที่แล้ว

    Great Video! 👍

  • @Mr-Widget
    @Mr-Widget ปีที่แล้ว

    I'm using MQTT, telegraf, influxdb, and grafana, which does a wonderful job of graphing data over time.

  • @bartowl
    @bartowl ปีที่แล้ว

    one nice trick for delayed actions like turn off logic is to use the throttle_average filter followed by a lambda filter like 'if(isnan(x)) { turn_off_code_here }'. Through throttle_average the sensor gets activated periodicaly regardless if it received data or not. If it did not receive data (case for turn off) it responds with NaN. If you wait for it with lambda, you cann then emit an output to poweroff the sensor... Hope this is what you wanted to achieve :)

  • @piotrchmiel87
    @piotrchmiel87 ปีที่แล้ว

    Very nice idea, which can be also extended to measure how much washing machine or dishwasher use. Isn't it possible to read pulses from your water measure? By the way I achieved similar, but obviously less accurate shower water usage sensor with humidity sensor next to shower. I observed that there is more or less the same pressure and mix of hot and cold water used everytime, so I calculate just time based on humidity changes.

  • @suromark
    @suromark ปีที่แล้ว

    I'm using an ESP32CAM module with the camera focused at about 5 cm to take snapshots of my hot/cold meters' readout every hour, controlled by my home automation Raspberry Pi. The Pi activates the camera's LED, retrieves a cropped JPEG of the digits to its SSD (only if they've changed) then turns off the illumination again. It doesn't run image-to-text yet but at least it's building a history of measurements ...

  • @matteofreddi9260
    @matteofreddi9260 ปีที่แล้ว

    Great Idea! I would also put an inline small water turbine to keep the battery charged meanwhile the water is passing the sensor.

  • @manuellongo4365
    @manuellongo4365 ปีที่แล้ว +1

    The problem with that sensor measures flow at a specific pressure. If the pressure is increased and one liter is taken as a sample, the time taken is less. The same amount of water will pass but in less time. The little impeller of the sensor has to turn faster. Flow=volume/time....in this case time depends on pressure.

  • @Twitch_Blade
    @Twitch_Blade ปีที่แล้ว

    You could probably use the pulse interval to calculate flowrate and then calculate volume from that, with consistent water pressure this would work. If you wanted to get fancy you could even add a water pressure sensor to add accuracy.

  • @andychesaru632
    @andychesaru632 ปีที่แล้ว

    I think it's possible to ditch the battery completely, and use the pressure of the water itself to spin a small dc motor to act as a generator, with a cap to smooth things up and to provide for power spikes(when wifi is involved). This way, it only runs while water is flowing, and no battery is required (nor charging). With an energy/gas meter on the water heater, a calculated cost per shower cand be sent to the phone automatically! :)

  • @LouieS-PH
    @LouieS-PH ปีที่แล้ว

    There are commercially available ultrasonic or electromagnetic flowmeter that outputs the reading to a monitoring system like SCADA. Water companies use this to remote monitor the flow and volume.

  • @frobertopereira
    @frobertopereira ปีที่แล้ว

    I start follow the channel recently and watched this video just today.
    Congrats for your well done videos.
    It has plenty comments, I can't pass through all of them. If someone already suggest it, just escape it. You use two devices on the pipes, one to measure wather flow and other to recharge the battery. I was wandering if the second device isn't enough to do both things. You would need access the inductor inside the second device to sample the flow signal. I don't know if it would be easy, but would reduce one mechanical part of the set.

  • @JacobKasperek
    @JacobKasperek ปีที่แล้ว +1

    I think the next big step is to make this device absolutelty passive and battery-less with just the power of water stream (maybe even heat) making the circuit work. Great work!

    • @shabbagadoosh
      @shabbagadoosh ปีที่แล้ว

      I think a small battery acting a bit like a ups alongside a flow charging system would be great

    • @odonald6087
      @odonald6087 ปีที่แล้ว

      add a coil to a second flow meter and power the esp entirely from that! Exactly the sort of project I would expect from GreatScott

  • @NEhusker55
    @NEhusker55 ปีที่แล้ว +43

    Awesome build, I’d be interested if the variability in the water sensor is consistent enough to be calculated… I’m thinking if you can measure rpm and adjust the output accordingly. E.g, if 1k rpm = 5 liters per minute and 2k rpm = 20 liters per minute and 3k = 25 lpm we should be able to create a curve to approximate the output based on flow rate… makes me want to build it just to find out :)

    • @greatscottlab
      @greatscottlab  ปีที่แล้ว +14

      That sounds like a good idea. Definitely worth it to look into it. Only problem for my setup would be that integrating such a curve into the home assistant programming would be kind of hard.

    • @NEhusker55
      @NEhusker55 ปีที่แล้ว +3

      @@greatscottlab Ahhh I'm just starting to dabble with home assistant. Definitely didn't consider that element. Thanks for sharing!

    • @tobiashegemann1811
      @tobiashegemann1811 ปีที่แล้ว +1

      Endress and Hauser has some interesting in deph explanation Videos about All kinds of flow meters

    • @gmeesen
      @gmeesen ปีที่แล้ว +12

      @@greatscottlab You could implement the curve into the program on the ESP and let it report ’linearised’ pulses instead of actual pulses. That way you can still use a constant conversion factor from pulses to L/min in Home Assistent.

    • @SpeedFlap
      @SpeedFlap ปีที่แล้ว +2

      @@greatscottlab Let the ESP do the linearization and conversion to liters and liters/minute. You already know all you need. Just take the low flow and high flow pulse-per-second and make linear interpolation between the two from the input pulses in a time interval. Should be pretty much precise enough to do the math once every second.

  • @sarahjanegray
    @sarahjanegray ปีที่แล้ว +1

    Hi Scott. Great video. Got me thinking about a project I would like to do to monitor heating oil usage to our boiler. (We live in rural Ireland). It's been on my to do list for a while and with heating oil prices going through the roof, it has suddenly become more of a priority so we can see what we are using each time the boiler is on. Just wondered if you had come across a similar sensor for other liquids? I had a brief search to find something similar to what you started out with and was not successful. Thanks.

  • @b4piotr
    @b4piotr ปีที่แล้ว

    Hi, I'm writing through the translator so sorry for the quality. Around 2004-2006, I was interested in cooling a computer with liquid. the problem was that as the water stopped flowing, the computer would overheat. One man figured out a great way to measure the velocity of a liquid. Well, he passed an optical fiber through the tube. Laser diode and receiving diode, measured the time it took for the light to travel over such a short distance. As the liquid flows, it creates pressure and deflects the optical fiber, so the path increases and the time taken for the light to travel that path is longer. Unfortunately, I do not have this study archived anywhere. But in 2006, the chips were slower than they are today, so you can make it. Additionally, you can use the turbine to charge the battery (by flowing water), which will increase the runtime.

  • @Leif_YT
    @Leif_YT ปีที่แล้ว +21

    With access to the water meter the "AI on the edge" project could also be interesting. It's using an ESP32 cam module to read & analyze an analog water meter. The live update rate is probably a lot slower, but if statistics by hour or day are enough it's a nice project.

    • @hicknopunk
      @hicknopunk ปีที่แล้ว +1

      An esp32 for edge processing? It can barely emulate Atari 2600

    • @Leif_YT
      @Leif_YT ปีที่แล้ว +1

      @@hicknopunk It uses Tensorflow Lite which is optimized for the use on Micro Controllers.

    • @hicknopunk
      @hicknopunk ปีที่แล้ว

      @@Leif_YT that is bloody impressive

    • @stepheneyles2198
      @stepheneyles2198 ปีที่แล้ว

      Link to the video mentioned by @Leif: th-cam.com/video/d_u8c3bu-zg/w-d-xo.html&ab_channel=AndreasSpiess
      Edit: Apologies, that is not the original video, but mentions it. Leaving the link as it's interesting and related anyway.

  • @nusermane1076
    @nusermane1076 ปีที่แล้ว

    Great Scott! What a project 😍
    Have you had a look into ultrasonic transducer based water flow sensors? As far as I can remember they rely on the Doppler effect to measure flow speed. Given a fixed pipe diameter you can calculate the water flow. Some systems do so without the need of a pipe modification, since the sensors are just strapped to the pipes. Combine those sensors with some temperature sensors and you are able to monitor the heat energy flow through your heating system 😍
    Would this be worth a project? Would be an interesting video 😉