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. Need settling time for sct-013-030 (Used w/Nodemcu)

Need settling time for sct-013-030 (Used w/Nodemcu)

Scheduled Pinned Locked Moved Troubleshooting
nodemcusct-013
2 Posts 2 Posters 521 Views 2 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.
  • G Offline
    G Offline
    Goddur
    wrote on last edited by
    #1

    My project involves sensing the current on my washing machine (115VAC). If statements will check for zero amps and 2.5 amps or greater up to 30 amps. Unfortunately during power-up or reset the com port displays some garbage current reading and need to figure out how to allow the readings to settle to close to zero before continuing to on. Here are the initial power-up or reset problematic reading:
    Current ON
    75.01
    Current ON
    16.88
    Current ON
    3.98

    After this settles the reading start to report steady current reading. The only problem if the current does not settle out close to zero from the start it will cause false "IF" statement triggers.

    Here are the results after the current settles out. I turn the load on and off to show the current reading.

    Current ON
    2.51
    Current ON
    2.55
    Current ON
    2.52
    Current ON
    2.50
    Current ON
    2.55
    Current ON
    2.40
    No Current
    0.17
    No Current
    0.04

    Here is the unfinished code.
    https://pastebin.com/kDjx5zQM

    YveauxY 1 Reply Last reply
    0
    • G Goddur

      My project involves sensing the current on my washing machine (115VAC). If statements will check for zero amps and 2.5 amps or greater up to 30 amps. Unfortunately during power-up or reset the com port displays some garbage current reading and need to figure out how to allow the readings to settle to close to zero before continuing to on. Here are the initial power-up or reset problematic reading:
      Current ON
      75.01
      Current ON
      16.88
      Current ON
      3.98

      After this settles the reading start to report steady current reading. The only problem if the current does not settle out close to zero from the start it will cause false "IF" statement triggers.

      Here are the results after the current settles out. I turn the load on and off to show the current reading.

      Current ON
      2.51
      Current ON
      2.55
      Current ON
      2.52
      Current ON
      2.50
      Current ON
      2.55
      Current ON
      2.40
      No Current
      0.17
      No Current
      0.04

      Here is the unfinished code.
      https://pastebin.com/kDjx5zQM

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

      @goddur Hi, and welcome to the forum!
      So what exactly is your question/problem?

      If it is the time until you get a stable reading after reset of the Arduino, you could just count the time until you get a stable reading.
      Then include this delay after startup before reporting the first value and you're done.
      Something like:

      static int startupCycles = 10;   // 10 seconds initial startup delay
      void loop()
      {
         delay(1000);
         Irms = emon1.calcIrms(1480);  // Calculate Irms only
       
         if (startupCycles)
         {
           --startupCycles;
           return;
         }
      
         if (Irms < .2)
         {
            // your original code...
         }
      }
      

      http://yveaux.blogspot.nl

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


      15

      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