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

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

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

  • @robojax
    @robojax  4 ปีที่แล้ว

    Please watch latest (better) video for ACS712 th-cam.com/video/3C33DpcSwIw/w-d-xo.html with clean library

  • @stormbytes
    @stormbytes 4 ปีที่แล้ว +11

    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 TH-cam spend needless minutes going on the round about. Thank you and thank you. Exactly what I was looking for. Very helpful.

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

      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 th-cam.com/video/3C33DpcSwIw/w-d-xo.html

  • @DIYPINOY
    @DIYPINOY 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

      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

  • @tomtouma
    @tomtouma 2 ปีที่แล้ว

    So the current passes through the board and under the hall sensor. How do those copper traces handle 30amps? They look thin.

    • @robojax
      @robojax  2 ปีที่แล้ว

      Please watch the latest video with the library I have written and discussed the current path on PCB here th-cam.com/video/3C33DpcSwIw/w-d-xo.html

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

    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

  • @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.

  • @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.

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

    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  6 ปีที่แล้ว

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

  • @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 th-cam.com/video/3C33DpcSwIw/w-d-xo.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

  • @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 th-cam.com/video/58XWVDnB7Ss/w-d-xo.html

    • @nayyarmehmood341
      @nayyarmehmood341 4 ปีที่แล้ว

      @@robojax thanks

  • @aksharchavan5818
    @aksharchavan5818 3 ปีที่แล้ว

    It is an awesome video. Explanations are very clear and detailed.. thanks for the efforts....

  • @HaseebKhan-hc8wi
    @HaseebKhan-hc8wi 3 ปีที่แล้ว

    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.

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

    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  8 หลายเดือนก่อน

      Lesson 10: Conditional Statement in Arduino and Using Array | SunFounder Robojax
      th-cam.com/video/GbKZ9W-xyvE/w-d-xo.html

  • @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 th-cam.com/video/3C33DpcSwIw/w-d-xo.html and do not worry about the values.

  • @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.

  • @luitelumesh
    @luitelumesh 5 ปีที่แล้ว

    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  5 ปีที่แล้ว +1

      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 5 ปีที่แล้ว

      I have already subscribed your channel , please check that again

    • @robojax
      @robojax  5 ปีที่แล้ว

      Thank you very much.

    • @luitelumesh
      @luitelumesh 5 ปีที่แล้ว

      What about answer sir? 😀

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

      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

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

    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  4 ปีที่แล้ว

      Hi and thanks. I would suggest using Winson sensors introduced in this video th-cam.com/video/z-s8UvCWGxY/w-d-xo.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.

  • @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: th-cam.com/video/3C33DpcSwIw/w-d-xo.html

  • @Ram_Ram_Ji_108
    @Ram_Ram_Ji_108 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      First of all you are looking at outdated video. I have latest video with library which is more accurate and clean here th-cam.com/video/3C33DpcSwIw/w-d-xo.html
      Here is how you can measure any voltage using arduino th-cam.com/video/t8xwrVj2aFs/w-d-xo.html
      or if you are interested to measure current using shunt resistor th-cam.com/users/robojaxTVsearch?query=shunt or energy meter th-cam.com/users/robojaxTVsearch?query=energy

  • @muhammedatav4916
    @muhammedatav4916 3 ปีที่แล้ว

    What did you connect as load in this circuit?

    • @robojax
      @robojax  3 ปีที่แล้ว

      You can see the load used in this video th-cam.com/video/8NuN1Yk91uU/w-d-xo.html at 19:32. I had to watch the video, find the time and bring it to you.

  • @Dr_Muhammad_Ahmad
    @Dr_Muhammad_Ahmad 4 ปีที่แล้ว

    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  4 ปีที่แล้ว +1

      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 th-cam.com/video/3C33DpcSwIw/w-d-xo.html

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

    Wonderful work....
    Wanted to know how can i connect relay in this same circuit, to cuttoff voltage supply when it overloads??

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

      very simple if(current >12) {//do something here}. here video on how to control relay th-cam.com/video/g6k8sPJyif8/w-d-xo.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.

  • @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.

  • @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

  • @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.

  • @samueladitya1729
    @samueladitya1729 5 ปีที่แล้ว

    can I measure reverse current to monitor battery charging and discharging?

    • @robojax
      @robojax  5 ปีที่แล้ว

      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.

  • @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. th-cam.com/video/X9Ka-om9IBM/w-d-xo.html

  • @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.

  • @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.

  • @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

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

    What does line 4(cutOffLimit) means and why you set it to 1.01?

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

      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.

  • @my_india_2.0
    @my_india_2.0 ปีที่แล้ว

    Code and connection is proparly but out put is no right data their which problem is curren sensor.....?

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

      use the latest video where I have provided my library to make the code clean th-cam.com/video/3C33DpcSwIw/w-d-xo.html

  • @vaibhavjambhulkar2331
    @vaibhavjambhulkar2331 5 ปีที่แล้ว

    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  5 ปีที่แล้ว

      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

  • @marylim3886
    @marylim3886 5 ปีที่แล้ว

    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  5 ปีที่แล้ว

      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 5 ปีที่แล้ว

      @@robojax Thank you so much!

    • @robojax
      @robojax  5 ปีที่แล้ว

      You are welcome.

  • @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 th-cam.com/video/3C33DpcSwIw/w-d-xo.html

  • @abdallahbaraka3931
    @abdallahbaraka3931 4 ปีที่แล้ว

    How could i connect it to node mcu esp8266

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

      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 th-cam.com/video/UXKu2Xtwj7c/w-d-xo.html so learn and combine them. Good luck.

  • @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

  • @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 ปีที่แล้ว +1

      No we cant't. Here my video on how to measure any DC voltage with Arduino th-cam.com/video/t8xwrVj2aFs/w-d-xo.html and Current/Energy th-cam.com/video/UK8Kvk8wFmw/w-d-xo.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.

  • @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 ปีที่แล้ว +1

      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 th-cam.com/video/58XWVDnB7Ss/w-d-xo.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

  • @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?

  • @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.

  • @TeohMarcus
    @TeohMarcus 5 ปีที่แล้ว

    is it possible to measure very small current like 50mA?

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

      Yes. There are 5A version and with that you can get better result.

    • @TeohMarcus
      @TeohMarcus 5 ปีที่แล้ว

      Thank you for the info !

  • @kennethjosephsoria2239
    @kennethjosephsoria2239 5 ปีที่แล้ว

    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  5 ปีที่แล้ว

      This module and code can do this. just put "if" statement and turn something ON or OFF using relay.

  • @karansahil2735
    @karansahil2735 5 ปีที่แล้ว

    Can I connect 230v AC supply neutral to 10A Current Sensor

    • @robojax
      @robojax  5 ปีที่แล้ว

      Hi, Yes you can. See the datasheet.

    • @karansahil2735
      @karansahil2735 5 ปีที่แล้ว

      Thanks bro for your response

    • @robojax
      @robojax  5 ปีที่แล้ว

      You are welcome.

  • @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.

  • @hytrozion
    @hytrozion 5 ปีที่แล้ว

    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  5 ปีที่แล้ว

      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 5 ปีที่แล้ว

      @@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  5 ปีที่แล้ว

      You are welcome. 😃

  • @jitendrapatil5184
    @jitendrapatil5184 5 ปีที่แล้ว

    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

  • @jorgelaurousman4861
    @jorgelaurousman4861 6 ปีที่แล้ว

    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  6 ปีที่แล้ว

      change the value in the line float cutOffLimit = 1.01; to zero I have explained this in the video. Watch it again.

  • @SanjeevKumar-cq9kk
    @SanjeevKumar-cq9kk 5 ปีที่แล้ว

    Hello Sir can I use Two (2) -ACS712 current sensor module simultaneously with one Arduino board for measurement of current.

    • @SanjeevKumar-cq9kk
      @SanjeevKumar-cq9kk 5 ปีที่แล้ว

      For this code only. Sorry I have forgotten to mention

    • @robojax
      @robojax  5 ปีที่แล้ว

      Hello, you can get the idea from this other sensor for 4 sensor: robojax.com/learn/arduino/?vid=robojax-allegro_ACS758

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

    I give a different voltage but neither the current nor the voltage changes

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

      Measuring 5A-30A AC and DC current using Allegro ACS712 with Robojax Library (code added into video)
      th-cam.com/video/3C33DpcSwIw/w-d-xo.html

  • @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

  • @GPWAWA197504
    @GPWAWA197504 5 ปีที่แล้ว

    Very good material. Greetings from Poland.

    • @robojax
      @robojax  5 ปีที่แล้ว

      Thank you very much. Ahmad from Canada.

  • @tnamen1307
    @tnamen1307 5 ปีที่แล้ว

    Can it be used to control car windows close and open automatically??

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

      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 th-cam.com/video/Wbm3MCMgM_s/w-d-xo.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

  • @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 ปีที่แล้ว +1

      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 th-cam.com/video/3C33DpcSwIw/w-d-xo.html

  • @jean-claudegolovine5725
    @jean-claudegolovine5725 3 ปีที่แล้ว +1

    Great video. Thank you

  • @khoerudinfatah8907
    @khoerudinfatah8907 3 ปีที่แล้ว

    how to add lcd display

    • @robojax
      @robojax  3 ปีที่แล้ว

      Check the lcd video so know how to display a value.

  • @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.

  • @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

  • @lightofhopeph
    @lightofhopeph 4 ปีที่แล้ว

    This is awesome video, do you also have a video for the nodemcu + ACS712 ?

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

      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👍

  • @giacobbecerrotta6049
    @giacobbecerrotta6049 5 ปีที่แล้ว

    Hello,
    can you help me for small code that calculate Voltage on the pin -IP 3/4 ?
    Tnx Jack

    • @robojax
      @robojax  5 ปีที่แล้ว

      Hi, sorry I did not understand which pin? If you want to just read DC voltage, here is the video th-cam.com/video/TbLdAQpE4jE/w-d-xo.html but if you want to read any DC voltage, you need two resistor and watch this video th-cam.com/video/FaoKzi7tgME/w-d-xo.html

  • @WalkundeSuyash
    @WalkundeSuyash 6 ปีที่แล้ว

    Which Software is that RIGOL?...How can you change current through that?

    • @robojax
      @robojax  6 ปีที่แล้ว

      this is Rigol Electronic load which comes with software. I have huge hardware connected as load.

  • @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.

  • @jrotor3301
    @jrotor3301 5 ปีที่แล้ว

    Does the ESP32 have analog inputs so this sensor can be used to transmit readings over wifi? Thanks, really enjoy your videos.

    • @TheDemockery
      @TheDemockery 5 ปีที่แล้ว

      ESP32 does have analog inputs with ADC converter.

    • @robojax
      @robojax  5 ปีที่แล้ว

      Yes it does and here is my video on that th-cam.com/video/UXKu2Xtwj7c/w-d-xo.html

  • @HarshChauhan-ej5gf
    @HarshChauhan-ej5gf 5 ปีที่แล้ว

    can we apply 230 v dc and use load as dc motor

    • @robojax
      @robojax  5 ปีที่แล้ว

      I have provided the datasheet for this in the same page where the code is, you can see the information.

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

    This is better tutorials

  • @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 : th-cam.com/video/3C33DpcSwIw/w-d-xo.html

  • @FLEXXANI
    @FLEXXANI 5 ปีที่แล้ว

    what power source are you using?

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

      I have 50V 60A power supply.

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

    Please share PCB design plsss

  • @dtec5993
    @dtec5993 6 ปีที่แล้ว

    Can we feed mains to sensor
    I mean will it work with 250Volt AC

    • @robojax
      @robojax  6 ปีที่แล้ว

      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.

  • @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.

  • @rodinsuniga5549
    @rodinsuniga5549 6 ปีที่แล้ว

    will this also work if I use DC power?

    • @robojax
      @robojax  6 ปีที่แล้ว

      I have explained at right at beginning and then at 00:36 (click on 00:36 to see it).

    • @rodinsuniga5549
      @rodinsuniga5549 6 ปีที่แล้ว

      @@robojax my bad, sorry. Anyway thank you for this.

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

      no problem. :-)

  • @GarArsenault
    @GarArsenault 6 ปีที่แล้ว

    How do you display the results?

    • @robojax
      @robojax  6 ปีที่แล้ว

      Just updated the description with the link my other video that shows you how to display the current on LCD1602 or LCD2004 display.

  • @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.

  • @Aadhil
    @Aadhil 6 ปีที่แล้ว

    can i measure the current of AC voltage of 230V?

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

      It can work your voltage yes. Check the page where the code is and you can see the datasheet.

  • @crooked8168
    @crooked8168 6 ปีที่แล้ว

    Detects 220V @ 20 amps? Thanks.

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

      In the description and in the code page I mentioned that it works with AC and DC . yes if you have the 20A version.

  • @juancarlosbarragan8436
    @juancarlosbarragan8436 4 ปีที่แล้ว

    Amazing job mate. Thanks.

    • @robojax
      @robojax  4 ปีที่แล้ว

      Thank you too!

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

    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.

  • @SanthoshKumar-ud4ui
    @SanthoshKumar-ud4ui 5 ปีที่แล้ว

    Thankyou very much,I have searched various codes,Only your code works, Thankyou Sir.

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

      You are welcome. Good to know you found it useful.

    • @SanthoshKumar-ud4ui
      @SanthoshKumar-ud4ui 5 ปีที่แล้ว

      Bro, actually the sensitivity values are given as 185,100,66 instead of 0.185,0.100,0.066

  • @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.

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

    OMG THIS IS WHAT IM REALLY LOOKING FOR. YOU EXPLAIN EVERY DETAILS THAT IVE BEEN NEEDING ALL THESE DAYS😭😭 THANKS ALOT

    • @robojax
      @robojax  5 ปีที่แล้ว

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

  • @rajugajavelly3610
    @rajugajavelly3610 4 ปีที่แล้ว

    really helpful bro...nice vedio

    • @robojax
      @robojax  4 ปีที่แล้ว

      you are welcome.

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

    Nice one again sir
    Nice Explain

    • @robojax
      @robojax  5 ปีที่แล้ว

      Thank you.
      Hey I found your comment now. TH-cam Studio has new feature where it shows me comments that I have not replied.

  • @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

  • @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.

  • @youtubeoemerf
    @youtubeoemerf 5 ปีที่แล้ว

    thanks a lot, that is extremely useful video. keep it up, please

    • @robojax
      @robojax  5 ปีที่แล้ว

      Hi, then please subscribe. I have spent hours writing code and testing it. You simply click and subscribe.

  • @MA_190
    @MA_190 5 ปีที่แล้ว

    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  5 ปีที่แล้ว

      You are welcome. I have written this code for someone for another current sensor which you can learn from codeshare.io/GAod7k

  • @giacobbecerrotta6049
    @giacobbecerrotta6049 5 ปีที่แล้ว

    I have on -IP 3/4 50Volt
    Jack

    • @robojax
      @robojax  5 ปีที่แล้ว

      Nice.

  • @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

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

    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.

  • @fathurrachim7919
    @fathurrachim7919 4 ปีที่แล้ว

    Thank you

    • @robojax
      @robojax  4 ปีที่แล้ว

      You're welcome

  • @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 ปีที่แล้ว +1

      Hi, I watched the video to reply to you. at 4:44 (click on 4:44) to see it.

  • @sksuman4400
    @sksuman4400 4 ปีที่แล้ว

    Sir, I'm getting negative value

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

      it is okay. your module is unidirectional and if you flip the load wiring you should get positive.

    • @sksuman4400
      @sksuman4400 4 ปีที่แล้ว

      @@robojax ok sir

  • @Interventor-xn5bs
    @Interventor-xn5bs 2 ปีที่แล้ว

    I do not believe this fragile PCB is able to handle 30A current ! Impossible, mainly, if current is from inductive load.

    • @robojax
      @robojax  2 ปีที่แล้ว

      I agree and mentioned it.

  • @DmitriyZaychenko
    @DmitriyZaychenko 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      interesting point. thanks.

  • @jdcompany9868
    @jdcompany9868 4 ปีที่แล้ว

    In this video program is not mention, weather for AC or DC current reading. Check th-cam.com/video/e8SPSdCb-Y0/w-d-xo.html this

  • @candrasniper3404
    @candrasniper3404 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

      Please use the latest video with the library I have written th-cam.com/video/3C33DpcSwIw/w-d-xo.html

  • @Athlon-sf7ug
    @Athlon-sf7ug 5 ปีที่แล้ว

    Junk, The sensor is chip China junk. You are 20% off from the right value.

    • @robojax
      @robojax  5 ปีที่แล้ว

      This is very accurate. Check your code or connection.

  • @samhsavdr9647
    @samhsavdr9647 6 ปีที่แล้ว

    Like video

    • @robojax
      @robojax  6 ปีที่แล้ว

      Thank you.