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. Hardware
  3. Current Sensing?

Current Sensing?

Scheduled Pinned Locked Moved Hardware
111 Posts 12 Posters 30.7k 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.
  • scalzS Offline
    scalzS Offline
    scalz
    Hardware Contributor
    wrote on last edited by scalz
    #97

    @Samuel235
    i don't think you need to go very high freq though, even with 50hz i think you can cover almost all meters you would need.

    Because 50hz would allow 50*3600= 180000 pulses/hour so if you say you go up to 20kw/h which is a lot! that would be 9000pulses/kw/h. So 100hz with a photores is a lot..

    but sure photodiode could be useful maybe for some other usecase, i don't know..or for some data transmission lol but here it's more something like "dark or light" at "slow rate".

    in case you have parts in stock and want to play, you still can use 3,4 resistors, cheap bs250 mosfet and photoresistor, very easy to use. My files are now uploaded at openhardware if you need https://forum.mysensors.org/topic/6430/mypulse-sensor

    Another nice article about photoresistor and blinking led detection i've just discovered. Looks like i've decided to use a mosfet for switching and perhaps a better digital level.., thus saving the footprint size + cost of the potentiometer.
    http://jeelabs.org/2012/03/18/detecting-a-blinking-led/

    S 1 Reply Last reply
    1
    • scalzS scalz

      @Samuel235
      i don't think you need to go very high freq though, even with 50hz i think you can cover almost all meters you would need.

      Because 50hz would allow 50*3600= 180000 pulses/hour so if you say you go up to 20kw/h which is a lot! that would be 9000pulses/kw/h. So 100hz with a photores is a lot..

      but sure photodiode could be useful maybe for some other usecase, i don't know..or for some data transmission lol but here it's more something like "dark or light" at "slow rate".

      in case you have parts in stock and want to play, you still can use 3,4 resistors, cheap bs250 mosfet and photoresistor, very easy to use. My files are now uploaded at openhardware if you need https://forum.mysensors.org/topic/6430/mypulse-sensor

      Another nice article about photoresistor and blinking led detection i've just discovered. Looks like i've decided to use a mosfet for switching and perhaps a better digital level.., thus saving the footprint size + cost of the potentiometer.
      http://jeelabs.org/2012/03/18/detecting-a-blinking-led/

      S Offline
      S Offline
      Samuel235
      Hardware Contributor
      wrote on last edited by
      #98

      @scalz - I made it with a comparator for two main reasons:

      1. I wasn't sure how much the frequency fluctuated from country to country and instead of spending days on end doing research for that, I just chose to go safe rather than sorry.
      2. If there is another application that we're not thinking of that would take advantage of a fast/high frequency light detector, this would fit perfectly.

      Thanks for uploading the files, will check them out today, although i pretty much have mine done now, just not got the design penalised onto the PCB to get 4 out of the 50x50 prototype order.

      I will get it made at University to test the board too.

      MySensors 2.1.1
      Controller - OpenHAB (Virtual Machine)
      Gateway - Arduino Mega MQTT Gateway W5100

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mwalker
        wrote on last edited by
        #99

        @scalz the jeelabs post is interesting. When I was using an LM393 module with a LDR I was unable to detect the pulses coming from my meter (later established as 15ms). Reading that article it seems that was because of inadequate light proofing (the meter is shaded, but outdoors), but lacking any sort of test equipment, it's interesting to see his oscilloscope tracings of the response of the LDR to a pulse. Thanks for linking it.

        1 Reply Last reply
        1
        • F Offline
          F Offline
          fabiancrg
          wrote on last edited by
          #100

          I have a Smappee energy monitor, it's connected to the main input and "detect" the different equipments. It's good to monitor the overall energy consumption and production if you have solar pannels but it's not able to detect everything.
          In summary, it can tell you the consumption of anything with a resistor (electric oven, motor, cofee machine) or a motor (roller shutter, pump,...) but for electronic, PC and other things for which the power consumption is not regular it won't help you much. For this, I think monitoring individual component will be the best.

          But as you probably plus a pwoer meter on each plug, maybe a combintation of both will be a good choice.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sspence65
            wrote on last edited by
            #101

            I use main line snap on current sensors for whole house monitoring, and snap on or hall effect sensors for specific device monitoring when necessary. I use current shunts for high current, low voltage dc monitoring like battery backup or off grid solar power systems.

            gohanG 1 Reply Last reply
            0
            • S sspence65

              I use main line snap on current sensors for whole house monitoring, and snap on or hall effect sensors for specific device monitoring when necessary. I use current shunts for high current, low voltage dc monitoring like battery backup or off grid solar power systems.

              gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #102

              @sspence65
              but that way you can only monitor current, not actual power used

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sspence65
                wrote on last edited by
                #103

                I also monitor the voltage (9v transformer and voltage divider) so I am getting current & voltage, and also time, so I can monitor KWh not just KW.

                K 1 Reply Last reply
                1
                • S sspence65

                  I also monitor the voltage (9v transformer and voltage divider) so I am getting current & voltage, and also time, so I can monitor KWh not just KW.

                  K Offline
                  K Offline
                  kimot
                  wrote on last edited by
                  #104

                  @sspence65
                  I think too that your method for power metering is better then calculating it from "blinks" of LED of power meter.
                  That is good for energy consumption only by counting pulses.
                  You can send correct power consumption in each time, which is not possible from blinks.
                  And I think in most cases we can assume stable voltage in the power net, so we do not need measure voltage.

                  gohanG 1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Samuel235
                    Hardware Contributor
                    wrote on last edited by Samuel235
                    #105

                    I have just posted my solution so far:

                    Forum thread: https://forum.mysensors.org/topic/6460/homini-pulse-meter-monitor
                    Openhardware.io: https://www.openhardware.io/view/356/Homini-Pulse-Meter-Monitor#tabs-comments

                    The sensor part is designed, currently working on the custom microcontroller board - You're more than welcome to use an arduino or any other solution for a microcontroller module.

                    MySensors 2.1.1
                    Controller - OpenHAB (Virtual Machine)
                    Gateway - Arduino Mega MQTT Gateway W5100

                    1 Reply Last reply
                    1
                    • K kimot

                      @sspence65
                      I think too that your method for power metering is better then calculating it from "blinks" of LED of power meter.
                      That is good for energy consumption only by counting pulses.
                      You can send correct power consumption in each time, which is not possible from blinks.
                      And I think in most cases we can assume stable voltage in the power net, so we do not need measure voltage.

                      gohanG Offline
                      gohanG Offline
                      gohan
                      Mod
                      wrote on last edited by
                      #106

                      @kimot
                      Actually counting pulses takes advantage of the supposedly accurate measurements of the main power meter instead of making your own. In addition from a safety perspective the less people work directly with 220v, the better.
                      IMHO assuming stable voltage it's not correct as it actually fluctuates even over 20V

                      K 1 Reply Last reply
                      0
                      • gohanG gohan

                        @kimot
                        Actually counting pulses takes advantage of the supposedly accurate measurements of the main power meter instead of making your own. In addition from a safety perspective the less people work directly with 220v, the better.
                        IMHO assuming stable voltage it's not correct as it actually fluctuates even over 20V

                        K Offline
                        K Offline
                        kimot
                        wrote on last edited by
                        #107

                        @gohan
                        Yes, pulse counting is best for energy consumption ( kWh ), but is inapplicable for actual power
                        ( W ) consumption measuring.

                        gohanG 1 Reply Last reply
                        0
                        • K kimot

                          @gohan
                          Yes, pulse counting is best for energy consumption ( kWh ), but is inapplicable for actual power
                          ( W ) consumption measuring.

                          gohanG Offline
                          gohanG Offline
                          gohan
                          Mod
                          wrote on last edited by
                          #108

                          @kimot
                          It depends on the meter: the one we have have 2 LEDs one is for W and the other kWh

                          K 1 Reply Last reply
                          0
                          • gohanG gohan

                            @kimot
                            It depends on the meter: the one we have have 2 LEDs one is for W and the other kWh

                            K Offline
                            K Offline
                            kimot
                            wrote on last edited by
                            #109

                            @gohan
                            Can you describe function of LED for watt metering, please?
                            I hear about this first time, so I am interested.

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

                              Sorry i messed up the units, the first LED is 1 pulse for 1 Wh the other measures VARh

                              K 1 Reply Last reply
                              0
                              • gohanG gohan

                                Sorry i messed up the units, the first LED is 1 pulse for 1 Wh the other measures VARh

                                K Offline
                                K Offline
                                kimot
                                wrote on last edited by
                                #111

                                @gohan
                                Thanks for info.

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


                                14

                                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