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. SCT-013-050 measuring current and appearance power

SCT-013-050 measuring current and appearance power

Scheduled Pinned Locked Moved Hardware
8 Posts 5 Posters 3.8k Views 5 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.
  • O Offline
    O Offline
    Omer Faruk Zorlu
    wrote on last edited by Omer Faruk Zorlu
    #1

    Hi, i am trying to measure current and appearance power via SCT-013-050. Used diagram is below.

    alt text

    I used this without a burden because SCT-013-050 has a build in one(am i wrong?). Capacitor is 100uF. Resistors are 22k. Used sketch is below.

    #include "EmonLib.h"                   // Include Emon Library
    EnergyMonitor emon1;                   // Create an instance
    
    void setup()
    {  
      Serial.begin(9600);
      
      emon1.current(A0, 50);             // Current: input pin, calibration.
    }
    
    void loop()
    {
      double Irms = emon1.calcIrms(1480);  // Calculate Irms only
      
      Serial.print(Irms*230.0);	       // Apparent power
      Serial.print(" ");
      Serial.println(Irms);		       // Irms
    }
    

    I am using NodeMCU and sending sensor value to iot hub. Measured sensor value is not stable and depends on power source. If i use a usb sockets on my mac, sensor value transformed in appearance(value*230) is around 80-120(I am measuring current of mac pro) but if i use an charging usb adaptor to power NodeMCU the sensor value is around 500-650.

    Tried to disconnect SCT-013-050 from power cable the sensor value is nearly zero on mac's usb power supply. It seems correctly working. Disconnected sensor value via usb adaptor is nearly 500 (appearance power).

    I am really stucked. How to solve this problem?

    1 Reply Last reply
    0
    • O Offline
      O Offline
      Omer Faruk Zorlu
      wrote on last edited by
      #2

      Hi guys, i really need a help. Anyone?

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

        Are you measuring current on the mains?

        1 Reply Last reply
        0
        • O Offline
          O Offline
          Omer Faruk Zorlu
          wrote on last edited by
          #4

          Yes, actually i plan to measure the coffe machine's current.

          YveauxY 1 Reply Last reply
          0
          • O Omer Faruk Zorlu

            Yes, actually i plan to measure the coffe machine's current.

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #5

            @omer-faruk-zorlu did you post your questions in the openenergymonitor forum? That's where your library sends to come from.
            They're probably more experienced solving these kind of issues.

            http://yveaux.blogspot.nl

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

              I'd consider also a sonoff pow for that purpose

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kimot
                wrote on last edited by kimot
                #7

                If you plan measure current only and not real power at every ms, cos fi ( power factor )etc., I suggest convert signal from CT into DC voltage and normally measure it by ADC.

                https://electronics.stackexchange.com/questions/276437/how-to-convert-current-obtained-from-ct-to-precise-voltage-applied-as-input-to-a

                1 Reply Last reply
                0
                • JohnRobJ Offline
                  JohnRobJ Offline
                  JohnRob
                  wrote on last edited by
                  #8

                  From the website the SCT-013-050 outputs 0 to 1 volt for a current of 0 to 50 amps.

                  I agree the "burden" resistor is built in on this module.

                  Please verify you are only passing one of the coffeemaker wires through the sensor. If you pass the whole cable through the sensor you will get no output voltage from the sensor.

                  A typical coffee maker requires ~1000 watts. At 230 vac this is ~4 amps. So the output of the current sensor should be about +/- 4/50*1 = 0.08 volts. This means the arduino has to measure readings from 0 to about 0.11 volts then calculate the RMS. doable but the readings are getting somewhat small to be stable.

                  I would suggest:

                  1. measure the sensor output with a multimeter if you have one.

                  2. Change the reference of A/D converter on the Arduino from the default to the 1.1V internal reference. Not sure the code but you should be able to find it easy enough.

                  3. you can increase the output of the sensor by passing the coffee maker wire through multiple times. For each time the wire goes through the sensor the sensitivity is increased by that number.
                    for example if you pass the wire through the sensor 3 times. The output becomes 0 to 1 volt for 0 to 50/3 amps .

                  4. Add a 0.1µF Capacitor across the sensor (where the burden resistor is shown on your diagram. This will remove some of the noise that exists on all AC lines.

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


                  18

                  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