Measure up to 500A DC Current with Shunt Resistor using Arduino

Ғылым және технология

This video show you step by step how to use any Shunt Resistor to measure DC current of up to 500 A using Arduino.
Watch suing Shunt Resistor with LCD: • Measure up to 500A DC ...
The best thank you for me is to not to skip ads and Subscribe 🔔 to my channel, like 👍 the video It is greatly appreciated. 🔔 😊.
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe and enable the bell 🔔.😊 .
Jump to different section of video by clicking on the time:
00:00 Start
00:54 Introduction
06:05 Wiring Explained
07:55 Code Explained
13:58 Demonstration with 50A Shunt
18:17 Demonstration with 100A Shunt
Download Arduino code for this video: robojax.com/L/?id=164
Related videos:
Using shunt resistor and display current on LCD1602/LCD2004 display: [coming soon]
Using shunt resistor and display current on LED-TM1637 display: [coming soon]
Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
Tutorial by Ahmad Shamshiri form Canada
****************************
Learn Arduino from a proven instructor with 100s of projects, code, wiring diagram in structured course in one place. Purchase Arduino Course at Udemy.com : robojax.com/L/?id=153
****************************
If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
Get early access to my videos by becoming my Patreon and and have your name mentioned at end of very videos I publish on KZread: robojax.com/L/?id=97
If you want to learn Arduino from proven instructor on **Udemy**: bit.ly/rj-udemy
Follow me on Facebook robojaxTV
Follow me on Twitter: / robojaxtv
Follow me on Instagram: / robojax
Tutorial by Robojax.com
Get other projects code and learn Arduino
robojax.com/learn/arduino
#robojax #robojaxShunt #robojaxCurrent

Пікірлер: 106

  • @adamelkoumy5141
    @adamelkoumy51414 жыл бұрын

    Amazing video. Thank you very much Ahmad

  • @robojax

    @robojax

    4 жыл бұрын

    you are very welcome Tommy.

  • @TediChannel23Ja
    @TediChannel23Ja2 ай бұрын

    Good video 😊

  • @TheSchneidItworld
    @TheSchneidItworld4 жыл бұрын

    wooow, that's gonna be useful, thanks!

  • @robojax

    @robojax

    4 жыл бұрын

    Glad you think so!

  • @santiagoSosaH
    @santiagoSosaH2 жыл бұрын

    Wow excelent video tnx

  • @mstgames7572
    @mstgames75723 жыл бұрын

    감사합니다

  • @robojax

    @robojax

    3 жыл бұрын

    천만에요.

  • @codebeat4192
    @codebeat4192 Жыл бұрын

    Be careful when using this on a single power supply. You need the negative side to measure the shunt with Arduino and you cannot use the positive side when on same power source because when the load is disconnected you pump the full voltage into A0! (Or there might be a short circuit - not tested yet - could be possible). That is fine when the voltage is 5V or lower but if it is higher than 5V you can blow up your Arduino! To be on the safe side, always put the shunt at the negative terminal.

  • @electronic7979
    @electronic79794 жыл бұрын

    👏👏👏

  • @robojax

    @robojax

    4 жыл бұрын

    🔔 😊.

  • @muratturel
    @muratturel4 жыл бұрын

    Excellent tutorial once again... and thanks for videos with NO MUSIC... so much easier to concentrate on the subject...

  • @robojax

    @robojax

    4 жыл бұрын

    You are welcome. I am glad you found them useful.

  • @eligijuspranskunas3509
    @eligijuspranskunas35093 жыл бұрын

    Great video! I'm using common GND to control H-Bridge, so it will burn my arduino I guess...

  • @vengug7303
    @vengug73034 жыл бұрын

    Great job 👍 if read the live current in display it's better

  • @robojax

    @robojax

    4 жыл бұрын

    Thanks. I have already made two videos ONE for LCD and the other on LED display. Both has been posted for my Patrons on Patreon.com and in 1 or two weeks I will publish them on youTube.

  • @vengug7303

    @vengug7303

    4 жыл бұрын

    @@robojax thank you

  • @robojax

    @robojax

    4 жыл бұрын

    you are welcome.

  • @simonmasters3295
    @simonmasters3295 Жыл бұрын

    So for multiple readings from multiple shunts (a) choose a 12 bit processor (b) rewrite the code so it samples each shunt in turn (c) optimise the code so it doesn't spend ages reading when there is no current Do you not seem to recommend measuring voltage at the same time, but with PWM and MPPT this will be varying so I guess there are two analogue input pins to be used?

  • @logicielslri1729
    @logicielslri17293 жыл бұрын

    Thanks for this nice video! Is there a voltage limit that we can pass through the shunt? Let say i want to test at 24 volt DC, or maybe at 300volt DC, does i can use the same setup, and same wiring?

  • @robojax

    @robojax

    3 жыл бұрын

    you are welcome. when you measure the current, voltage is not of our concern. Yes it will work the same way for both voltages.

  • @simonmasters3295

    @simonmasters3295

    Жыл бұрын

    I think he is saying measure voltage using a different circuit. Someone else drew attention to the fact that higher volts may be unhealthy for the Arduino. I do not understand the "adjustment" parameter, but I think we're are asked to believe that this is a fudge for accurately measuring low current when the shunt is rated for higher current. Sampling and aggregating the data isn't really dealt with and the data is not time stamped because the Arduino does not have a clock! These are features I am looking for where I have 3 (or more) high end shunts for 3 separate battery banks.

  • @kheavmarady6810
    @kheavmarady68102 жыл бұрын

    Thank for the video. Is there a way to amplify the shunt... so that we can measure below 10 Amp? (for a 100A or 200A shunt)

  • @robojax

    @robojax

    2 жыл бұрын

    This is the problem of shunt. 5% error makes it hard to use high rated shunt for lower values. You gotta use proper Hall effect sensors. I have videos on those.

  • @rabihahmed3371
    @rabihahmed33713 жыл бұрын

    thanks for your nice video. can I use this shunt resistor to measure current by an oscilloscope?

  • @robojax

    @robojax

    3 жыл бұрын

    If you watch this video fully, you will learn tones of concepts including your question. yes. you can but watch this video fully. I've spent over 2 weeks to make this video.

  • @learningpower9437
    @learningpower94372 жыл бұрын

    Excellent presentation. There is still something bothering me..that is the ground for the Arduino....say that you have a battery bank of 48 volts made of 8 batteries in series (6 volt each)...hence your ground is just the reference...hence you can connect the ground cable to battery 6...but then the positive (A0)..must be at higher voltagec(battery 7 or 8) ...and obviously using the proper voltage divider to keep the voltage at A0 below 5 volts .... The issue here is that the Arduino has a ground coming from the USB...having another ground at a voltage level (36 volts) ...will that create a problem ??? Thanks.

  • @robojax

    @robojax

    2 жыл бұрын

    Hello, if you have 48V, then you have only two wire + and GND. The ground on Arduino is shared on all GND. so the USB GND is the same as other ground pins.

  • @ferozkhatri8565
    @ferozkhatri85652 жыл бұрын

    excellen sir, can i use this 50a or 100a shunt with my Digital multimeter DT830D ?

  • @robojax

    @robojax

    2 жыл бұрын

    Yes you can use it with any shunt . But you have to know the values. Is use home law to calculate and enter then in Arduino code.

  • @johnsonisaac4864
    @johnsonisaac48643 жыл бұрын

    Pls how do I modify the code to upload the current value to Thingspeak using esp01 or just using esp8266 instead of Arduino uno?

  • @robojax

    @robojax

    3 жыл бұрын

    never heard of Thingspeak

  • @omaral-halabiah2851
    @omaral-halabiah28514 жыл бұрын

    شكراً على مشاركة هذه المعلومات القيمة

  • @robojax

    @robojax

    4 жыл бұрын

    عفوا

  • @herrkronen9694
    @herrkronen96945 ай бұрын

    Does this Shunt resistors work for Alternatnig current too? Please i would like to know

  • @robojax

    @robojax

    5 ай бұрын

    See this video Measuring 50A to 200A using Allegro ACS770 Current Sensor with Robojax Arduino Library kzread.info/dash/bejne/pXZqp7eFhMzeYs4.html

  • @tbilal11201
    @tbilal112012 жыл бұрын

    is it possible to measure amps from 2 different shunt with 2 different voltage source? such as measuring amps from pv to scc & from scc to battery, since it has different voltage values..

  • @robojax

    @robojax

    2 жыл бұрын

    yes of course. I have written this library which uses class. you can define different objects for shunt . Learn the meaning of object from this video kzread.info/dash/bejne/fmqZzc5rcaXJpbw.html

  • @tbilal11201

    @tbilal11201

    2 жыл бұрын

    @@robojax what i actually mean is, how to wire the shunt to the arduino, since arduino only has 1 GND for multiple analog input, and because we are measuring voltage drop on the shunt which there is still a voltage on the negative side of the shunt. And the we connect both negative side of the shunt parallel to the arduino GND. So there would be voltage different on the negative side of the shunt (i.e 30V on pv, 24V on the battery)

  • @tbilal11201

    @tbilal11201

    2 жыл бұрын

    @@robojax do you have any solution for that? thank you..

  • @robojax

    @robojax

    2 жыл бұрын

    wow. Common ground. that is interesting problem. This won't work as is. External module or chip might solve this. I am not sure. Needs some research.

  • @tbilal11201

    @tbilal11201

    2 жыл бұрын

    @@robojax how about using the low-side shunt? is it possible? or do you have any other suggestions? maybe you could make video about that, thanks :D

  • @LukeyMe
    @LukeyMe2 жыл бұрын

    What would I need to change if I'm using a 100mV Shunt?

  • @robojax

    @robojax

    2 жыл бұрын

    With your question you made me watch the video. Just watch the video fully without skipping. I have not said anything extra. The answer is in the video.

  • @radenadrianrafliprasetyo2594
    @radenadrianrafliprasetyo25944 жыл бұрын

    Can I add some shunt resistor in parallel to its current limit? for example using two 50A shunt resistors in parallel to measure current up to 100A. Is there any advantage or disadvantage for doing that?

  • @robojax

    @robojax

    4 жыл бұрын

    yes you can. You have to calculate the value using parallel resistor rule.

  • @radenadrianrafliprasetyo2594

    @radenadrianrafliprasetyo2594

    4 жыл бұрын

    @@robojax so the voltage drop must be same right? because its parallel

  • @abhijithkrishnan1613
    @abhijithkrishnan16132 жыл бұрын

    Thank you sir for this vedio. Sir I need to find out current drawn from welding machine, there is a shunt resistor with 400A 75 mv. I can't directly connect shunt output to my Arduino Uno because of common ground problems. Once I connected and checked for some time but Arduino got burnout. Can you help me sir?

  • @robojax

    @robojax

    2 жыл бұрын

    use optocoupler to isolate the welding machine. I don' have a video on optocoupler at the moments.

  • @abhijithkrishnan1613

    @abhijithkrishnan1613

    2 жыл бұрын

    @@robojax Thank you sir for your valuable time. Actually I am used opamp (op07) differential amplifier for isolation. According to the design it should give output 0v for 0mv and 5v for 75mv. The welding machine give 30mv for around 160A, but when i connect shunt out to opamp the output of opamp rises above 3 or 4v and so it causes error in reading and also error voltage appears on output of opamp when there is no input . The exact output of opamp should be around 1.1 to 1.7v for 30mv. What should I need to do to reduce the hike in output of opamp and also to eliminate voltage when there is no input.

  • @Karl_Levine
    @Karl_Levine3 жыл бұрын

    Maybe I am missing something but it doesn't make sense to me. Even if you use the 100A shunt you'd be basically getting over 1.4A(!) steps on the Arduinos with just using this 75mv shunt.

  • @robojax

    @robojax

    3 жыл бұрын

    sorry. I did not understand the 1.4A. I have explained it fully. It would duplicated if I type it again here. with 100A shunt, you should not use to measure anything less than 10A with Arduino UNO.

  • @aniketsawant8498
    @aniketsawant84984 жыл бұрын

    Can we use this to make a energy meter

  • @robojax

    @robojax

    4 жыл бұрын

    if you've watched the video, I mentioned it. If I find time and interest from people, I will make it. I would have to see if this video get 10,000 view then I know people want this kind of contents.

  • @robtribble9791
    @robtribble97913 жыл бұрын

    how do i measure both plus and minus amps ?

  • @robojax

    @robojax

    3 жыл бұрын

    hello, with this code you can't do it. Use this sensor kzread.info/dash/bejne/pXZqp7eFhMzeYs4.html

  • @toolcraftaustralia9386
    @toolcraftaustralia93862 жыл бұрын

    hello it is not measuning the current below 15 amps what could be the reason for that?

  • @robojax

    @robojax

    2 жыл бұрын

    you didn't mention what sunt value you are using. But I have mentioned in the video that if your shunt of 100A has 10% tolerance, then, 10A is not going to be accurate. so calculate the 5% or 10% tolerance. Watch the video fully. I have spent over a week on this project.

  • @toolcraftaustralia9386

    @toolcraftaustralia9386

    2 жыл бұрын

    @@robojax I am using 200 amps 50 mv shunt resistor, i trying to get the values, but it calculating above 15 amps.

  • @TheSchneidItworld
    @TheSchneidItworld4 жыл бұрын

    ohhh

  • @robojax

    @robojax

    4 жыл бұрын

    LOL

  • @azmerawabelie484
    @azmerawabelie4843 жыл бұрын

    how can i code in arduino to display negative current to lcd ???

  • @robojax

    @robojax

    3 жыл бұрын

    I have not verified it but watch this video someone has done on negative power supply kzread.info/dash/bejne/qn2KlrWolLbKm7w.html

  • @bobowen7861
    @bobowen78614 жыл бұрын

    Why are so many shunts labeled as 75 mv? Why not use 100 mv shunts instead? 75 is an odd number. Seems like 100 would be an easer number to work with.

  • @robojax

    @robojax

    4 жыл бұрын

    The code I have written will work with any shunt resistor. I have never seen any other. For the past 5 years I have been searching and never saw anything else.

  • @bobowen7861

    @bobowen7861

    4 жыл бұрын

    @@robojax You are correct. The 75mv series of shunt resistors appear to be the norm. My guess is that this goes back to the days of analogue current meters providing an easy method of changing current scales. I enjoy watching and learning from your videos and look forward to many more. Should you decide to expand your collection of shunts search on Amazon for 50mv or 100mv base-mounted DC shunts.

  • @cr0174
    @cr01743 жыл бұрын

    Hello Very interesting. I am looking for a shunt with a logger! I would like to save volts and amps (time and date) Do you have any idea how to do that? Greeting Daniel

  • @robojax

    @robojax

    3 жыл бұрын

    It could be done in two ways, on microSD card or on cloud server. I have not video for that yet.

  • @robojax

    @robojax

    3 жыл бұрын

    Check my latest video dc energy meter

  • @cr0174

    @cr0174

    3 жыл бұрын

    @@robojax It is possible to buy one from you?!

  • @robojax

    @robojax

    3 жыл бұрын

    I have nothing for sale

  • @cr0174

    @cr0174

    3 жыл бұрын

    @@robojax Or can you help me to build such a shunt. I have no idea how to build something like this! :-( let alone program it!

  • @eng.helenojose9641
    @eng.helenojose9641 Жыл бұрын

    É normal não ter precisão?

  • @robojax

    @robojax

    Жыл бұрын

    El error del 5% o 10% depende del tipo de resistencia que compre. si es normal si compra una derivación de 50A y la usa para 3A, obtendrá un error del 50%. así que no lo hagas. derivación 5A utilizada para la medición 3A. y use la derivación 50A para 20A a 50A para obtener un resultado excelente.

  • @vedforeal7835
    @vedforeal78354 жыл бұрын

    Sir where do you get these components from

  • @robojax

    @robojax

    4 жыл бұрын

    Please what the video. I have mentioned them where I am getting them.

  • @vedforeal7835
    @vedforeal78354 жыл бұрын

    Sir I want to make a radar using stepper motor and a hc sro4 please make

  • @robojax

    @robojax

    4 жыл бұрын

    please post this under the stepper motor or HC-SR04 and I will reply. this video is about shunt current.

  • @vedforeal7835

    @vedforeal7835

    4 жыл бұрын

    @@robojax ok

  • @AI.AUTOMATION.
    @AI.AUTOMATION.4 ай бұрын

    Hii sir I need 1 help please sir help me please I facing a 1 problem in my project can I measure the 450v dc and 30a current shunt and Arduino it's possible?? And how please help sir

  • @robojax

    @robojax

    4 ай бұрын

    Hi Wrong video . See this How measure DC Voltage and Current and build Energy meter with LCD Display | Lesson 104 kzread.info/dash/bejne/oamapsRwcdfcfs4.html

  • @robojax

    @robojax

    4 ай бұрын

    And search my channel

  • @AI.AUTOMATION.

    @AI.AUTOMATION.

    4 ай бұрын

    @@robojax but my voltage is hvdc 450v dc ⚡⚡

  • @AI.AUTOMATION.

    @AI.AUTOMATION.

    4 ай бұрын

    @@robojax please sir help me how to measure this current with MCU please help me i need isolation with low side and high side I can't connect the Arduino A0 pin derectily to high voltage DC shunt resistor pin

  • @hatsunemiku6335
    @hatsunemiku63353 жыл бұрын

    can i use this for esp8266?

  • @robojax

    @robojax

    3 жыл бұрын

    I have exit it fully. If you watch it many times and learn it you can use it for anything and in any ways

  • @hatsunemiku6335

    @hatsunemiku6335

    3 жыл бұрын

    @@robojax ty for the tip

  • @sahnatana6501
    @sahnatana65012 жыл бұрын

    Hi sir, why is the current data not showing

  • @sahnatana6501

    @sahnatana6501

    2 жыл бұрын

    I've run the same tutorial as in the video

  • @robojax

    @robojax

    2 жыл бұрын

    Watch explained if the code . You must have disabled it. It can be disabled not to show on serial monitor.

  • @sahnatana6501

    @sahnatana6501

    2 жыл бұрын

    why the analog pin can't be read when connected to a shunt resistor, the data only reads 0

  • @terrancevangemert7508
    @terrancevangemert75083 жыл бұрын

    WHen you show the current you are not showing the voltage you are working with. Is it 5 volts at 50 amps or is it 24 volts and measuring 50 amps.. It is hard to tell from your screen what you are proving here. Arduino will only accept up to 5 volts max to the A0 To A7 Pins. So single ended and pushing more than 5 volts will destroy the AD

  • @robojax

    @robojax

    3 жыл бұрын

    we are measuring voltage across the shunt resistor. if a shunt is made for 100A, this shunt will output 75mV. I have shown it. We don't care about the voltage we are working. 100V or 500V does not matter because the voltage will never be more than 75mV which is 66 times smaller than 5V. Please watch again. I have explained it fully and why we use shunt and how it works. stay safe.

  • @terrancevangemert7508

    @terrancevangemert7508

    3 жыл бұрын

    @@robojax I watched and your rampage that you applied is at 5 volts or less. 30 amps or 200 amps at 5 volts or less is safe with Arduino. anything over five volts will Damage the Arduino. you are not going over 3.5 VOLTS... even if you show 60 amps... on the current power supply through the shunt. try 24 volts and 60 amps and see what happens.

  • @Verial1966
    @Verial19662 жыл бұрын

    the sketch doesn't work.

  • @robojax

    @robojax

    2 жыл бұрын

    You can’t just say it doesn’t work. Please provide error or details

  • @kkelectronics831
    @kkelectronics8314 жыл бұрын

    Hi sir i need your help

  • @robojax

    @robojax

    4 жыл бұрын

    Hi, I can help you only if it is related to the video I have posted here. So please post your question under the relevant video and I will try to replay.

  • @kkelectronics831

    @kkelectronics831

    4 жыл бұрын

    Thank you for reply sir My question is I am using a clone Ardiuno uno3 Hc340 before it was working fine. Com por is also ok but still error is coming.

  • @robojax

    @robojax

    4 жыл бұрын

    you are welcome. There is no such thing as clone or read. the chip in Arduino board is made by ONE manufacturer. So don't worry you have the right board. You have to post the error show what kind of error you are getting so I look at it.

  • @kkelectronics831

    @kkelectronics831

    4 жыл бұрын

    An error occurred while uploading the sketch avrdude: ser_open() : can't set com-state for "\\.\COM3" sir message is showing

  • @vedforeal7835

    @vedforeal7835

    4 жыл бұрын

    press reset on your arduino board it had also happened to me

Келесі