Skip to content
  • 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-030 to measure watt
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

SCT-013-030 to measure watt

Scheduled Pinned Locked Moved Hardware
12 Posts 5 Posters 23.2k Views 6 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.
  • TmasterT Offline
    TmasterT Offline
    Tmaster
    wrote on last edited by Tmaster
    #3

    for the SCT-013-000(100A) ,what differ? just the calibration value?

    i'm a arduino fan .Even sometimes don't undestanding how to use it :P

    1 Reply Last reply
    0
    • FleischtorteF Offline
      FleischtorteF Offline
      Fleischtorte
      wrote on last edited by
      #4

      Hi Tmaster,

      the SCT-013-030 have an build in burden, the SCT-013-000 dont have one. So you need to calculate the right burden and set the right calibration value (see https://openenergymonitor.org/emon/buildingblocks/how-to-build-an-arduino-energy-monitor-measuring-current-only)

      1 Reply Last reply
      1
      • dbemowskD Offline
        dbemowskD Offline
        dbemowsk
        wrote on last edited by dbemowsk
        #5

        So I have a question on this. I have a couple of the SCT-013-050 sensors, but plan on purchasing some of the SCT-013-000 sensors as I will need to read higher amperage from my incoming mains lines. The SCT-013-030 (and I think the SCT-013-050) contain the burden resistor. The open energy monitor project says to choose the burden resistor based on the voltage that you are running the arduino at (3.3 or 5 volts) . My question is the ones that have the burden resistor built in, what voltage is it designed to run at?

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        Talat KeleşT 1 Reply Last reply
        0
        • dbemowskD dbemowsk

          So I have a question on this. I have a couple of the SCT-013-050 sensors, but plan on purchasing some of the SCT-013-000 sensors as I will need to read higher amperage from my incoming mains lines. The SCT-013-030 (and I think the SCT-013-050) contain the burden resistor. The open energy monitor project says to choose the burden resistor based on the voltage that you are running the arduino at (3.3 or 5 volts) . My question is the ones that have the burden resistor built in, what voltage is it designed to run at?

          Talat KeleşT Offline
          Talat KeleşT Offline
          Talat Keleş
          wrote on last edited by Talat Keleş
          #6

          @dbemowsk
          Short answer: Built-in burden versions output 1V for rated current. Therefore 030 version has 1V for 30A, and 050 has 1V for 50A current. Either 3.3 or 5V supply, 1Vrms swing is almost in ADC range. So you can use 1V output types in any system. Just adjust the calibration constant in sketch.

          Long answer: SCT-013-000 version user-selected burden let you control voltage output, so you can have i.e. 2.5Vp-p output for a 5V system or 1.65Vp-p for a 3.3V system to fully utilize ADC range.

          Let's assume you select a burden for 1Vrms (±1.707 Vp-p) @50A (R=~28,28ohm) which will be identical to a 050 model, however selecting a burden for 1.76 Vrms (±2,49Vp-p)@50A will have better resolution (mV per ADC step) in a 5V system.

          Ideal value calculation is stated as: Burden Resistor (ohms) = (AREF * CT TURNS) / (2√2 * max primary current) So, ~68 ohm will use whole 0-5V range (±2,49Vp-p) OR ~47 ohm in 0-3.3V (±1,66Vp-p) range and will have best resolution.

          dbemowskD 1 Reply Last reply
          2
          • Talat KeleşT Talat Keleş

            @dbemowsk
            Short answer: Built-in burden versions output 1V for rated current. Therefore 030 version has 1V for 30A, and 050 has 1V for 50A current. Either 3.3 or 5V supply, 1Vrms swing is almost in ADC range. So you can use 1V output types in any system. Just adjust the calibration constant in sketch.

            Long answer: SCT-013-000 version user-selected burden let you control voltage output, so you can have i.e. 2.5Vp-p output for a 5V system or 1.65Vp-p for a 3.3V system to fully utilize ADC range.

            Let's assume you select a burden for 1Vrms (±1.707 Vp-p) @50A (R=~28,28ohm) which will be identical to a 050 model, however selecting a burden for 1.76 Vrms (±2,49Vp-p)@50A will have better resolution (mV per ADC step) in a 5V system.

            Ideal value calculation is stated as: Burden Resistor (ohms) = (AREF * CT TURNS) / (2√2 * max primary current) So, ~68 ohm will use whole 0-5V range (±2,49Vp-p) OR ~47 ohm in 0-3.3V (±1,66Vp-p) range and will have best resolution.

            dbemowskD Offline
            dbemowskD Offline
            dbemowsk
            wrote on last edited by
            #7

            @Talat-Keleş Thanks for the response. Now that I look at the case of the CT, I see that it says 1V. I am a bit stumpped on how to adjust the sketch to measure the 0.5v p-p rather than the 2.5v p-p that it uses in the sketch.

            Also, I am a bit confused on the calibration value (111.1) in this line:

            emon1.current(1, 111.1);             // Current: input pin, calibration.
            

            My assumption would be that that is the actual incoming voltage for it to use in calculating the current. Is this correct? If this is the case, would it be possible to use a transformer say from an old wall wart that would take the line voltage and bring it down to say 6 - 12 volts and read that somehow on another analog pin to get a more exact value for the calibration?

            Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
            Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

            Talat KeleşT 1 Reply Last reply
            0
            • dbemowskD dbemowsk

              @Talat-Keleş Thanks for the response. Now that I look at the case of the CT, I see that it says 1V. I am a bit stumpped on how to adjust the sketch to measure the 0.5v p-p rather than the 2.5v p-p that it uses in the sketch.

              Also, I am a bit confused on the calibration value (111.1) in this line:

              emon1.current(1, 111.1);             // Current: input pin, calibration.
              

              My assumption would be that that is the actual incoming voltage for it to use in calculating the current. Is this correct? If this is the case, would it be possible to use a transformer say from an old wall wart that would take the line voltage and bring it down to say 6 - 12 volts and read that somehow on another analog pin to get a more exact value for the calibration?

              Talat KeleşT Offline
              Talat KeleşT Offline
              Talat Keleş
              wrote on last edited by Talat Keleş
              #8

              @dbemowsk said:

              Now that I look at the case of the CT, I see that it says 1V. I am a bit stumpped on how to adjust the sketch to measure the 0.5v p-p rather than the 2.5v p-p that it uses in the sketch.

              Your CT gives 1V already, there is nothing to change in sketch. That output is physical voltage on Analog pin. Just need to adjust calibration value to read correct Amps as:

              Also, I am a bit confused on the calibration value (111.1) in this line:

              emon1.current(1, 111.1);             // Current: input pin, calibration.
              

              Since you own 050

              emon1.current(1, 50);
              

              as calibration constant. All above calculations and given calibration values on web for 000 model.

              My assumption would be that that is the actual incoming voltage for it to use in calculating the current. Is this correct? If this is the case, would it be possible to use a transformer say from an old wall wart that would take the line voltage and bring it down to say 6 - 12 volts and read that somehow on another analog pin to get a more exact value for the calibration?

              I didn't clearly understand what you want to achieve. For current calibration you don't need voltage values. If you take apart a wall-wart you can use that for calculating real power, power factor etc.

              dbemowskD 1 Reply Last reply
              0
              • Talat KeleşT Talat Keleş

                @dbemowsk said:

                Now that I look at the case of the CT, I see that it says 1V. I am a bit stumpped on how to adjust the sketch to measure the 0.5v p-p rather than the 2.5v p-p that it uses in the sketch.

                Your CT gives 1V already, there is nothing to change in sketch. That output is physical voltage on Analog pin. Just need to adjust calibration value to read correct Amps as:

                Also, I am a bit confused on the calibration value (111.1) in this line:

                emon1.current(1, 111.1);             // Current: input pin, calibration.
                

                Since you own 050

                emon1.current(1, 50);
                

                as calibration constant. All above calculations and given calibration values on web for 000 model.

                My assumption would be that that is the actual incoming voltage for it to use in calculating the current. Is this correct? If this is the case, would it be possible to use a transformer say from an old wall wart that would take the line voltage and bring it down to say 6 - 12 volts and read that somehow on another analog pin to get a more exact value for the calibration?

                I didn't clearly understand what you want to achieve. For current calibration you don't need voltage values. If you take apart a wall-wart you can use that for calculating real power, power factor etc.

                dbemowskD Offline
                dbemowskD Offline
                dbemowsk
                wrote on last edited by
                #9

                @Talat Keleş said:

                For current calibration you don't need voltage values.

                That's where I was confused. I thought that was a voltage calibration value for calculating watts using the formula:

                P(watts) = I(Current) X E(Voltage)
                

                What I was talking about was getting an accurate wattage measurement by more precisely calculating the voltage using the transformer method. Now that I look at the sketch closer, that would be more for this line of code:

                Serial.print(Irms*230.0);
                

                Where you would use the transformer to more precisely calculate the voltage to use in the sketch. In the example sketch they use an estimated value of 230.0.

                Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                Talat KeleşT 1 Reply Last reply
                0
                • dbemowskD dbemowsk

                  @Talat Keleş said:

                  For current calibration you don't need voltage values.

                  That's where I was confused. I thought that was a voltage calibration value for calculating watts using the formula:

                  P(watts) = I(Current) X E(Voltage)
                  

                  What I was talking about was getting an accurate wattage measurement by more precisely calculating the voltage using the transformer method. Now that I look at the sketch closer, that would be more for this line of code:

                  Serial.print(Irms*230.0);
                  

                  Where you would use the transformer to more precisely calculate the voltage to use in the sketch. In the example sketch they use an estimated value of 230.0.

                  Talat KeleşT Offline
                  Talat KeleşT Offline
                  Talat Keleş
                  wrote on last edited by
                  #10

                  @dbemowsk
                  For precise wattage measurement you need transformer as you think. Irms*230.0 is just a rough estimation. You can measure outlet voltage and use that value in sketch for better estimation.

                  With transformer you use calcVI() instead of Irms*230. i.e below sketch, that measure both I and V, and calculate power (watt and VA, and other AC related stuff):

                  #include "EmonLib.h"              // Include Emon Library
                  EnergyMonitor emon1;              // Create an instance
                  
                  void setup()
                  {  
                    Serial.begin(9600);
                    
                    emon1.voltage(2, 234.26, 1.7);  // Voltage: input pin, calibration, phase_shift
                    emon1.current(1, 111.1);        // Current: input pin, calibration.
                  }
                  
                  void loop()
                  {
                    emon1.calcVI(20,2000);          // Calculate all. No.of crossings, time-out
                    emon1.serialprint();            // Print out all variables
                  }
                  
                  dbemowskD 1 Reply Last reply
                  0
                  • Talat KeleşT Talat Keleş

                    @dbemowsk
                    For precise wattage measurement you need transformer as you think. Irms*230.0 is just a rough estimation. You can measure outlet voltage and use that value in sketch for better estimation.

                    With transformer you use calcVI() instead of Irms*230. i.e below sketch, that measure both I and V, and calculate power (watt and VA, and other AC related stuff):

                    #include "EmonLib.h"              // Include Emon Library
                    EnergyMonitor emon1;              // Create an instance
                    
                    void setup()
                    {  
                      Serial.begin(9600);
                      
                      emon1.voltage(2, 234.26, 1.7);  // Voltage: input pin, calibration, phase_shift
                      emon1.current(1, 111.1);        // Current: input pin, calibration.
                    }
                    
                    void loop()
                    {
                      emon1.calcVI(20,2000);          // Calculate all. No.of crossings, time-out
                      emon1.serialprint();            // Print out all variables
                    }
                    
                    dbemowskD Offline
                    dbemowskD Offline
                    dbemowsk
                    wrote on last edited by
                    #11

                    @Talat-Keleş Perfect. Thanks for all your help.

                    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                    1 Reply Last reply
                    0
                    • dbemowskD Offline
                      dbemowskD Offline
                      dbemowsk
                      wrote on last edited by
                      #12

                      So my current transformers just came. I would like to build the circuit for this and I have one question. For the burden resistor and the voltage divider resistors, can I use 1/8 watt resistors or would I be better with 1/4 watt or higher?

                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

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


                      8

                      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
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular