Different Ways for Measuring Current With Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 83

  • @thorntontarr2894
    @thorntontarr2894 ปีที่แล้ว +5

    The format of this tutorial with the movable cards was clever and clear. Well done.

  • @davy822
    @davy822 ปีที่แล้ว +12

    The DC motor is an inductive load, so when the motor stops the field collapse and a big negative voltage spike arrives. That could be dangerous for the analog pins in the arduino, if u try to read the voltage directly (first example in your video)

    • @davy822
      @davy822 ปีที่แล้ว

      most of the time, yes @pohboonpin123

  • @lucianbetke
    @lucianbetke ปีที่แล้ว +2

    Very good foundations that are explained. This time subtitles are included, which is particularly good!

  • @kingofcastlechaos
    @kingofcastlechaos ปีที่แล้ว

    Love the list of things you can measure at 6:03. I guess they mean you can measure welding machines ONCE.

  • @axiagame
    @axiagame ปีที่แล้ว +3

    5:05 Usually, the solution is to use an OpAmp to amplify the voltage drop, and thus use the full potential of the ADC you will use. Plus, as the input of the OpAmp is ideally isolated, it won't take any current and will be consequently less invasive.

  • @Sysshad
    @Sysshad 7 หลายเดือนก่อน

    A motor is not only a resistance load, its also inductive load.
    And to measure inductive loads is much more tricikier and needs a very high sampling rate.
    And as earlier comments has shown, its 5V/1024 and not 5V/1023, and using internal reference in the MCU, or even better a LDO external IC (or modules as you show) will give a better result with less noice. Also the layout of GND traces are important, sometimes GND (due to trace length and other power consumers) is not 0.0V, so it can offset the measuring aswell. So it can be tricky to get really good measuring results.
    Also high bit ADC like 16bits or more sees ALOT of noice on the lower bits, so a good hardware design is very important.
    And another thing, the millsecond you turn off the power to the motor, it will produce a reversed voltage back along the lines. This needs a diodes or capacitors to protect the MCU or the MCU can be damaged :P

  • @peterf983
    @peterf983 ปีที่แล้ว +15

    Great job! Next time you should consider using internal voltage reference of Arduino ADC (1,1V for Atmega 328P) in some scenarios. This can increase measurement accuracy about 4 times without any hardware.

    • @osamarabee3927
      @osamarabee3927 ปีที่แล้ว

      can you please send me a tutorial of that please

    • @peterf983
      @peterf983 ปีที่แล้ว

      @@osamarabee3927 th-cam.com/video/ettV5zorZfQ/w-d-xo.html

  • @nashaut7635
    @nashaut7635 ปีที่แล้ว +2

    Great tutorial as always. Just note that your ADC conversion formula is incorrect. It should be V = Vref x ADC / 2^N and *not* V = Vref x ADC / (2^N - 1). So it's 1024 for 10 bit ADC instead of 1023. Check the ATmega328 datasheet (see "Conversion results") for more details.

  • @JonathanDeWitt1988
    @JonathanDeWitt1988 ปีที่แล้ว +2

    Another great video Andrei. Very informative. I'm sure this will be useful in future projects. Thank you for taking the time to create and share it.

  • @pesauer
    @pesauer หลายเดือนก่อน

    I found this video really useful -- very well presented, and just the right level to get me started.

  • @pakfones
    @pakfones 4 หลายเดือนก่อน

    Hi, thanks for the valuable information provided in this video. What you suggest if we need to measure current usage for a Water Pump? It has 1HP to 1.5 HP motors taking 5 to 7 ampares.
    1- ACS712ELCTR-20A-T
    2- ACS712ELCTR-05B-T
    3- (CT) Current transformer

  • @dimitrioskalfakis
    @dimitrioskalfakis ปีที่แล้ว

    comprehensive range of options and useful presentation.

  • @mahinvikeshn.k2249
    @mahinvikeshn.k2249 ปีที่แล้ว +1

    which one is a better option to measure AC current?

  • @Sekir80
    @Sekir80 ปีที่แล้ว

    One thing I would add: the INA219 "only" has a 12 bit ADC. If you want more precision use the INA226, it has 16 bit ADC. You can't set different gains on the 226, though. Your choice!

  • @umer1059
    @umer1059 2 หลายเดือนก่อน

    This video is very use full for me.
    Thanks

  • @ShilpaGireesh
    @ShilpaGireesh 8 หลายเดือนก่อน

    Hi, Could you recommend the above sensor for measuring a current less than 0.9mA from a board? My project is based on Arduino.

  • @sijo2084
    @sijo2084 ปีที่แล้ว +1

    for 230V ac 50Hz . Any CT & PT based energy meter chip is available in low cost?

  • @TobyRobb
    @TobyRobb ปีที่แล้ว

    Great summary. I have used a resistor divider to increase the voltage range i can measure. I'm not sure but can't you reference the ADC to a higher voltage by using the analogue ground pin as well? I have always used the hall effect device for DC current and a CT for AC current.

  • @supreetyadav5021
    @supreetyadav5021 ปีที่แล้ว

    I remove the ina219 resistor and used an external resistor instead and read current of a hundred amps no problem, because of the PGA the values are very accurate even at low current

  • @bLaaSsFTW
    @bLaaSsFTW 5 หลายเดือนก่อน

    Amazing explanation of them all. Thank you very very much!! :D

  • @chrob5758
    @chrob5758 6 หลายเดือนก่อน

    Wich module can I use to measure current with a node mcu and a solar panel 12v 10a ? Thanks

  • @HVAC_Tips_Tricks_Calcs
    @HVAC_Tips_Tricks_Calcs 3 หลายเดือนก่อน

    Can you do this, something similar to measure AC volts, AC milliamps?

  • @Dungnguyen-yd5or
    @Dungnguyen-yd5or ปีที่แล้ว

    I have INA219 to measure current of a device (say it something like a Chemical Capacitor that I made it myself) powered by a 12V 125A PSU. I know it is a too big amount of ampere for this sensor. Therefore I test my device with another psu that is 6v 200 A, which has a built in amp sensor and I see the current not reaching over 2A so I have some confidence to use the INA219 for my system, and the sensor burnt after 2 sec.
    Did I do sth wrong or I choose a wrong sensor for my usage? I tried the ACS712 5A but the change is not significant enough to put it in good use.

  • @Ivan.Wright
    @Ivan.Wright ปีที่แล้ว

    Perfect, I've been thinking about getting into these. Thanks!

  • @domoledlight
    @domoledlight 8 หลายเดือนก่อน

    Thanks for your very great video tuto .. I have a question about ads1115 how you can connect A0 of ads1115 directily to a 12v dc load with a shunt resistor without a resistor divider ? what i am missing

    • @ELECTRONOOBS
      @ELECTRONOOBS  8 หลายเดือนก่อน

      That's easy to explain. We only connect to the ADS1115 the voltage that dorops on the shunt resistor. Almost all the voltage drops on the motor, so the drop on the resistor is very low. Let's say we have 1A of current on a 0.1 ohms resistor. That's only a drop of 0.1V so the ADS11115 could take it. To get to 12V we would need a current of 120A which would butn the entire circuit. And to answer you about the voltage divider, well, yes we do have a divider between the shunt resistor and the resistance of the motor. In the end, the motor has its own resistance of a few ohms per winding.

    • @domoledlight
      @domoledlight 8 หลายเดือนก่อน

      Gracias hombre for your reply it's more clear last question about this particular example do you share the same ground between 12v circuit and arduino 5 dc ?

  • @jdelectron
    @jdelectron ปีที่แล้ว

    Please make a video on potentiometer method of voltage measurment with respect to meter

  • @ianlee6416
    @ianlee6416 ปีที่แล้ว

    Type of ADC will also affect the reading, especially when reading non DC

  • @6marvil
    @6marvil 4 หลายเดือนก่อน

    Such a helpful video! Thanks!

  • @samithetechsavvy6485
    @samithetechsavvy6485 5 หลายเดือนก่อน

    This is just amazing thank you very much

  • @nima_gamer_8765
    @nima_gamer_8765 5 หลายเดือนก่อน


    int shuntIN = A5;
    void setup() {
    pinMode(shuntIN, INPUT);
    Serial.begin(9600);
    }
    void loop() {
    int val = 0;
    for(int i = 0; i < 100; i++) {
    val += analogRead(shuntIN);
    delay(10);
    }
    int A_read = val / 100;
    float voltage = A_read * (5.0/1023.0);
    float current = (voltage/0.5) * 1000;
    Serial.print("Current: ");
    Serial.print(current);
    Serial.println(" mA");
    delay(200);
    }

  • @bettyw2309
    @bettyw2309 ปีที่แล้ว

    The picture of ACS712 should not have the red wire of 12V connected to it, as it is incorrect.

  • @borisjevic6338
    @borisjevic6338 ปีที่แล้ว +1

    Thank you. This episode was exactly what I needed for a project coming up. Keep up the awesome passion of yours.

  • @Electroloom
    @Electroloom ปีที่แล้ว

    Please made a same video for voltage as well

  • @Gorgonzella
    @Gorgonzella ปีที่แล้ว

    please i'm not very good in english so i can't understand the whole video i would like to know which is the best dc current sensor with an esp32 in your video and especially if the SCT013 can measure a dc current or not.

  • @TqSNv9R0iG5Ckxew
    @TqSNv9R0iG5Ckxew ปีที่แล้ว

    I didn't know these existed! Nice❤

  • @ed.puckett
    @ed.puckett ปีที่แล้ว

    Thank you, so much good information all in one place!

  • @sudheerkumar5966
    @sudheerkumar5966 ปีที่แล้ว

    Very good Job for learning
    Thanks

  • @bentsprockettech
    @bentsprockettech ปีที่แล้ว

    Awesome video man! Thanks for sharing this one with us. :)

  • @saifi1223
    @saifi1223 ปีที่แล้ว

    All in one for beginners ❤

  • @fritzdaledelossantos8328
    @fritzdaledelossantos8328 ปีที่แล้ว

    Hello why is my adafruit_ads1015 library has no such file or directory even I have already installed the library for adafruit_ads1015. please help huhu

  • @SKElectronics
    @SKElectronics ปีที่แล้ว

    looking for the electronic dc load hope that come soon.

  • @mike_van_in
    @mike_van_in ปีที่แล้ว

    Very useful video! Thanks very much!

  • @logcathdi1018
    @logcathdi1018 ปีที่แล้ว

    Much appreciation!❤

  • @petermuller608
    @petermuller608 ปีที่แล้ว

    The external ADC measurements are off by nearly 5% (320 mA vs 305 mA) how come you call it pretty decent?

  • @inventorkr1
    @inventorkr1 ปีที่แล้ว

    I like ✅

  • @djokinac
    @djokinac ปีที่แล้ว

    greeting
    I have a question about the ina3221
    can something be done and allow me to connect to an external shunt where my voltage is sometimes 35 volts
    I need to put a shunt of 50 amps, but as I said, sometimes the voltage is up to 35v
    Can something be done?
    some modification
    greetings from Serbia

  • @kosmos8460
    @kosmos8460 ปีที่แล้ว

    Супер однозначно 👍

  • @chanukagayantha
    @chanukagayantha ปีที่แล้ว

    Great video, Thanks

  • @N.g.Chanal
    @N.g.Chanal ปีที่แล้ว

    what INA19 can messure revers polarity currant?

  • @N.g.Chanal
    @N.g.Chanal ปีที่แล้ว

    what INA219 currant side is isolate ?

  • @vtbn53
    @vtbn53 ปีที่แล้ว

    Great info, thanks

  • @yifeiwang644
    @yifeiwang644 4 หลายเดือนก่อน

    Hi, I wonder where are the codes?

  • @Drxxx
    @Drxxx ปีที่แล้ว

    amazing video!

  • @ranganatennakoon
    @ranganatennakoon ปีที่แล้ว

    its very useful thanks. its great 👍

  • @muhammedenescelik9968
    @muhammedenescelik9968 2 หลายเดือนก่อน

    wholeawesome

  • @SuburbanDon
    @SuburbanDon ปีที่แล้ว

    Very interesting.

  • @suhetkumar1947
    @suhetkumar1947 3 หลายเดือนก่อน

    Waiting for STM 32 Microcontroller

  • @rezahalzd9298
    @rezahalzd9298 ปีที่แล้ว

    I need an ADC with a high sample rate (5000sps) and 16-bit resolution
    does anybody know a good adc?

  • @gforcefabi
    @gforcefabi ปีที่แล้ว

    what to use if you need to check 3 Phase 400V power?

    • @d614gakadoug9
      @d614gakadoug9 ปีที่แล้ว

      Use commercial current transformers and fully galvanically isolated voltage sensing.
      Don't even consider trying it unless you know what you are doing!

  • @vetriligamvetrilingamnadar7171
    @vetriligamvetrilingamnadar7171 ปีที่แล้ว

    Thankyou 🙏🙏

  • @dozog
    @dozog ปีที่แล้ว

    Electric engineers never seem to understand measurements.
    Showing the current (first example) as 293.26 mA. The resolution is roughly 10mA.

    • @d614gakadoug9
      @d614gakadoug9 ปีที่แล้ว

      Engineers usually understand this stuff. Hobbyists, not so much.

  • @d614gakadoug9
    @d614gakadoug9 ปีที่แล้ว

    *_Beware of the modules with the ACS series hall effect current sensors._*
    The sensors themselves have been carefully designed so that they are safe to use for AC mains current measurements. Many of the circuit boards sold on the hobby market have been designed by idiots who knew nothing about how to do it properly and in consequence the boards are unsafe, some of them grossly so.
    On every single such board I've seen the creepage distance has be seriously compromised by bad PCB design, often by somebody using "copper pour" without a clue. The low-current board shown in the video is better than some but still badly done with copper that serves no useful purpose compromising the creepage distance. I couldn't tell how well the 200A module was done. I found a photo of a different 200 board using the same sensor and on it the creepage looked OK but there was grossly unsafe clearance distance between the capacitor and the heavy copper of the sensor. These things are being designed by clueless hacks and they can put lives at risk!
    ===
    The yellow core shown in the video is powdered iron, not ferrite. The permeability is probably 75 whereas that of typical ferrites used for current sense transformers is 5000 or more.

  • @AhmadHossamMahmoud
    @AhmadHossamMahmoud ปีที่แล้ว

    great !

  • @aliemlek
    @aliemlek ปีที่แล้ว

    👌👌👍👍

  • @ChandrashekarCN
    @ChandrashekarCN ปีที่แล้ว

    💖💖💖💖

  • @dand8282
    @dand8282 ปีที่แล้ว

    6:41 - how is the load voltage HIGHER than the bus voltage? The bus should lose voltage over the shunt, otherwise the laws of physics are being broken...

  • @infofoolygun
    @infofoolygun ปีที่แล้ว +1

    😃

  • @polapain37
    @polapain37 ปีที่แล้ว

    Make a new version mppt Video

  • @sammin5764
    @sammin5764 ปีที่แล้ว

    🌟🌟🌟🌟🌟

  • @sammin5764
    @sammin5764 ปีที่แล้ว

    🌷🌟🌷

  • @weerobot
    @weerobot ปีที่แล้ว

    200Amps...Run away 😂

  • @ELECTRONOOBS
    @ELECTRONOOBS  ปีที่แล้ว

    Join my Arduino Course (Spanish): bit.ly/2JY8icE
    My Tools: bit.ly/3uv8bc3
    Help me on Patreon: www.patreon.com/ELECTRONOOBS

  • @gmailnelus008
    @gmailnelus008 ปีที่แล้ว

    A current diverter could be made with this sensoracs770lcb-050b or this acs758ecb-200b
    , for example for the surplus of solar energy not to inject into the network but to be redirected to a hot water boiler through the solid relay, of course if I could show the arduino code. thank .
    th-cam.com/video/HwMLaKYgFBU/w-d-xo.html

  • @sudheerkumar5966
    @sudheerkumar5966 ปีที่แล้ว

    Very good Job for learning
    Thanks

  • @castlecodersltd
    @castlecodersltd ปีที่แล้ว

    Very interesting, thank you ☺