Measuring AC Current with Arduino

preview_player
Показать описание
#ACanalysis #WithMe #Measurement #Arduino
Hello and welcome to another video. Today we will be learning how to measure AC current using the Arduino system. We will be using CT (Current Transformers) and learning how they function as well as writing the arduino code to calculate the AC current.

Links:

Code Link

Arduino Leonardo

ADS1115 16-bit ADC Breakout Board

JANSANE SCT-013-000 100A

uxcell SCT-013-020 20A 1V

ZIYUN in (30A MAX) Split Core Current Transformer

Information site

Adafruit site

-----------------------------------------------------------------------------------------------------------

Try Amazon Prime 30-Days

Support the Channel and Become a Patron

Check out the Channel Store

Checkout the Forum!!

Support the channel tip with bitcoins
Address: 1MvcZHRbDm9czS8s776iutBBPJ39K4PEHh

Follow me on Instructables

Follow me on Facebook

Follow me on Twitter

T-Shirts
Рекомендации по теме
Комментарии
Автор

This works really well Had 2 add 2 4.7uf caps to a0 and a1 to gnd to stabilize readings tweaked factor to dial it in and scales through the range. tested on 5amp sct013 and 20 sct013

bostonmechanical
Автор

Thanks you so much for posting this. The RMS code at the end is what I've been needing.

neoc
Автор

Hi, thanks for sharing your knowledge, it helped me a lot. Could you please tell, how one can recognize which split core current transformer does have a burden resistor built in and which one doesn't?

mumbucorporation
Автор

Excellent video. I have this working with an uno r3 arduino and a sct013-030 attached to an ads1115. I also have an oled on a different pair of i2c lines.

duglmac
Автор

Great video. Really good job explaining this from a high level down to actual hardware and software details.

brad
Автор

SDA + SCL is IC2 not SPY. Really good video btw.

stormbytes
Автор

As it’s communication is via i2C you could use it on a Raspberry Pi too

martinparker
Автор

Hello,
I don't understand why it works, the value is completely wrong, but my goal is to compare the consumption of my freezer when it works normally and when it doesn't (too much consumption for example when the door is no correctly closed and not enough if the motor has a problem). So I can detect a problem before the temperature drops.
So thank you 🙂

PS : the Adafruit_ADS1X15.h calls for the library Adafruit_I2CDevice.h. If you don't have the second, you may have an error compilation error.

petittoto
Автор

thanks. helping me improve my own projects and come up with new ideas

xAudio
Автор

Well done video! I am building a demand controller for my Phoenix-based home. I am new to Arduino and have been struggling with getting it to read a current transformer. Your video was, simple and straightforward. I copied the software and everything came alive 1st time.
My question is my current transformers are installed on L1 & Line 2 immediately after the primary 200 A breaker.
They are 100/5 (100-amp primary with 5-amp secondary). I therefore changed line 7 "FACTOR" from 20 to 100.
I am measuring the current on my 5-ton AC unit which draws 16.5 A @ 239 volts.
My reading from the software shows 3.9 Amps and should be about 4 times that.
Can you recommend the best way I should adjust the calibration within the software?

LarryGuinta
Автор

I'm doing alright thanks for asking

muhammadtahakhan
Автор

I get your use of the ADC1115, and I do like that option if I ever needed the accuracy. I'm just building a servo ball valve for a dust collection system I'm making, and simply need to know if the machine has turned on or not. If it is turned on, then I would activate the series of states to put the servo's in (aka what sequence of opening and closing the various servo powered ball valves, aka "efficient blast gate"). In this scenario, what is the best way to run 12 or so of the voltage from these CT's straight into the Arduino? I currently have momentary switches for each machine, that I just push the button to activate that buttons sequence, and for the switch, I just run them into the pwm pins 2-13 (I'm using an actual pwm module, a PCA9685 variant with separate switched power to power and control all of the servo's). Would each of these CT's go into one of the Analog ports or one of the digital ports (pwm), or can this not be done? Too bad they don't just have a board that accepts 16 separate inputs and then just uses the clock and data ports like the 9685 does. Otherwise, it is looking like I will need to get at least one of these ADC1115 modules per every 2 CT (or 6-7 of them in total).

HangsFun
Автор

Thanks for the post and detailed explanation, Can you please post idea of energy meter based on Arduino/ESP32 ?

TheRajeev
Автор

I have a big rpm autometer lying around. I would like to hang it at the wall and watch the needle dancing once my amplifier sucks amps to produce a bass....
Would you like to make a video about such a project???

Gallardo
Автор

Hi thanks for a very informative video. If the voltage across the 20A current transformer is 0.5V ac can you say that the current flowing is 10A?

hnag
Автор

Why do you use a multiplier value of 0.00005? I think you should use (0.00003125) since we are using ADS1115 and not ADS1015.

michaelkimani
Автор

how can you measure the direction of the ac current? i would like to use it to measure if i'm using from the grid or delivering back to the grid on sunny days (solar panels).

jazekerxx
Автор

Thanks. Being SCT-013-000 is for 100A, what happens if it goes over? does it melt? I actually don't care about the actual value, just if current > 0.0 amp, we have power. Or would you try to measure the 220v?

JeffZiegler
Автор

Awesome, How do we connected Current transformer (CT) more than two unit, for example until 40 CT to arduino? please give me your solution, thanks

spanyolnauli
Автор

Thanks for this. Definitely helped me out.

MrPaulyoutoobing