Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Announcements
  3. 💬 Water Meter Pulse Sensor

💬 Water Meter Pulse Sensor

Scheduled Pinned Locked Moved Announcements
109 Posts 37 Posters 30.9k Views 35 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • dpcrD Offline
    dpcrD Offline
    dpcr
    wrote on last edited by
    #50

    Has it ever received a pulse count?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      ladislav
      wrote on last edited by
      #51

      When its about 2 metres far from gateway its received. Afterthat can be moved 10 metres away and it works. But after reset has to be moved close to gateway again.
      I run also power meter pulse sensor. This has got different issue. It falls asleep before receiving pulse count from gw.

      dpcrD 1 Reply Last reply
      0
      • L ladislav

        When its about 2 metres far from gateway its received. Afterthat can be moved 10 metres away and it works. But after reset has to be moved close to gateway again.
        I run also power meter pulse sensor. This has got different issue. It falls asleep before receiving pulse count from gw.

        dpcrD Offline
        dpcrD Offline
        dpcr
        wrote on last edited by
        #52

        @ladislav Sounds like a radio problem. Are you using a capacitor on the radio power supply pins? A capacitor on all radios in your network. I have a an Ethernet gateway in our basement and a node in our attic that is two floors above it and it works fine using a NRF24 for all radios and the radio power is on the default setting and it communicates fine.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          smilvert
          wrote on last edited by smilvert
          #53

          I having problem to place the tcrt5000 on the correct place. Can anyone please show where to put it? Is it over the black (that spins every 0.5 l)?

          I have this type of water meter alt text

          bart59B dpcrD F 3 Replies Last reply
          0
          • S smilvert

            I having problem to place the tcrt5000 on the correct place. Can anyone please show where to put it? Is it over the black (that spins every 0.5 l)?

            I have this type of water meter alt text

            bart59B Offline
            bart59B Offline
            bart59
            wrote on last edited by
            #54

            @smilvert I am afraid your water meter does not work. On many other watermeters the black spinning wheel is somewhat bigger and has a small mirror attached. The light from the IR LED is reflected by the mirror and the IR sensor picks up the reflection as a pulse every rotation (in your case 0.5 L). I suggest you buy another water meter that has a sensor build in and provides you with a direct signal. In my home I have separate water meters for each water consumer (such shower, hot water, kitchen, etc.).

            I am using a Honeywell C7195A2001B which has a hall sensor that pulses at 7 Hz per liter/min, so you will get 420 pulses per liter. These meters are typically used in boiler or central heating systems that also can provide hot water for your shower. You need to modify the source code a bit to handle the high pulse frequency, but the nice thing is that the measurement is very accurate.

            regards

            Bart

            1 Reply Last reply
            0
            • S smilvert

              I having problem to place the tcrt5000 on the correct place. Can anyone please show where to put it? Is it over the black (that spins every 0.5 l)?

              I have this type of water meter alt text

              dpcrD Offline
              dpcrD Offline
              dpcr
              wrote on last edited by
              #55

              @smilvert You could try a magnometer. I successfully used one on my gas meter that didn't have a magnet in it. Look up "gas meter using a magnometer" in this forum. The code is much different than using the standard water meter sketch.

              rejoe2R 1 Reply Last reply
              0
              • dpcrD dpcr

                @smilvert You could try a magnometer. I successfully used one on my gas meter that didn't have a magnet in it. Look up "gas meter using a magnometer" in this forum. The code is much different than using the standard water meter sketch.

                rejoe2R Offline
                rejoe2R Offline
                rejoe2
                wrote on last edited by
                #56

                @smilvert @dpcr
                I really doubt this type of water meter having a magnet to sense. Gas meters often are prepared to use a special reed swich to be mounted somewhere outside on the enclosure, and the magnet comes pretty close to the enclosure to be sensed.

                I somewhere found a different solution approach using a modified TCRT5000 board with green LED and a specific lightsensor (see here for details, german).

                The idea behind it is to use complementary (green) light to one of the red pointer wheels to improve contrast when the small pointer passes.

                I recently did some first test wrt. to this, but different to the mentioned solution, I used the original LED/sensor places to connect these two parts (and also changed the resistors values). Unfortunately, I wasn't able to test it "at the right place" until now. As far as I can see, the TCRT5000 inside just also consist of two seperate parts inside a housing. So you may try to do it like that: just pull of the plastic housing, change the LED (see TCRT datasheet which one) with a green one, focus LED and sensor a little more than normal and see, if you get reasonable results whith the trimming resistor.

                Glad for feedback, if this works...

                Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                dpcrD 1 Reply Last reply
                0
                • rejoe2R rejoe2

                  @smilvert @dpcr
                  I really doubt this type of water meter having a magnet to sense. Gas meters often are prepared to use a special reed swich to be mounted somewhere outside on the enclosure, and the magnet comes pretty close to the enclosure to be sensed.

                  I somewhere found a different solution approach using a modified TCRT5000 board with green LED and a specific lightsensor (see here for details, german).

                  The idea behind it is to use complementary (green) light to one of the red pointer wheels to improve contrast when the small pointer passes.

                  I recently did some first test wrt. to this, but different to the mentioned solution, I used the original LED/sensor places to connect these two parts (and also changed the resistors values). Unfortunately, I wasn't able to test it "at the right place" until now. As far as I can see, the TCRT5000 inside just also consist of two seperate parts inside a housing. So you may try to do it like that: just pull of the plastic housing, change the LED (see TCRT datasheet which one) with a green one, focus LED and sensor a little more than normal and see, if you get reasonable results whith the trimming resistor.

                  Glad for feedback, if this works...

                  dpcrD Offline
                  dpcrD Offline
                  dpcr
                  wrote on last edited by
                  #57

                  @rejoe2 A magnetometer doesn't need a magnet to work, my gas meter doesn't have a magnet and it works fine. Most all smartphones have magnetometers in them to sense direction. However your solution looks to work as well and probably with less code.

                  rejoe2R 1 Reply Last reply
                  0
                  • dpcrD dpcr

                    @rejoe2 A magnetometer doesn't need a magnet to work, my gas meter doesn't have a magnet and it works fine. Most all smartphones have magnetometers in them to sense direction. However your solution looks to work as well and probably with less code.

                    rejoe2R Offline
                    rejoe2R Offline
                    rejoe2
                    wrote on last edited by
                    #58

                    @dpcr Thanks for clarification.
                    Today there was a new post that may be of interest wrt. to the "green" LED sensing modification: https://forum.fhem.de/index.php?action=post;quote=702342;topic=71341.0;last_msg=702342
                    This one seems to be close to a "professional" solution also wrt. to the other parts used (but most likely not on a TCRT5000-Base)...

                    Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                    1 Reply Last reply
                    0
                    • RPunktR Offline
                      RPunktR Offline
                      RPunkt
                      wrote on last edited by
                      #59

                      I have a question and need some advise,
                      is it possible to expand the sketch to two meters.
                      In my case I want to combine a this Water Meter with a Gas Meter.
                      Can both meters use an interrupt, each?

                      mfalkviddM 1 Reply Last reply
                      0
                      • RPunktR RPunkt

                        I have a question and need some advise,
                        is it possible to expand the sketch to two meters.
                        In my case I want to combine a this Water Meter with a Gas Meter.
                        Can both meters use an interrupt, each?

                        mfalkviddM Offline
                        mfalkviddM Offline
                        mfalkvidd
                        Mod
                        wrote on last edited by mfalkvidd
                        #60

                        @rpunkt welcome to the MySensors community!

                        it depends on which microcontroller you use, and what type of interrupt.

                        Atmega328 can use pin 2 and 3 at the same time by merging the sketches. More/other pins can be used but that will require some code changes.

                        1 Reply Last reply
                        0
                        • S smilvert

                          I having problem to place the tcrt5000 on the correct place. Can anyone please show where to put it? Is it over the black (that spins every 0.5 l)?

                          I have this type of water meter alt text

                          F Offline
                          F Offline
                          flopp
                          wrote on last edited by
                          #61

                          @smilvert
                          I also have same meter as the picture. Yesterday I installed my sensor
                          I took a TCRT5000 IR sensor, https://www.mysensors.org/store/water
                          A cap from a soda bottle, cut it so it fits above left red wheel(X0,0001) which means one lap i 1 liter
                          It works but it counts little bit wrong, I have change the

                          if (interval<500000L)
                          

                          to

                          if (interval<2500000L)
                          

                          but anyway it counts about 3 times to much. I will check it later today

                          0_1518429857989_vatten.png
                          0_1518429910010_water.png

                          F S 2 Replies Last reply
                          0
                          • F flopp

                            @smilvert
                            I also have same meter as the picture. Yesterday I installed my sensor
                            I took a TCRT5000 IR sensor, https://www.mysensors.org/store/water
                            A cap from a soda bottle, cut it so it fits above left red wheel(X0,0001) which means one lap i 1 liter
                            It works but it counts little bit wrong, I have change the

                            if (interval<500000L)
                            

                            to

                            if (interval<2500000L)
                            

                            but anyway it counts about 3 times to much. I will check it later today

                            0_1518429857989_vatten.png
                            0_1518429910010_water.png

                            F Offline
                            F Offline
                            flopp
                            wrote on last edited by
                            #62

                            @flopp
                            This didn't worked so well, I got a lot of errors everytime nRF was sending data, then I got one pulse.
                            Anyone know how to protect the digital input to NOT fall when nRF sends?
                            Wait, when I was writing this text :) I just remember that nRF is using Pin 2, is that correct?
                            I will try to use pin 3 instead, as interrupt pin

                            F 1 Reply Last reply
                            0
                            • F flopp

                              @flopp
                              This didn't worked so well, I got a lot of errors everytime nRF was sending data, then I got one pulse.
                              Anyone know how to protect the digital input to NOT fall when nRF sends?
                              Wait, when I was writing this text :) I just remember that nRF is using Pin 2, is that correct?
                              I will try to use pin 3 instead, as interrupt pin

                              F Offline
                              F Offline
                              flopp
                              wrote on last edited by
                              #63

                              @flopp
                              tried pin3, didn't help

                              Can it be something wrong with LM393(pcb)?

                              1 Reply Last reply
                              0
                              • F flopp

                                @smilvert
                                I also have same meter as the picture. Yesterday I installed my sensor
                                I took a TCRT5000 IR sensor, https://www.mysensors.org/store/water
                                A cap from a soda bottle, cut it so it fits above left red wheel(X0,0001) which means one lap i 1 liter
                                It works but it counts little bit wrong, I have change the

                                if (interval<500000L)
                                

                                to

                                if (interval<2500000L)
                                

                                but anyway it counts about 3 times to much. I will check it later today

                                0_1518429857989_vatten.png
                                0_1518429910010_water.png

                                S Offline
                                S Offline
                                smilvert
                                wrote on last edited by
                                #64

                                @flopp Nice. You don't use a green led? I tried that and it seems to work better but then I struggle with the mounting.

                                Need to try this again!

                                F 1 Reply Last reply
                                0
                                • S smilvert

                                  @flopp Nice. You don't use a green led? I tried that and it seems to work better but then I struggle with the mounting.

                                  Need to try this again!

                                  F Offline
                                  F Offline
                                  flopp
                                  wrote on last edited by
                                  #65

                                  @smilvert said in 💬 Water Meter Pulse Sensor:

                                  You don't use a green led? I tried that and it seems to work better but then I struggle with the mounting.

                                  I am using IR to detect movements. Green LED is flashing eveytime the IR detects movement and Red LED is power for PCB.
                                  I am using Digital Output from PCB to pin 2 or 3 on my UNO. I have tried both with INPUT_PULLUP and without, also tried 20K between Digital Output and GND. nothing is helping

                                  How do you use green LED with water meter?

                                  1 Reply Last reply
                                  0
                                  • N Offline
                                    N Offline
                                    noname
                                    wrote on last edited by
                                    #66

                                    Hi all i just wanna see The OUTPUT of Serial Monitor for this project sow i can see results .

                                    1 Reply Last reply
                                    0
                                    • gohanG Offline
                                      gohanG Offline
                                      gohan
                                      Mod
                                      wrote on last edited by
                                      #67

                                      Just enable the my_debug

                                      1 Reply Last reply
                                      0
                                      • B Offline
                                        B Offline
                                        Bur Han
                                        wrote on last edited by
                                        #68

                                        How can i get the pulses from SonOff.... i cannot find any digital pin 3 in sonoff... im new to this please guide me

                                        1 Reply Last reply
                                        0
                                        • SoloamS Offline
                                          SoloamS Offline
                                          Soloam
                                          Hardware Contributor
                                          wrote on last edited by
                                          #69

                                          Any one used this approach? From the text I see that the node sleeps! How does it measures the consumption if the node is sleeping?

                                          Thank you

                                          mfalkviddM 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          25

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular