Measure AC Voltage with ESP8266 12E + ZMPT101B | App Inventor | Adafruit IO MQTT

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 18

  • @udeepakavindu3759
    @udeepakavindu3759 4 роки тому +3

    Can you make a video to measure power factor using the voltage and current waveform time shift

  • @andre0baskin
    @andre0baskin 4 роки тому

    Should I see a relatively regular sine wave? The sine wave I am seeing is jagged at the top and bottom even after I have adjusted the sensor. The other thing is that my AC voltage is bouncing around over a 5v range when I measure it on the meter.

    • @SurtrTech
      @SurtrTech  4 роки тому

      Hello, you should be able to see the shape pretty much like the video (I had sinewave), and it should look like your signal shape, the potentiometer gives you this ability just keep turning it while checking the signal shape.
      Sorry, I didn't understand the last part, where did you probe with the meter? Is it on the output of the sensor? It will give you wrong measure because there's an offset.
      Also I'm powering everything with 3.3VDC, so it will never exceed it, using 5V will damage your board.

    • @andre0baskin
      @andre0baskin 4 роки тому

      @@SurtrTech Thanks, I'll keep at it with the potentiometer. As for the last part, I am referring to the incoming AC voltage. It is not a constant voltage but varies over about a 5v range like 185 to 190 for example.

    • @SurtrTech
      @SurtrTech  4 роки тому

      @@andre0baskin Using the meter? Better use some good quality ones and makes sure they're TRMS, if using the sensor with ESP8266, it could have some calibration issues.

  • @dafpnp
    @dafpnp 4 роки тому

    Why does serial plotter start to show sine wave when keeping a minimum of 100 milli sec delay? If the delay is any lesser, sine wave is not shown.

    • @SurtrTech
      @SurtrTech  4 роки тому +1

      It's just a matter of signals synchronization, the signal is 50Hz, it's pretty high to be displayed clearly at real time, adding a delay appeared to give a clear shape.

    • @dafpnp
      @dafpnp 4 роки тому +1

      @@SurtrTech right. I started from 10 ms delay and upto 95 ms. The waveform just remained the same jittery. Right at the inflection point of 100ms, it started to show sinusoidal wf.

    • @dafpnp
      @dafpnp 4 роки тому

      Can you do a video on filters.h
      I could tune the code and get the voltage levels correct, but I couldn't quite understand what the filter.h does. How does it find the RMS voltage?

    • @SurtrTech
      @SurtrTech  4 роки тому

      If you want to know how the library works please check the filters library especially the "RunningStatistics.cpp" file, you'll find all the functions used to measure the RMS, it uses the "Sigma" and the "Average value", those are statistics stuff, you'll find courses about them... it's a bit long to explain.

  • @impulse_ger
    @impulse_ger 4 роки тому

    Is there a module to measure up to 50v dc?

    • @SurtrTech
      @SurtrTech  4 роки тому +1

      There are other sensors for the DC ... I think most of them work up to 30V, but you can add a voltage divider... This one won't work, it has a transformer at the input.

  • @pratikchaudhari9821
    @pratikchaudhari9821 4 роки тому

    How to Calibrations ZMCT103C current sensor

    • @SurtrTech
      @SurtrTech  4 роки тому

      I used ACS712 before, the exact same thing as this, I don't know about ZMCT103C, you can always try.

    • @pratikchaudhari9821
      @pratikchaudhari9821 4 роки тому

      @@SurtrTechhow to use ACS712 current sensor in 440V. It's working 440V

    • @SurtrTech
      @SurtrTech  4 роки тому

      Better learn the difference between voltage and current before you proceed to any of this...

    • @pratikchaudhari9821
      @pratikchaudhari9821 4 роки тому

      @@SurtrTech okay thank you.

  • @SurtrTech
    @SurtrTech  4 роки тому +1

    Hi, all what you need is in the links below the video, including the app ".apk" and its ".aia" files. Let me know if tutorials about Adafruit MQTT / MIT App Inventor are needed.
    Here are the video Timestamps:
    0:00 General talk
    2:53 First Code/Signal visualization
    3:35 First calibration
    5:45 The base code (Important for all future applications)
    8:00 Second calibration (Slope and Intercept explication)
    11:10 The base code in use
    12:17 Adafruit IO MQTT Code
    14:42 Adafruit IO MQTT Code in use
    15:58 Code to use with local App Inventor App
    17:23 Code to use with local App and the App in Test