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. Troubleshooting
  3. EnergyMeterPulseSensor reporting incorrect power draw?

EnergyMeterPulseSensor reporting incorrect power draw?

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 2 Posters 2.2k Views 1 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.
  • T Offline
    T Offline
    twosh
    wrote on last edited by
    #1

    Hi,

    I'm using the unmodified code from EnergyMeterPulseSensor.ino (as my power meeter uses 1000 imp / kWh) with a Nano v3 (clone) and a LM393 Light Sensor. The Nano is powered via the USB-port from a 230 V wall plug, the radio is on the Nano's 3v3 pin, and the light sensor on the 5v pin. I'm using a Vera Edge UI7 as controller and having a Nano V3 (clone) as a serial gateway.

    The issue I'm having is that the reported current wattage as well as the cumulative kWh is way of. I'm currently drawing 150 W +/- 5 W but the sensor is showing 615 watts current draw and within an hour the kWh has risen to almost 60 kWh as you can see below:

    powerDraw.png

    What could be the cause for this? Should I calibrate the sensor or something? Any suggestions at all are welcome! :)

    Thanks,
    Tim

    AWIA 1 Reply Last reply
    0
    • T twosh

      Hi,

      I'm using the unmodified code from EnergyMeterPulseSensor.ino (as my power meeter uses 1000 imp / kWh) with a Nano v3 (clone) and a LM393 Light Sensor. The Nano is powered via the USB-port from a 230 V wall plug, the radio is on the Nano's 3v3 pin, and the light sensor on the 5v pin. I'm using a Vera Edge UI7 as controller and having a Nano V3 (clone) as a serial gateway.

      The issue I'm having is that the reported current wattage as well as the cumulative kWh is way of. I'm currently drawing 150 W +/- 5 W but the sensor is showing 615 watts current draw and within an hour the kWh has risen to almost 60 kWh as you can see below:

      powerDraw.png

      What could be the cause for this? Should I calibrate the sensor or something? Any suggestions at all are welcome! :)

      Thanks,
      Tim

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

      @twosh Are you able to measure the pulse output from the light sensor to see if you the right pulse rate comes in?

      T 1 Reply Last reply
      0
      • AWIA AWI

        @twosh Are you able to measure the pulse output from the light sensor to see if you the right pulse rate comes in?

        T Offline
        T Offline
        twosh
        wrote on last edited by
        #3

        @AWI said:

        @twosh Are you able to measure the pulse output from the light sensor to see if you the right pulse rate comes in?

        Thanks for the fast reply! I'm sorry, but I'm not sure how I would do that?

        AWIA 1 Reply Last reply
        0
        • T twosh

          @AWI said:

          @twosh Are you able to measure the pulse output from the light sensor to see if you the right pulse rate comes in?

          Thanks for the fast reply! I'm sorry, but I'm not sure how I would do that?

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

          @twosh with a volt meter or by sending the pulse to serial print and looking at the serial output.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            twosh
            wrote on last edited by
            #5

            @AWI Ok! I'll dig out my volt meter and try. I guess I'll measure between the digital out and ground?

            AWIA 1 Reply Last reply
            0
            • T twosh

              @AWI Ok! I'll dig out my volt meter and try. I guess I'll measure between the digital out and ground?

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

              @twosh sounds fine if you mean the digital out of the light sensor (or in of the Arduino) :smiley:

              1 Reply Last reply
              0
              • T Offline
                T Offline
                twosh
                wrote on last edited by
                #7

                Alright - as usual, the code and hardware is fine -> stupid user error! :P

                @AWI The pulses were indeed not reported as expected - thanks for putting me on the right track! The LM393 is directional and I had to bend it toward the power meter's light - I had it basically 90 degrees off (as it came in the mail). That done the values are absolutely perfect.

                Big thanks to @AWI !

                AWIA 1 Reply Last reply
                0
                • T twosh

                  Alright - as usual, the code and hardware is fine -> stupid user error! :P

                  @AWI The pulses were indeed not reported as expected - thanks for putting me on the right track! The LM393 is directional and I had to bend it toward the power meter's light - I had it basically 90 degrees off (as it came in the mail). That done the values are absolutely perfect.

                  Big thanks to @AWI !

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

                  @twosh Glad it helped.. .I only learn the hard way myself

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


                  13

                  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