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. My Project
  3. [contest] My 12 input high precision pulse counter (kWh/ W)

[contest] My 12 input high precision pulse counter (kWh/ W)

Scheduled Pinned Locked Moved My Project
[contest]
43 Posts 9 Posters 49.1k Views 10 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.
  • M Offline
    M Offline
    MarkV
    wrote on last edited by MarkV
    #28

    I've connected everything, but it says:

    11-11-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=fail:1.5

    What does this mean?? What does the fail mean?

    Also the sensors don't show up in Domoticz.

    And now i'm getting al sort off strange signes:
    -11-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=fail:1.5
    11-11-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=fail:0
    .W J‘õ11, parent=0, distance=1
    LLKLLKj‚šõ255,c=3,t=11,pt=0,l=18,sg=0,st=fail:AWI-12ChannelPulse
    LLKLLKj‚šõ255,c=3,t=12,pt=0,l=3,sg=0,st=fail:1.0
    LLKLLKj‚šõ0,c=0,t=13,pt=0,l=0,sg=0,st=fail:
    LLKLLKj‚šõ1,c=0,t=13,pt=0,l=0,sg=0,st=fail:
    find parent
    LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    11-0-0 s=2,c=0,t=13,pt=0,l=0,sg=0,st=fail:
    LLKLLKj‚šõ3,c=0,t=13,pt=0,l=0,sg=0,st=fail:
    LLKLLKj‚šõ4,c=0,t=13,pt=0,l=0,sg=0,st=fail:
    LLKLLKj‚šõ5,c=0,t=13,pt=0,l=0,sg=0,st=fail:
    LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
    LLKLLKj‚šõ0,c=2,t=18,pt=0,l=0,sg=0,st=fail:
    find parent
    LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    11-0-0 s=1,c=2,t=18,pt=0,l=0,sg=0,st=fail:
    LLKLLKj‚šõ2,c=2,t=18,pt=0,l=0,sg=0,st=fail:
    LLKLLKj‚šõ3,c=2,t=18,pt=0,l=0,sg=0,st=fail:
    LLKLLKj‚šõ4,c=2,t=18,pt=0,l=0,sg=0,st=fail:
    LLKLLKj‚šõ5,c=2,t=18,pt=0,l=0,sg=0,st=fail:
    ¢¥µ•5
    LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
    find parent
    LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    11-0-0 s=1,c=2,t=18,pt=0,l=0,sg=0,st=fail:
    Y‹é 11-11-0-0 s=255,c=0,Y‹é 11-11-0-0 s=25óYk½É�started, id=11,equesting time
    JsonParser.parse() failed
    ¢¥µ•5
    LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
    LLKLLKj‚šõ2,c=2,t=18,pt=0,l=0,sg=0,st=fail:
    –‹é 11-11-0-0 s=25Í–‹é 11-11-255-255`¾ò–‹é 11-1Y‹é 11-ñequesting time
    JsonParser.parse() failed

    AWIA 1 Reply Last reply
    0
    • M MarkV

      I've connected everything, but it says:

      11-11-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=fail:1.5

      What does this mean?? What does the fail mean?

      Also the sensors don't show up in Domoticz.

      And now i'm getting al sort off strange signes:
      -11-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=fail:1.5
      11-11-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=fail:0
      .W J‘õ11, parent=0, distance=1
      LLKLLKj‚šõ255,c=3,t=11,pt=0,l=18,sg=0,st=fail:AWI-12ChannelPulse
      LLKLLKj‚šõ255,c=3,t=12,pt=0,l=3,sg=0,st=fail:1.0
      LLKLLKj‚šõ0,c=0,t=13,pt=0,l=0,sg=0,st=fail:
      LLKLLKj‚šõ1,c=0,t=13,pt=0,l=0,sg=0,st=fail:
      find parent
      LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
      11-0-0 s=2,c=0,t=13,pt=0,l=0,sg=0,st=fail:
      LLKLLKj‚šõ3,c=0,t=13,pt=0,l=0,sg=0,st=fail:
      LLKLLKj‚šõ4,c=0,t=13,pt=0,l=0,sg=0,st=fail:
      LLKLLKj‚šõ5,c=0,t=13,pt=0,l=0,sg=0,st=fail:
      LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
      LLKLLKj‚šõ0,c=2,t=18,pt=0,l=0,sg=0,st=fail:
      find parent
      LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
      11-0-0 s=1,c=2,t=18,pt=0,l=0,sg=0,st=fail:
      LLKLLKj‚šõ2,c=2,t=18,pt=0,l=0,sg=0,st=fail:
      LLKLLKj‚šõ3,c=2,t=18,pt=0,l=0,sg=0,st=fail:
      LLKLLKj‚šõ4,c=2,t=18,pt=0,l=0,sg=0,st=fail:
      LLKLLKj‚šõ5,c=2,t=18,pt=0,l=0,sg=0,st=fail:
      ¢¥µ•5
      LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
      find parent
      LLKLLK¦SSIªªšõ255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
      11-0-0 s=1,c=2,t=18,pt=0,l=0,sg=0,st=fail:
      Y‹é 11-11-0-0 s=255,c=0,Y‹é 11-11-0-0 s=25óYk½É�started, id=11,equesting time
      JsonParser.parse() failed
      ¢¥µ•5
      LLKLLKj‚šõ255,c=3,t=1,pt=0,l=0,sg=0,st=fail:
      LLKLLKj‚šõ2,c=2,t=18,pt=0,l=0,sg=0,st=fail:
      –‹é 11-11-0-0 s=25Í–‹é 11-11-255-255`¾ò–‹é 11-1Y‹é 11-ñequesting time
      JsonParser.parse() failed

      AWIA Offline
      AWIA Offline
      AWI
      Hero Member
      wrote on last edited by
      #29

      @MarkV it sounds like the radio cannot make a connection to the gateway. In many cases this comes from the power supply of the radio. But it can also be distance to gateway etc. Do you have other sensors working?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MarkV
        wrote on last edited by
        #30

        Good evening,

        It took a while but i wanted to check everything and see what i can do about it by myself.
        And.... still no luck, except that i have a running ethernet GW, plus a DHT11 Humidity/temperature sensor up and running.

        My pulse counter is also running and i'm getting output on the usb, normal output haha.
        Also the gateway is able to see the counter.
        Domoticz sees the gateway, the only problem is, that it doesn't add the sensor to it.
        The strange part is that is does add the humidity/temperatuur arduino.

        Schermafdruk 2015-09-19 21.34.19.png

        I've pressed the "add new sensors for 5 minuts" button and still no luck.

        I've also installed MYScontroller and when i connect through tcp i get the following:

        Schermafdruk 2015-09-19 21.39.24.png

        Arduino Sketch serial monitor:

        Schermafdruk 2015-09-19 21.42.06.png

        What's wrong, what did i do wrong and what should i do to fix it??

        AWIA 1 Reply Last reply
        0
        • M MarkV

          Good evening,

          It took a while but i wanted to check everything and see what i can do about it by myself.
          And.... still no luck, except that i have a running ethernet GW, plus a DHT11 Humidity/temperature sensor up and running.

          My pulse counter is also running and i'm getting output on the usb, normal output haha.
          Also the gateway is able to see the counter.
          Domoticz sees the gateway, the only problem is, that it doesn't add the sensor to it.
          The strange part is that is does add the humidity/temperatuur arduino.

          Schermafdruk 2015-09-19 21.34.19.png

          I've pressed the "add new sensors for 5 minuts" button and still no luck.

          I've also installed MYScontroller and when i connect through tcp i get the following:

          Schermafdruk 2015-09-19 21.39.24.png

          Arduino Sketch serial monitor:

          Schermafdruk 2015-09-19 21.42.06.png

          What's wrong, what did i do wrong and what should i do to fix it??

          AWIA Offline
          AWIA Offline
          AWI
          Hero Member
          wrote on last edited by
          #31

          @MarkV Good morning ;-) the issue you are having is probably due to the fact that Domoticz sometimes creates sensors after actual data is received (i.s.o. when presenting). The original sketch won't start sending data until it receives something. (line 111 in code above). Also Domoticz is not able to to "send" data values, I had to tweak it myself...
          The whole dependency on the controller gave me a lot of headaches. Therefore I decided to rework the whole thing in an independent version. This one is running stable for a few weeks now with a "standard (beta)" version of Domoticz.

          The code and hardware is similar but requires some attention. i.e. you need different and the newest libraries. Just drop me a note if you need any assistance.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MarkV
            wrote on last edited by MarkV
            #32

            Thanks for the commet and i defently need some help.
            Sorry i didn't see your "new" post about the pulse counter.

            I'm uploading the sketches now.
            I only got one question, what should i uncomment in the sketches when i'm not using the display and counter?

            And when i got this working, is it possible to add to other sensors, a CNY70 (reflector sensor) to readout a water and gas meter? (but this is the next step ;-) )

            I also installed the beta version from domoticz.

            AWIA 1 Reply Last reply
            0
            • M MarkV

              Thanks for the commet and i defently need some help.
              Sorry i didn't see your "new" post about the pulse counter.

              I'm uploading the sketches now.
              I only got one question, what should i uncomment in the sketches when i'm not using the display and counter?

              And when i got this working, is it possible to add to other sensors, a CNY70 (reflector sensor) to readout a water and gas meter? (but this is the next step ;-) )

              I also installed the beta version from domoticz.

              AWIA Offline
              AWIA Offline
              AWI
              Hero Member
              wrote on last edited by
              #33

              @MarkV Next to my reaction in the other post. I cannot be hard to add more (different) sensors to the sketch. As long as you do not attach LCD / rotary, you will only miss the information and interaction.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                poldim
                wrote on last edited by
                #34

                Merlin Gerin, Eaton, and Beger...quite the mix.

                I like the domoticz display....whats your overall opinion on it?

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jeti
                  wrote on last edited by jeti
                  #35

                  did anybody already upgraded the 12 Input pulse counter to 2.0? just asking :bowtie:

                  AWIA 1 Reply Last reply
                  0
                  • J jeti

                    did anybody already upgraded the 12 Input pulse counter to 2.0? just asking :bowtie:

                    AWIA Offline
                    AWIA Offline
                    AWI
                    Hero Member
                    wrote on last edited by
                    #36

                    @jeti If you are just asking. :smirk: I have updated it to 2.0 beta

                    J 1 Reply Last reply
                    0
                    • AWIA AWI

                      @jeti If you are just asking. :smirk: I have updated it to 2.0 beta

                      J Offline
                      J Offline
                      jeti
                      wrote on last edited by
                      #37

                      @AWI: :+1:

                      would you mind sharing the sketches? :innocent:

                      AWIA 1 Reply Last reply
                      0
                      • J jeti

                        @AWI: :+1:

                        would you mind sharing the sketches? :innocent:

                        AWIA Offline
                        AWIA Offline
                        AWI
                        Hero Member
                        wrote on last edited by
                        #38

                        @jeti Take a loot at git. The master sketch needs a little change (mysensors.h i.s.o. mysensor.h) The slave is not changed. I am a lttle disabled at the moment, so can't help you any furthe right now.

                        J NickBuilderN 2 Replies Last reply
                        0
                        • AWIA AWI

                          @jeti Take a loot at git. The master sketch needs a little change (mysensors.h i.s.o. mysensor.h) The slave is not changed. I am a lttle disabled at the moment, so can't help you any furthe right now.

                          J Offline
                          J Offline
                          jeti
                          wrote on last edited by
                          #39

                          @AWI thanks alot, i will have a look :+1:

                          hopefully nothing serios... either way all the best :thumbsup:

                          1 Reply Last reply
                          0
                          • AWIA AWI

                            @jeti Take a loot at git. The master sketch needs a little change (mysensors.h i.s.o. mysensor.h) The slave is not changed. I am a lttle disabled at the moment, so can't help you any furthe right now.

                            NickBuilderN Offline
                            NickBuilderN Offline
                            NickBuilder
                            wrote on last edited by NickBuilder
                            #40

                            Hi @AWI!

                            The GIT link is broken. Can I find your sketch for this counter elsewhere?

                            I would like to implement this counter as a "local sensor" on an ethernet gateway without radio. I guess this would require some tweaking but right now I'm confident. x)

                            Thanks!

                            AWIA 1 Reply Last reply
                            0
                            • NickBuilderN NickBuilder

                              Hi @AWI!

                              The GIT link is broken. Can I find your sketch for this counter elsewhere?

                              I would like to implement this counter as a "local sensor" on an ethernet gateway without radio. I guess this would require some tweaking but right now I'm confident. x)

                              Thanks!

                              AWIA Offline
                              AWIA Offline
                              AWI
                              Hero Member
                              wrote on last edited by AWI
                              #41

                              @NickBuilder soory but the transition to 2.0 gave me a little GIT headache and I broke some links.. I restored the pulse counter sketches. Be carefull with combining the sketch with ethernet functionality... Both eat a lot of RAM/ROM and are time critical.
                              The sketch also stores a large amount of data in EEPROM. Be aware that the space there is more limited than the 256 bytes mentioned with saveState().
                              Please share your progress

                              J 1 Reply Last reply
                              0
                              • AWIA AWI

                                @NickBuilder soory but the transition to 2.0 gave me a little GIT headache and I broke some links.. I restored the pulse counter sketches. Be carefull with combining the sketch with ethernet functionality... Both eat a lot of RAM/ROM and are time critical.
                                The sketch also stores a large amount of data in EEPROM. Be aware that the space there is more limited than the 256 bytes mentioned with saveState().
                                Please share your progress

                                J Offline
                                J Offline
                                jeti
                                wrote on last edited by
                                #42

                                @AWI as did got get my modifcations 100% running I was pumped to see your latest update, but for reasons i do not understand i get an error while compiling:

                                error: 'hour' was not declared in this scope
                                

                                same is the case for setTime, minute etc...

                                i already tried some stuff with the time.h but it seems nothing has an impact, not even deleting the whole library (which should end in a "libraby not found" error, but only shows the errors described above)
                                any idea what to look for?

                                thanks

                                J 1 Reply Last reply
                                0
                                • J jeti

                                  @AWI as did got get my modifcations 100% running I was pumped to see your latest update, but for reasons i do not understand i get an error while compiling:

                                  error: 'hour' was not declared in this scope
                                  

                                  same is the case for setTime, minute etc...

                                  i already tried some stuff with the time.h but it seems nothing has an impact, not even deleting the whole library (which should end in a "libraby not found" error, but only shows the errors described above)
                                  any idea what to look for?

                                  thanks

                                  J Offline
                                  J Offline
                                  jeti
                                  wrote on last edited by
                                  #43

                                  ok found the answer :stuck_out_tongue:
                                  the latest Time.h is only pointing to TimeLib.h so if I am calling TimeLib.h (instead of Time.h) directly it compiles

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


                                  16

                                  Online

                                  11.7k

                                  Users

                                  11.2k

                                  Topics

                                  113.1k

                                  Posts


                                  Copyright 2025 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