How to use Allegro ACS712 AC/DC Current Sensor with Arduino

  Рет қаралды 150,415

Robojax

Robojax

Күн бұрын

Watch latest video on Allegro ACS712 sensor with library: • Measuring 5A-30A AC an...
This video explains how to measure AD or DC current of up to 30A using the Allegro ACS712 Current sensor with provided Arduino Code.
*** Free Course ***
Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
The best thank you for me is to Subscribe 🔔 to my channel and thumb up the video. It is greatly appreciated. 🔔 😊.
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊
*** Purchase ACS712 Current Sensor from **
Amazon USA: amzn.to/3wv1MwN
Amazon Canada: amzn.to/3fl8IHf
All Europe Amazon: amzn.to/3ugXZBM
** Purchase Arduino Start Kit **
Amazon USA: amzn.to/3z88F9G or just UNO board amzn.to/3aY7KOL
Amazon Canada: amzn.to/31an88J or just UNO board amzn.to/3pYxSNN
Amazon Europe (all Europe): amzn.to/3pMCHge or Just UNO board amzn.to/2PgGItD
AliExpress: s.click.aliexpress.com/e/_9uc7Xe
Banggood: www.banggood.com/custlink/3GD... or UNO board www.banggood.com/custlink/vKm...
eBay: ebay.us/B1JWLi
***** Purchase Authentic Arduino Uno from ***
Amazon USA: amzn.to/2KApAwK
Amazon Canada: amzn.to/37LZ8sW
All Europe Amazon: amzn.to/36YDSzn
Chapters of this video:
00:00 Start
00:26 Introduction
02:04 Datasheet viewed
04:45 wiring explained
06:32 Code Explained
10:25 Demonstration
Download Arduino code for ACS712: bit.ly/rjx-acs712
Measure any DC voltage with Arduino (video) : • Built Voltage Sensor w...
How to use a breadboard (video) : robojax.com/L/?id=121
Display current on LCD1602. Watch this video: • Allegro ACS712 with LC...
Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
Tutorial by Ahmad Shamshiri form Canada
****************************
Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
****************************
If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
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 #robojax_acs712 #robojax_current

Пікірлер: 235
@robojax
@robojax 4 жыл бұрын
Please watch latest (better) video for ACS712 kzfaq.info/get/bejne/aaljZqehyLnbeas.html with clean library
@stormbytes
@stormbytes 4 жыл бұрын
Outstanding! FINALLY someone that starts the tutorial by GETTING TO THE POINT and in the first 90-seconds he provides an overview of the module we're dealing with and how it works. You'd think this would be basic enough for anyone to understand yet so many tutorials on KZfaq spend needless minutes going on the round about. Thank you and thank you. Exactly what I was looking for. Very helpful.
@robojax
@robojax 4 жыл бұрын
You are welcome. I am glad you found it useful. Watch my latest video where I have written a library that makes it very simple and clean kzfaq.info/get/bejne/aaljZqehyLnbeas.html
@TomGartman
@TomGartman 5 жыл бұрын
This is exactly what I was looking for. Thank you very much for taking your time to share this and the time to produce such a thorough video.
@robojax
@robojax 5 жыл бұрын
You are welcome. I am glad you found it useful.
@dustypumpkin
@dustypumpkin 4 жыл бұрын
OMG THIS IS WHAT IM REALLY LOOKING FOR. YOU EXPLAIN EVERY DETAILS THAT IVE BEEN NEEDING ALL THESE DAYS😭😭 THANKS ALOT
@robojax
@robojax 4 жыл бұрын
You are welcome. I am glad you found it useful.
@Skagenin
@Skagenin 4 жыл бұрын
Thank you, you "How to" videos is some of the best detailed, and most informative i have seen, i really learn something
@robojax
@robojax 4 жыл бұрын
You are welcome. I am glad you fund them informative. Please share and subscribe.
@aksharchavan5818
@aksharchavan5818 3 жыл бұрын
It is an awesome video. Explanations are very clear and detailed.. thanks for the efforts....
@jean-claudegolovine5725
@jean-claudegolovine5725 3 жыл бұрын
Great video. Thank you
@juancarlosbarragan8436
@juancarlosbarragan8436 3 жыл бұрын
Amazing job mate. Thanks.
@robojax
@robojax 3 жыл бұрын
Thank you too!
@SanthoshKumar-ud4ui
@SanthoshKumar-ud4ui 4 жыл бұрын
Thankyou very much,I have searched various codes,Only your code works, Thankyou Sir.
@robojax
@robojax 4 жыл бұрын
You are welcome. Good to know you found it useful.
@SanthoshKumar-ud4ui
@SanthoshKumar-ud4ui 4 жыл бұрын
Bro, actually the sensitivity values are given as 185,100,66 instead of 0.185,0.100,0.066
@immortalsofar5314
@immortalsofar5314 4 жыл бұрын
I've got 2, 50A versions (I hope!). I'm going to wire one in series with my solar charger and the other in series with my battery load. Combine the two figures, trial and error for the efficiency of the batteries and I should have a battery meter that's actually useful!
@robojax
@robojax 4 жыл бұрын
Sure it will work. Good luck. Thank you for not skipping the ads and keep watching it. This will help me a lot.
@youtubeoemerf
@youtubeoemerf 4 жыл бұрын
thanks a lot, that is extremely useful video. keep it up, please
@robojax
@robojax 4 жыл бұрын
Hi, then please subscribe. I have spent hours writing code and testing it. You simply click and subscribe.
@rishinthiransanthanathasan7096
@rishinthiransanthanathasan7096 3 жыл бұрын
My friend! This is good stuff
@robojax
@robojax 3 жыл бұрын
You are welcome. Here is $200 Arduino course for free Arduino Step by Step Course (over 100 lectures) Starts here robojax.com/L/?id=338
@GPWAWA197504
@GPWAWA197504 4 жыл бұрын
Very good material. Greetings from Poland.
@robojax
@robojax 4 жыл бұрын
Thank you very much. Ahmad from Canada.
@yogeshitaliya473
@yogeshitaliya473 6 жыл бұрын
Nice one again sir Nice Explain
@robojax
@robojax 4 жыл бұрын
Thank you. Hey I found your comment now. KZfaq Studio has new feature where it shows me comments that I have not replied.
@rajugajavelly3610
@rajugajavelly3610 4 жыл бұрын
really helpful bro...nice vedio
@robojax
@robojax 4 жыл бұрын
you are welcome.
@rachmanfirdaus3872
@rachmanfirdaus3872 3 жыл бұрын
This is better tutorials
@DIYPINOY
@DIYPINOY 2 жыл бұрын
Dear can we use this to make diy limiter for grid tie inverter? Module will sense what current is use by the house the arduino will control current of buck converter going to gridtie inverter
@robojax
@robojax 2 жыл бұрын
We just read the current and take action. Action can be anything that you have the components for. you can control motor, relay, display, solenoid or send SMS . Here is my ***** Free Arduino Course worth $200**** Arduino Step by Step Course (over 150 lectures) Starts here robojax.com/L/?id=338
@huzefaali9374
@huzefaali9374 4 жыл бұрын
Wonderful work.... Wanted to know how can i connect relay in this same circuit, to cuttoff voltage supply when it overloads??
@robojax
@robojax 4 жыл бұрын
very simple if(current >12) {//do something here}. here video on how to control relay kzfaq.info/get/bejne/nZyba9aBr9_Nlmw.html so put line that controls relay in the //do something here section of line above. Please watch it fully as I do not say anything extra and all lines in the code has been explained and I am sure you will be able to do it.
@HaseebKhan-hc8wi
@HaseebKhan-hc8wi 2 жыл бұрын
Can you help me where I connect current sensor Vcc and Negative with charge controller I have 180 Watt panel positive and negative attach with charge controller.Connected a battery with charge controller and 150 watt dc load with charge controller. How can I measure Solar panel current with Acs 712.
@Ram_Ram_Ji_108
@Ram_Ram_Ji_108 3 жыл бұрын
Hi RoboJax I need some help to calculate voltage drop and leakage current using Arduino. Also to display leakage current on ammeter. We have two resistance in series one value is known but other one is unknown resistor value. with the help of ACS712 we can measure current in circuit with supply voltage of 12V. We need program code for this. Could you please help us.
@robojax
@robojax 3 жыл бұрын
First of all you are looking at outdated video. I have latest video with library which is more accurate and clean here kzfaq.info/get/bejne/aaljZqehyLnbeas.html Here is how you can measure any voltage using arduino kzfaq.info/get/bejne/qp6oqtWHz5jFdqc.html or if you are interested to measure current using shunt resistor kzfaq.infosearch?query=shunt or energy meter kzfaq.infosearch?query=energy
@fathurrachim7919
@fathurrachim7919 3 жыл бұрын
Thank you
@robojax
@robojax 3 жыл бұрын
You're welcome
@jomfawad9255
@jomfawad9255 25 күн бұрын
Please can you help? I connect vcc and gnd and out of acs712 respectively to arduino 5v gnd a0 pin, and then i connect 3.7v battery positive and negative to the other side of the acs712 but i immedietly theres smoke, please help
@mohamedsuhailirfankhazi6628
@mohamedsuhailirfankhazi6628 5 жыл бұрын
Hello friend, thank you for this tutorial. it was helpful. can you please show me schematic of your circuit design? I would like to see how you connected your load.
@robojax
@robojax 5 жыл бұрын
You are welcome. The schematic is the data sheet which I have provided in the same page where you can get the code.
@donbroady5171
@donbroady5171 2 жыл бұрын
If im using 3v pin output on nodemcu, should i change vcc value to 3? And float voltage _raw = (3/1024)?
@robojax
@robojax 2 жыл бұрын
here is the updated video with library kzfaq.info/get/bejne/aaljZqehyLnbeas.html and do not worry about the values.
@shahzaibshamim6524
@shahzaibshamim6524 5 жыл бұрын
What does line 4(cutOffLimit) means and why you set it to 1.01?
@robojax
@robojax 5 жыл бұрын
It has been explained in the video. For example if you are interested above 1A, then set the limit and you will not see anything bellow 1A.
@SmartFill
@SmartFill 4 жыл бұрын
can I supply 220 v ac with 5 amp on load to measure current ... with ACS712ELCTR-05B
@robojax
@robojax 4 жыл бұрын
please watch this latest video for this module to get the answer kzfaq.info/get/bejne/aaljZqehyLnbeas.html
@jorgelaurousman4861
@jorgelaurousman4861 5 жыл бұрын
How can i show that when no current flowing it will print 0 value and when there is it will show the value. im measuring 220V 60hz loads AC.i only want to show in the serial monitor is the rms current.
@robojax
@robojax 5 жыл бұрын
change the value in the line float cutOffLimit = 1.01; to zero I have explained this in the video. Watch it again.
@cfrog9073
@cfrog9073 4 жыл бұрын
Great tutorial! Just a question, is there a way to store the data in a Micro SD card (Using a Micro SD module)?
@robojax
@robojax 4 жыл бұрын
yes there is. But I have not made any micro sd card video yet.
@tomtouma
@tomtouma Жыл бұрын
So the current passes through the board and under the hall sensor. How do those copper traces handle 30amps? They look thin.
@robojax
@robojax Жыл бұрын
Please watch the latest video with the library I have written and discussed the current path on PCB here kzfaq.info/get/bejne/aaljZqehyLnbeas.html
@dtec5993
@dtec5993 5 жыл бұрын
Can we feed mains to sensor I mean will it work with 250Volt AC
@robojax
@robojax 5 жыл бұрын
On the page where I put the code, this is the title "Using Allegro ACS712 DC/AC Current sensor with Arduino Code" which has AC and DC in it. Yes it works with both AC and DC current.
@madhavdivya
@madhavdivya 4 жыл бұрын
For a better solution, does it help to thicken the tracks on the PCB to help with better current flow and lower heat?
@robojax
@robojax 4 жыл бұрын
yes it does help.
@giacomoscornavacca9112
@giacomoscornavacca9112 3 жыл бұрын
Hi Robojax, perfect video! If i buy a 30 ampere version, do u think i can handle 20 ampere for hours without melting the board? This board behaves like a resistance, do u know how many ohms? Moreover, if sometimes i have for a instant 50 ampere because of the start of a pump, do I melt the board? What I read as measurement when i have 50 ampere?
@robojax
@robojax 3 жыл бұрын
Hi and thanks. I would suggest using Winson sensors introduced in this video kzfaq.info/get/bejne/sJOja7inqL2rqI0.html and the Allegro is based on Hall Effect and there is no resistance on the path. I believe I have explained it at the very beginning. There is about 30 millisecond or 100 millisecond delay but the reading is whatever you have. 50A is 50A. this module may handle excess of current for less than a second but if you are going to measure 50A, then use different modules.
@jitendrapatil5184
@jitendrapatil5184 4 жыл бұрын
sir which softwear use for data view on pc miniter
@robojax
@robojax 4 жыл бұрын
The software that comes with this Electronic load www.amazon.ca/Rigol-DL3021-Programmable-Electronic-Load/dp/B07889ZQRP
@giacobbecerrotta6049
@giacobbecerrotta6049 4 жыл бұрын
Hello, can you help me for small code that calculate Voltage on the pin -IP 3/4 ? Tnx Jack
@robojax
@robojax 4 жыл бұрын
Hi, sorry I did not understand which pin? If you want to just read DC voltage, here is the video kzfaq.info/get/bejne/ish8l6SC1auYmnk.html but if you want to read any DC voltage, you need two resistor and watch this video kzfaq.info/get/bejne/fMefft2anNrLfXk.html
@kennethjosephsoria2239
@kennethjosephsoria2239 4 жыл бұрын
sir do you have a code for a situation like if the current sensor detects that there is a shortage in current a back up battery will automatically supply to compensate the current? ofc i will be using a relay. thank you.
@robojax
@robojax 4 жыл бұрын
This module and code can do this. just put "if" statement and turn something ON or OFF using relay.
@kevinbelza67
@kevinbelza67 5 жыл бұрын
Hello sir, im having a hard time using acs712-20a, is this module good for measuring low currents less than 10mA?
@robojax
@robojax 5 жыл бұрын
I have provided the datasheet in page where code is. So check that out.
@samueladitya1729
@samueladitya1729 4 жыл бұрын
can I measure reverse current to monitor battery charging and discharging?
@robojax
@robojax 4 жыл бұрын
Hi, I have explained it that for example if your module ACS712ELCTR-05B-T the B stands for bidirectional and yes you can measure the current on both ways even AC current.
@giacobbecerrotta6049
@giacobbecerrotta6049 4 жыл бұрын
I have on -IP 3/4 50Volt Jack
@robojax
@robojax 4 жыл бұрын
Nice.
@lightofhopeph
@lightofhopeph 4 жыл бұрын
This is awesome video, do you also have a video for the nodemcu + ACS712 ?
@robojax
@robojax 4 жыл бұрын
I just add it into my list.
@lightofhopeph
@lightofhopeph 4 жыл бұрын
@@robojax awesome i subscribed on your channel, excited to see the video about nodemcu and acs712👍
@maheshvenk
@maheshvenk 4 жыл бұрын
About the heating issue. Actually I am planning to build a cut off based amps. For my 1 hp water motor. I have to monitor Continuously aslong as the motor runs(approximately 1 hour ). Will this solve my purpose
@robojax
@robojax 4 жыл бұрын
thank you for sharing your project plan. Get the library I have written for this. Very clean and simple. kzfaq.info/get/bejne/jp97lJCg0p-tcoE.html
@sandhiyasandhiya6896
@sandhiyasandhiya6896 5 жыл бұрын
How to connect DSN VC 288 digital meter with current sensor sir
@robojax
@robojax 5 жыл бұрын
I would have to make a video on that.
@mehmetemirdag4948
@mehmetemirdag4948 4 ай бұрын
Please share PCB design plsss
@Aadhil
@Aadhil 5 жыл бұрын
can i measure the current of AC voltage of 230V?
@robojax
@robojax 5 жыл бұрын
It can work your voltage yes. Check the page where the code is and you can see the datasheet.
@chandrikams9346
@chandrikams9346 4 жыл бұрын
Can we use Single current sensor for sensing current in more than one device and send acknowledgment to controller plss answer
@robojax
@robojax 4 жыл бұрын
No. if you can connected and disconnect wires for the load of each device, then yes. But disconnected the device and which will shut them down. will not work.
@HarshChauhan-ej5gf
@HarshChauhan-ej5gf 4 жыл бұрын
can we apply 230 v dc and use load as dc motor
@robojax
@robojax 4 жыл бұрын
I have provided the datasheet for this in the same page where the code is, you can see the information.
@Dr_Muhammad_Ahmad
@Dr_Muhammad_Ahmad 3 жыл бұрын
Hi, the problem which I am facing is to connect the output of this sensor with oscilloscope, to see the graph of current. Can you help in this context?
@robojax
@robojax 3 жыл бұрын
Hi, have you understood how it work? then it would be very easy. I've explained and have not skipped. I said this is "outputting voltage and we use Arduino to calculate the current from the voltage". So watch it again to know. by the way you are watching outdated video, watch the latest, better video using a library which makes the code clean and simple kzfaq.info/get/bejne/aaljZqehyLnbeas.html
@AGHunter1992
@AGHunter1992 4 жыл бұрын
I'm having trouble using the the acs712 30A current sensor to measure dc phase current of a switched reluctance motor. I don't know why but serial monitor doesn't change sensed values when I turn on motor. It outputs no current. I'm using a arduino uno, with out connected to A0, ground connected to gnd, and vcc connected to 5v of the uno. Can you please help.
@AGHunter1992
@AGHunter1992 4 жыл бұрын
snipboard.io/FBems2.jpg snipboard.io/tlB5pZ.jpg
@robojax
@robojax 4 жыл бұрын
I replied but it seems it has not been saved. Here I am writing again. I looked at your drawing and did not understand. Please start with simple circuit like toaster or DC motor make sure it works, then come to other stuff. Put this sensor between the power and load. See latest video with latest code: kzfaq.info/get/bejne/aaljZqehyLnbeas.html
@vaibhavjambhulkar2331
@vaibhavjambhulkar2331 4 жыл бұрын
Hello sir, I am trying this code for acs770 but it is not working properly. please give me a suggestion for it. I have also filled all parameter of acs770, like sensitivity 10mv.
@robojax
@robojax 4 жыл бұрын
Hello, which module of ACS770? X100B, X100U, see datasheet a it has a lot of different model www.allegromicro.com/en/Products/Sense/Current-Sensor-ICs/Fifty-To-Two-Hundred-Amp-Integrated-Conductor-Sensor-ICs/ACS770
@mikeberger1688
@mikeberger1688 2 жыл бұрын
Bought one of these and the output goes lower than the 2.5v idle when current is detected? (Mine does). Thought it would have added to the output -- guess not. Confirm anyone?
@jrotor3301
@jrotor3301 4 жыл бұрын
Does the ESP32 have analog inputs so this sensor can be used to transmit readings over wifi? Thanks, really enjoy your videos.
@TheDemockery
@TheDemockery 4 жыл бұрын
ESP32 does have analog inputs with ADC converter.
@robojax
@robojax 4 жыл бұрын
Yes it does and here is my video on that kzfaq.info/get/bejne/i757qJWJ2d3OZ5c.html
@benchackochittilappilly3265
@benchackochittilappilly3265 2 ай бұрын
if I want to make the current printed to 0 if the value is less than 0.09 what should i do i used a if statement but it is not working. please help!!!!!!
@robojax
@robojax 2 ай бұрын
Lesson 10: Conditional Statement in Arduino and Using Array | SunFounder Robojax kzfaq.info/get/bejne/fch7jZyIkt7dpnk.html
@crooked8168
@crooked8168 5 жыл бұрын
Detects 220V @ 20 amps? Thanks.
@robojax
@robojax 5 жыл бұрын
In the description and in the code page I mentioned that it works with AC and DC . yes if you have the 20A version.
@desairahulinrd000
@desairahulinrd000 4 жыл бұрын
Can we measure Current in the range of mA typically less than 100mA
@robojax
@robojax 4 жыл бұрын
see here page 2 of datasheet: www.sparkfun.com/datasheets/BreakoutBoards/0712.pdf the 5A verison will generate 180 mV/A so 185mV for every 1A. Analog input of Arduino UNO can read from 1mV to 5000mV (or 5V). So yes for 1mA (or 0.001A) so to get 1mV (the minimum) 1÷185=0.0054A or 5.4mA and this is the minimum. you can do the calculation for 30A and 50A version by looking at the datasheet. Thank you for keep watching the ads and not skipping them. it will help me a lot.
@WalkundeSuyash
@WalkundeSuyash 5 жыл бұрын
Which Software is that RIGOL?...How can you change current through that?
@robojax
@robojax 5 жыл бұрын
this is Rigol Electronic load which comes with software. I have huge hardware connected as load.
@MA_190
@MA_190 4 жыл бұрын
Thank you for this awesome tutorial! I have a question, what if i’m using two current sensor to measure the AC home socket directly? I will use one sensor for the ground pin and the another one for the Live and Neutral pins. I need to know how the code will be changed.
@robojax
@robojax 4 жыл бұрын
You are welcome. I have written this code for someone for another current sensor which you can learn from codeshare.io/GAod7k
@haledidemkececi1354
@haledidemkececi1354 5 жыл бұрын
Hi. Thank you for sharing video. But I cant show the ac current truely. There is a 25W 220VAC lamp for load. Normally current must be 0.11 Amps. But I see 0.68 Amps on the screen. What must i do? can u help me please?
@robojax
@robojax 5 жыл бұрын
what kind of load you have? is it a bulb? I mean resistive load or inductive like motor? Try to measure the current using your multimeter. Do not trust the label on the load.
@haledidemkececi1354
@haledidemkececi1354 5 жыл бұрын
@@robojax yes one of loads is bulb. Other one is resistance heater. On the bulb i read 25 watt. For heater firstly i measure resistance and voltage / resistans = amper i found. Heater is 140 watt today sunday but tomorrow i work on this again. Thank you for reply. Love and respect to you. Thank you
@Stuceyjnr
@Stuceyjnr 5 жыл бұрын
Is there any chance you could point me in the right direction to find the sensitivity of a 10amp current sensor?
@robojax
@robojax 5 жыл бұрын
I have explained this and provided the datasheet. this module is offered in 10A. So watch the video and do not escape.
@Stuceyjnr
@Stuceyjnr 5 жыл бұрын
@@robojax Thank you
@robojax
@robojax 5 жыл бұрын
you are welcome.
@muhammedatav4916
@muhammedatav4916 3 жыл бұрын
What did you connect as load in this circuit?
@robojax
@robojax 3 жыл бұрын
You can see the load used in this video kzfaq.info/get/bejne/brSlgZSK0J-VpYk.html at 19:32. I had to watch the video, find the time and bring it to you.
@AGHunter1992
@AGHunter1992 4 жыл бұрын
Hello. Great vid. I'm having trouble using the sensor with my motor and so now i'm trying to isolate the sensor with a adjustable dc power supply (ranging 10a to 30V) and potentiometer (1k then 5k) but i'm having trouble getting current readings. Can you suggest another way to test the current sensor.
@AGHunter1992
@AGHunter1992 4 жыл бұрын
What type of load do you suggest??
@robojax
@robojax 4 жыл бұрын
You should get the reading. I have explained in the video. AC or DC and the limit is your module either 5A, 10 or 30A. You have to connect this module in series. Don't worry about the other stuff you do. Make everything ready without this. One your motor works, then put this in series with the load. Here is the latest video with Library which makes it cleaner kzfaq.info/get/bejne/aaljZqehyLnbeas.html
@rossward3234
@rossward3234 5 жыл бұрын
i need to record current going to motor and if it goes above 1.5 amp it must cut off, how can i do this, it would be great if you could help me. thanks
@robojax
@robojax 5 жыл бұрын
you would need to use relay to disconnect the power. for example if you current variable is currenT, then write if (currenT >=1.5){ digitalWrite(8, LOW). See my video on relay kzfaq.info/get/bejne/a56Iirl106ibg6c.html
@rossward3234
@rossward3234 5 жыл бұрын
@@robojax thank you man, ill will work away at this,
@rossward3234
@rossward3234 5 жыл бұрын
Could I use the readings from the current sensor to turn on and off a l298n Like if current> 1.5 amps Motor pins will both be HIGH, please help, I am really stuck
@ehtishamnasir1815
@ehtishamnasir1815 5 жыл бұрын
why is it sometimes my current values are negative when i set cutofflimit to 0.5, by the way excellent tutorial. Thanks
@robojax
@robojax 5 жыл бұрын
Remember this is made for 30A or 30000mA and 05A is 1.6%. I have not faced such issue. It should always be positive. Try different load.
@ehtishamnasir1815
@ehtishamnasir1815 5 жыл бұрын
@@robojax what is the minimum current value that this 30 A acs712 can measure, i have set the "cutOffLimit" to 0.1 instead of 0.5 or 1.01 as you mentioned. Because i want to measure a current that is around 0.1 to 0.22 amperes. Thank You
@ehtishamnasir1815
@ehtishamnasir1815 5 жыл бұрын
@@robojax i just added abs in the line:(Serial.print(abs(current), 2); // print the current with 2 decimal places) and the negative values are gone but still there is a lot of variation in the output.
@SanjeevKumar-cq9kk
@SanjeevKumar-cq9kk 4 жыл бұрын
Hello Sir can I use Two (2) -ACS712 current sensor module simultaneously with one Arduino board for measurement of current.
@SanjeevKumar-cq9kk
@SanjeevKumar-cq9kk 4 жыл бұрын
For this code only. Sorry I have forgotten to mention
@robojax
@robojax 4 жыл бұрын
Hello, you can get the idea from this other sensor for 4 sensor: robojax.com/learn/arduino/?vid=robojax-allegro_ACS758
@svsv9
@svsv9 3 жыл бұрын
I have found difficult to read uA units. Ina219 does not, only mA. If I get this will I be able to read uA units?
@robojax
@robojax 3 жыл бұрын
Not with this model. You need find different sensor. It won’t be easy. Even simple short wire will affect the result.
@svsv9
@svsv9 3 жыл бұрын
@@robojax Thank for reply. I've studying Dmm Dt830 scheme. It is not easy. I am just a hobbyists, I have documented a project to read uA based on TH711 module. May you help me taking a look at the web site project source? It has everything but is difficult to me. The author doesn't share a clear schematic.
@abdallahbaraka3931
@abdallahbaraka3931 3 жыл бұрын
How could i connect it to node mcu esp8266
@robojax
@robojax 3 жыл бұрын
if you haven't skipped the video and learn how we read the current, it would be very easy to use it with ESP8266. here the video showing you how to read voltage using ESP8266 kzfaq.info/get/bejne/i757qJWJ2d3OZ5c.html so learn and combine them. Good luck.
@FLEXXANI
@FLEXXANI 5 жыл бұрын
what power source are you using?
@robojax
@robojax 5 жыл бұрын
I have 50V 60A power supply.
@emperoreyeanime4142
@emperoreyeanime4142 3 жыл бұрын
can acs712 measure voltage and current ?
@robojax
@robojax 3 жыл бұрын
It is current sensor only. If you want to measure power then I have Arduino power meter. Search for power in my channel
@zeeshaniqbal5518
@zeeshaniqbal5518 4 жыл бұрын
I am getting this value with even i have connected it to battery dc 6v V: -1.838V, I: infA
@robojax
@robojax 4 жыл бұрын
which model are you using? the "infA" has "inf" which is infinity. It means in this line float current = voltage / sensitivity[model]; you are dividing it by zero . If you change the code, please start a new code and just select the right model. To select right model, watch the video.
@hytrozion
@hytrozion 4 жыл бұрын
hello sir, great video and explanation but I have a problem, every time I launch the program, the monitor say that I have around 0.2Amp but I didn't plug anything to the module. I have a the 30 amps one. I check your code to see if I made a mistake but no :/ can you help me ?
@robojax
@robojax 4 жыл бұрын
I don't know what you do. If you copy and paste the code without changing,and if wiring is good it should work.
@hytrozion
@hytrozion 4 жыл бұрын
@@robojax I made some test, and now, your code still work fine, but mine not... so I think I gonna swap the ACS712 to a shunt resistor. thank you for your response ^^
@robojax
@robojax 4 жыл бұрын
You are welcome. 😃
@luitelumesh
@luitelumesh 4 жыл бұрын
Sir , how to compare the values of two current sensors connected to a single Arduino and print “one thing” on lcd screen if they are same or within some range otherwise display “another thing “
@robojax
@robojax 4 жыл бұрын
You have not even subscribed. If you don't spare simple click, how can I go a read the code to reply to you? I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊
@luitelumesh
@luitelumesh 4 жыл бұрын
I have already subscribed your channel , please check that again
@robojax
@robojax 4 жыл бұрын
Thank you very much.
@luitelumesh
@luitelumesh 4 жыл бұрын
What about answer sir? 😀
@robojax
@robojax 4 жыл бұрын
In this page (at the end of the page) I have the example of using another current sensor where 4 of them have been used. So you can use the same principle to use 2 or more of this sensor robojax.com/learn/arduino/?vid=robojax-allegro_ACS758
@yugeshkc9026
@yugeshkc9026 4 жыл бұрын
Can we measure input and output voltage using this sensor if not? which sensor can be used to measure voltage using raspberry pi. I will be very grateful for your response
@robojax
@robojax 4 жыл бұрын
No we cant't. Here my video on how to measure any DC voltage with Arduino kzfaq.info/get/bejne/qp6oqtWHz5jFdqc.html and Current/Energy kzfaq.info/get/bejne/i7Foftmcnd2qnas.html please click on "robojax" under the video and then click on "Videos" to see the reset of my videos. I've got a lot of projects for voltage and current.
@yugeshkc9026
@yugeshkc9026 4 жыл бұрын
@@robojax Thank you so much for the information.
@nayyarmehmood341
@nayyarmehmood341 4 жыл бұрын
Can we use this to cut off the circuit if the current increases from user defined value??? Like current breaker switch???
@robojax
@robojax 4 жыл бұрын
If you mean: if current increased, disconnect the power? yes. but you have to use a relay, check the current and turn it OFF when current reaches at certain value.
@nayyarmehmood341
@nayyarmehmood341 4 жыл бұрын
@@robojax yes exactly this, how I turned it off? Should I control it from arduino? Can you explain or help me out please?
@robojax
@robojax 4 жыл бұрын
you are disconnecting a load. here is example of AC load but DC is the same kzfaq.info/get/bejne/a56Iirl106ibg6c.html
@nayyarmehmood341
@nayyarmehmood341 4 жыл бұрын
@@robojax thanks
@khoerudinfatah8907
@khoerudinfatah8907 2 жыл бұрын
how to add lcd display
@robojax
@robojax 2 жыл бұрын
Check the lcd video so know how to display a value.
@TeohMarcus
@TeohMarcus 4 жыл бұрын
is it possible to measure very small current like 50mA?
@robojax
@robojax 4 жыл бұрын
Yes. There are 5A version and with that you can get better result.
@TeohMarcus
@TeohMarcus 4 жыл бұрын
Thank you for the info !
@marylim3886
@marylim3886 4 жыл бұрын
Can the current sensor handle a large amount of current? what will happen to the current sensor if there will be an overcurrent (example: short circuit)? And how will it affect the MCU?
@robojax
@robojax 4 жыл бұрын
The excess current will affect only the PCB copper path which might melt. The current is senses using hall effect so there is not harm to the MCU.
@marylim3886
@marylim3886 4 жыл бұрын
@@robojax Thank you so much!
@robojax
@robojax 4 жыл бұрын
You are welcome.
@nemomickey5305
@nemomickey5305 4 жыл бұрын
Its work for AC current 220v ?
@robojax
@robojax 4 жыл бұрын
I just played the video and in the first 20 seconds I have explained it. Yes it does . There is a link to the latest video and new code.
@karansahil2735
@karansahil2735 4 жыл бұрын
Can I connect 230v AC supply neutral to 10A Current Sensor
@robojax
@robojax 4 жыл бұрын
Hi, Yes you can. See the datasheet.
@karansahil2735
@karansahil2735 4 жыл бұрын
Thanks bro for your response
@robojax
@robojax 4 жыл бұрын
You are welcome.
@my_india_2.0
@my_india_2.0 7 ай бұрын
Code and connection is proparly but out put is no right data their which problem is curren sensor.....?
@robojax
@robojax 7 ай бұрын
use the latest video where I have provided my library to make the code clean kzfaq.info/get/bejne/aaljZqehyLnbeas.html
@MrKockabilly
@MrKockabilly 3 жыл бұрын
2:36 I guess the actual current (of up to 30A) doesn't actually pass thru the chip's pins (it takes a huge wire to handle 30A!). ACS712 works thru indirect sensing. As can be seen in 2:44 the actual current Ip merely passes nearby and the chip has terminals to sense the magnetic field strength and output into proportionate voltage accordingly.
@robojax
@robojax 3 жыл бұрын
The actual current must pass through PCB and through the chip to get measurement. I've shown the datasheet and pins.
@xiaogecheng3335
@xiaogecheng3335 4 жыл бұрын
Hi Sir, thank you for the videos, I have found something I needed. I have one question is the IP+ of the current sensor should be connect to load or power source negative ? Because I have seen some connecting IP+ to load instead of power source negative like your in 5.54. Thanks in advance !
@robojax
@robojax 4 жыл бұрын
Hi, I watched the video to reply to you. at 4:44 (click on 4:44) to see it.
@astlejohn4039
@astlejohn4039 3 жыл бұрын
How can i connect multiple current sensors with this code?
@robojax
@robojax 3 жыл бұрын
see the link in the description. Watch the latest video. Create new object for 2nd or 3rd sensors.
@astlejohn4039
@astlejohn4039 3 жыл бұрын
@@robojax yes i got it thanks
@tnamen1307
@tnamen1307 5 жыл бұрын
Can it be used to control car windows close and open automatically??
@robojax
@robojax 5 жыл бұрын
Hi, this device can only gives you the amount of current (in ampere. A). You will need to know the power the motor needed to open or close the window, then find a 12V power supply that can supply that amount of current.
@tnamen1307
@tnamen1307 5 жыл бұрын
@@robojax I'm try to make one touch auto open and close windows on all 3 windows of i20, driver side already company fitted with this feature. So, if I can get the required current, will this module work and how to connect it? Thanks.
@robojax
@robojax 5 жыл бұрын
Your projects needs some work. You need to disconnect the switch from the door of your car and make them all pass through the switches they have to they are always ON and you will need 4 channel relay like this kzfaq.info/get/bejne/jcidZrB0ss2xj6c.html or something else to control them. You can program this module so all 4 day can be turned ON or OFF. I do not have time to do this but you can start from this. 1-First make sure this module can work and instead of turning the window, connect 12V or 5V bulbs. Making sure they work the way you wan them to work. 2-then change the switches on your car so they are always ON 3-connect this relay with your push button to the car
@jayefordcamasura3919
@jayefordcamasura3919 3 жыл бұрын
7:14 what const should i use if I have 10A?
@robojax
@robojax 3 жыл бұрын
Old video. I should have deleted it. See this video kzfaq.info/get/bejne/aaljZqehyLnbeas.html
@jayefordcamasura3919
@jayefordcamasura3919 3 жыл бұрын
why? is there a mistake in the code.? i tried using it and it works. anyways, thank you I'll check the other video ps: mine was 20A so nvm the first question
@robojax
@robojax 3 жыл бұрын
No. Libra makes us very simple to use
@rohitkumargej4375
@rohitkumargej4375 4 жыл бұрын
how can i read the RMS value of AC..?
@robojax
@robojax 4 жыл бұрын
You can't do it with this. Mathematically you can calculate it within code.
@rohitkumargej4375
@rohitkumargej4375 4 жыл бұрын
@robojax can you please help me out how can i calculate it in code....
@robojax
@robojax 4 жыл бұрын
I did google search and here is one result forum.arduino.cc/index.php?topic=506683.0
@rohatkahraman7925
@rohatkahraman7925 4 ай бұрын
I give a different voltage but neither the current nor the voltage changes
@robojax
@robojax 4 ай бұрын
Measuring 5A-30A AC and DC current using Allegro ACS712 with Robojax Library (code added into video) kzfaq.info/get/bejne/aaljZqehyLnbeas.html
@rodinsuniga5549
@rodinsuniga5549 5 жыл бұрын
will this also work if I use DC power?
@robojax
@robojax 5 жыл бұрын
I have explained at right at beginning and then at 00:36 (click on 00:36 to see it).
@rodinsuniga5549
@rodinsuniga5549 5 жыл бұрын
@@robojax my bad, sorry. Anyway thank you for this.
@robojax
@robojax 5 жыл бұрын
no problem. :-)
@Anthony-fz4cq
@Anthony-fz4cq 4 жыл бұрын
Can we measure 0.07to 1 A?
@robojax
@robojax 4 жыл бұрын
I have explained it. Please watch without skipping as don't say extra stuff on my tutorials. For 70mA you can't use the 30A version. If you use 5A version, yes you can measure it. Here the latest video where I have written library to make to more clean code and accurate : kzfaq.info/get/bejne/aaljZqehyLnbeas.html
@GarArsenault
@GarArsenault 5 жыл бұрын
How do you display the results?
@robojax
@robojax 5 жыл бұрын
Just updated the description with the link my other video that shows you how to display the current on LCD1602 or LCD2004 display.
@samhsavdr9647
@samhsavdr9647 6 жыл бұрын
Like video
@robojax
@robojax 6 жыл бұрын
Thank you.
@TheGarudaINA
@TheGarudaINA 6 жыл бұрын
Hi sir, but your code was not working on mine (30A sensor + i didn't change the code at all) The current output was V: 1.549V, I: 23.47A while there was no load connected to the sensor.
@robojax
@robojax 6 жыл бұрын
for ACS712ELCTR-30A-T, then 66mV per Ampere. and your value 23.47 x 0.066= 1.549V is correct. then your wiring should be checked. Disconnect the current sensor from arduino what do you read? is your voltage 5V. Check the voltage.
@TheGarudaINA
@TheGarudaINA 6 жыл бұрын
I've check with multimeter, the VCC is about 4.8V (sometimes 4.6V) and the VOut is about 2.4V (sometimes 2.3V) and also I changed all the wires with the new one. Does my sensor is fault?
@robojax
@robojax 6 жыл бұрын
it seems the value is correct. this is where you have no current? correct? it is possible the module be bad. but do you have any load connected? make sure you connect a load that draws at least 5A so you see it easily.
@TheGarudaINA
@TheGarudaINA 6 жыл бұрын
Btw, what is the "correct" that you meant? Yes, sir. When I got the Amps value as a I mentioned above, the module didn't connect to anything. My sensor was fault or that was the ACS712 characteristics (having high error rate)?
@dariezsarangheow879
@dariezsarangheow879 5 жыл бұрын
sir my problem same with you how fixed this?im beginner in this....please help me thankyou.... im from indonesian
@nguyenhuy329
@nguyenhuy329 5 жыл бұрын
hi sir,I supply the power but the signal is no current, please help me!!!
@robojax
@robojax 5 жыл бұрын
If you don't see the current, then 1-you dont have a load connected. Without load you will not see current. 2 - Wiring is incorrect 3-Code has issue.
@jdcompany9868
@jdcompany9868 3 жыл бұрын
In this video program is not mention, weather for AC or DC current reading. Check kzfaq.info/get/bejne/m56Dg7aVqMiRiWQ.html this
@CapApollo
@CapApollo 4 жыл бұрын
careful.. those connectors are rated for 8 amp.. so if you plan to use 30amp there will be fire..
@robojax
@robojax 4 жыл бұрын
Thank you. Where did you get the datasheet or information for the connector. Please share.
@aravindnc
@aravindnc 3 жыл бұрын
Why didn't you just put a wiring diagram for easy understanding ?
@robojax
@robojax 3 жыл бұрын
It is extra work. I have provided it for people who purchased my course at udemy. They get all code, library and wiring diagram once they buy the course.
@robojax
@robojax 3 жыл бұрын
You didn’t reply? You could say: oh , okay
@Interventor-xn5bs
@Interventor-xn5bs Жыл бұрын
I do not believe this fragile PCB is able to handle 30A current ! Impossible, mainly, if current is from inductive load.
@robojax
@robojax Жыл бұрын
I agree and mentioned it.
@sksuman4400
@sksuman4400 4 жыл бұрын
Sir, I'm getting negative value
@robojax
@robojax 4 жыл бұрын
it is okay. your module is unidirectional and if you flip the load wiring you should get positive.
@sksuman4400
@sksuman4400 4 жыл бұрын
@@robojax ok sir
@DmitriyZaychenko
@DmitriyZaychenko 3 жыл бұрын
these modules operate at 90% of their rated current. it does not depend on temperature. sorry, now I don't remember why, but if it's interesting, write and I'll find it.
@robojax
@robojax 3 жыл бұрын
interesting point. thanks.
@candrasniper3404
@candrasniper3404 Жыл бұрын
The deviation is too big for this sensor. And when you restart it, it will keep change the zero current voltage. I'm frustated using this sensor. And it has wasted my money and time.
@robojax
@robojax Жыл бұрын
Please use the latest video with the library I have written kzfaq.info/get/bejne/aaljZqehyLnbeas.html
@Athlon-sf7ug
@Athlon-sf7ug 4 жыл бұрын
Junk, The sensor is chip China junk. You are 20% off from the right value.
@robojax
@robojax 4 жыл бұрын
This is very accurate. Check your code or connection.
Measure DC Voltage and Current with Arduino
37:29
DroneBot Workshop
Рет қаралды 195 М.
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 35 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 29 МЛН
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 47 МЛН
ZMPT101B 250V AC Voltage Sensor with Arduino, Voltage Monitoring
9:18
Electronic Clinic
Рет қаралды 20 М.
ACS712 Current Sensor with Arduino - Measure AC and DC up to 30 amps
14:05
How To Use Arduino Current Sensor ASC712
4:28
Aatik's lab
Рет қаралды 83 М.
Measure Any AC Current up to 30A with ACS712 and Arduino
25:52
Using the ACS712 Hall Effect Current Sensor Module (part 1)
6:45
Julian Ilett
Рет қаралды 353 М.
Different Ways for Measuring Current With Arduino
13:32
Electronoobs
Рет қаралды 71 М.
Measuring AC Current with Arduino
19:29
misperry
Рет қаралды 72 М.
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 340 М.
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,8 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 3,1 МЛН
Как слушать музыку с помощью чека?
0:36
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 1,1 МЛН