Measuring 5A-30A AC and DC current using Allegro ACS712 with Robojax Library (code added into video)

  Рет қаралды 50,630

Robojax

Robojax

Күн бұрын

Learn how to use ACS712 5A, 20A and 30A Hall Effect Current Sensor to measure AC and DC current. Measuring 5A and 30A DC and 840W AC load current is demonstrated.
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 🔔.😊 .
*** 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
Download library and code this video: robojax.com/L/?id=136
Jump to different section of video by clicking on the player time bar
00:00 Start
00:51 Introduction
01:31 Hardware Explained
02:20 Datasheet Viewed
05:55 Wiring Explained
Get wiring diagram from my Arduino Course
07:36 Code settings explained (library download shown)
Full explanation of code at my Arduino Course
12:28 5A module demonstration
14:35 30A module demonstration
17:07 AC current measurement
19:37 Conclusion remarks
Measure any DC voltage with Arduino (video) : • Built Voltage Sensor w...
Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
Tutorial by Ahmad Shamshiri form Canada
****************************
Get early access to my videos via Patreon and have your name mentioned at end of very videos I publish on KZfaq here: robojax.com/L/?id=97 (watch until end of this video to list of my Patrons)
****************************
If you found this tutorial helpful, please support me so I can continue creating content like this. (PayPal): bit.ly/rj-paypal
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_wifi #robojax_current

Пікірлер: 156
@usmanumer9871
@usmanumer9871 3 жыл бұрын
u always make my projects easy to make . thanks ahamd
@robojax
@robojax 3 жыл бұрын
Glad to hear that. you are welcome.
@electronic7979
@electronic7979 4 жыл бұрын
It was a nice video with useful information. thank you for sharing.
@robojax
@robojax 4 жыл бұрын
you are welcome.
@erickharvest
@erickharvest 2 жыл бұрын
Thank you for the video. I have tried it out however i am getting fluctuating current when i compare to a digital multimeter, is there something that needs to be added on the circuit to get a constant current reading?
@josephdada8434
@josephdada8434 3 жыл бұрын
Thank you sir, this really help me
@robojax
@robojax 3 жыл бұрын
Most welcome!
@paulranaweera437
@paulranaweera437 2 жыл бұрын
I might have looked at all the sketches on the internet but non was accurate as for thos video. Thank you for making a library for this. Keep up the good work
@paulranaweera525
@paulranaweera525 2 жыл бұрын
I need some help getting the data onto a Oled, im using Adafruit_SSD1306.h and cant figure out what i need to put for display.print (); if you can assist
@althuelectronics5158
@althuelectronics5158 Жыл бұрын
Powerful amazing brother
@pccustom403
@pccustom403 2 жыл бұрын
Grate job Robojax
@davidaustin6962
@davidaustin6962 4 жыл бұрын
tiny! love it!
@robojax
@robojax 4 жыл бұрын
Yes. Very accurate.
@RoMecha_lb
@RoMecha_lb 4 жыл бұрын
Always the best👌👌
@robojax
@robojax 4 жыл бұрын
Thanks.
@SmartSolutioner
@SmartSolutioner 4 жыл бұрын
awesome work you are really amazing
@robojax
@robojax 4 жыл бұрын
Thanks. So are you.
@rohankhairnar5720
@rohankhairnar5720 7 ай бұрын
Thanks your video solved my big problem ❤❤❤
@robojax
@robojax 7 ай бұрын
Glad to hear that
@jeffvenqueleir2036
@jeffvenqueleir2036 3 жыл бұрын
i using a nodemcu my Vin = 5 volt but my pins IN are 3.3 volt must i change the Vcc in 3;3 volt or stay with 5 volt the max amp that i going use is max 2.8 amps DC
@lightofhopeph
@lightofhopeph 3 жыл бұрын
Thank you for your tutorial about ACS712 this is awesome 👍 do you have a video for ACS712 with ESP8266/nodemcu board and also measuring Energy in Wh, Voltage, current and power ?
@robojax
@robojax 3 жыл бұрын
You are welcome. For now I don't have video this. I might make video. here is my video on Energy Meter kzfaq.info/get/bejne/i7Foftmcnd2qnas.html and how to measure any voltage using Arduino kzfaq.info/get/bejne/qp6oqtWHz5jFdqc.html . You could search without waiting for my response.
@allfallingmashinen839
@allfallingmashinen839 4 жыл бұрын
Super
@robojax
@robojax 4 жыл бұрын
shukran.
@herrkronen9694
@herrkronen9694 4 ай бұрын
I need to download the library now please !
@robojax
@robojax 4 ай бұрын
Link in description. Also you could got the to Robojax.com and get it.
@noviaanggodo8003
@noviaanggodo8003 3 жыл бұрын
Thank you for the tutorial. I still have a problem when I have zero input current but my 5A sensor read it around 1 A, how can I fix that? and how to convert from A into mA?
@robojax
@robojax 3 жыл бұрын
if at 0A you get1A and test it if at 3A you are reading 4A, then subtract 1. I know there was issue and addressed it with another sensor and library that I wrote. kzfaq.info/get/bejne/sJOja7inqL2rqI0.html I might update this library, but am very busy now.
@biggizmo6041
@biggizmo6041 3 жыл бұрын
thx for the library, now I'm looking to turn this into a Energy meter that I can integrate in a bigger project, any tips on how to do that
@robojax
@robojax 3 жыл бұрын
Just search my channel , I have energy meter .
@josephanderwee8404
@josephanderwee8404 3 жыл бұрын
@Robojax, what does the 2.1KVrms voltage isolation mean? can it be use to measure current for 415V(AC)?
@robojax
@robojax 3 жыл бұрын
it means if you try to measure the current for 2kV, you are okay. above that might be dangrous.
@josephanderwee8404
@josephanderwee8404 3 жыл бұрын
@@robojax Thank you for the clarification Sir.
@robojax
@robojax 3 жыл бұрын
you are welcome.
@OcenaSoft
@OcenaSoft 4 жыл бұрын
I have a question for you. I have made a 16 channel relay module and using16 switches (three wires using separate resistors) and was wondering if i could further use the 16 channel multiplexer to further reduce the wiring and still be able to toggle all the 16 channels independently? in your video you said only one relay at a time? BTW LOVE all you videos and have made so many projects because of them
@robojax
@robojax 4 жыл бұрын
Hi Dave, Thank you for your nice and kind comment. Would you please post your question under the relevant video "16 channel multiplexer"? this way when I answer, other people will also learn. snipboard.io/Fq5oST.jpg
@user-bg3eo2oc4e
@user-bg3eo2oc4e 9 күн бұрын
Need Help with connection of ACS712, L298N, Arduino, DC Motor
@aor244
@aor244 2 жыл бұрын
Hi Robojax! Im doing my final career project and Im building an EPS for a Cubesat. I have to use this type of current sensors with Arduino and MATLAB (college requirement) and I tried to measure 20mA current from Solar Array, but I couldnt read anything (because sensitivity I guess). Im using ACS712 30A with 66mV/A. Is is possible to use the 30A unit or the 5A unit for measurements of 20mA to 500mA? I guess this values are to low that the sensitivity doesnt variate the voltage enough to give measures. Thanks in advance! :)
@robojax
@robojax 2 жыл бұрын
Hi, Even 5A range is too high for 30mA. Use 2% resistor to measure very accurately. I have another video showing how to measure the voltage. The current would be voltage value of the resistor. Just search my channel
@jelkabisa
@jelkabisa 3 жыл бұрын
Hello thank you for this video. I'm using a WEMOS D1 ESP8266 board and my max Voltage measurement is 3.2, I want to measure around 5V input, what would you suggest I do? I tried to convert it with a factor but I'm not sure it is the correct way to do this. what would you suggest?
@robojax
@robojax 3 жыл бұрын
Just set the voltage to 3.3v and it should work
@jelkabisa
@jelkabisa 3 жыл бұрын
@@robojax Hello, I tried measuring 4V and the serial monitor shows 1024 corresponding to 3.2V which is the limit. Only lower voltages give correct values on serial monitor. Higher than 3.2 V it shows just 3.2 as it is the limit. How can I keep manipulate this so that it shows the correct values without changing my board.
@brunopedro3765
@brunopedro3765 4 жыл бұрын
Hello, I'm using an ESP-8266 nodemcu to measure the current on an AC load(230V, 50Hz). I connected NodeMCU via USB to laptop, and I'm powering the ACS712 trough 5V on breadboard. I connected GND of ESP-8266 to GND of ACS712. Using your code and library I get 13Amps with no load, and no change when I put a 700W load...
@robojax
@robojax 4 жыл бұрын
Hi, first should use this Arduino. I have not tested it with ESP8266 but it might work. I have no idea what you do wrong. So try it on Arduino UNO make sure it works then try it on ESP module.
@azizhajri8670
@azizhajri8670 Жыл бұрын
@@robojax hi can i use ACS712-30A on an AC load (220 v , 50hz ) !? and thank u
@berkay2148
@berkay2148 Жыл бұрын
With acs712 30A version, how can we use robojax library for a current limiting circuit at 30 kHz fixed according to current values. Can you give the code for this?
@robojax
@robojax Жыл бұрын
Code and library is there and the library works based the data sheet. The link in description
@parthsb
@parthsb 3 жыл бұрын
great video, i wanted to make an under/over voltage DC load protection on my arduino where i use DC source as input. is it possible to do so. if yes, can you please help me with it.
@robojax
@robojax 3 жыл бұрын
I have written library for Winsin sensors. Here is the protection video kzfaq.info/get/bejne/rNlngdpilZ2lf6M.html buy this is video requires you to watch the main Winson sensors video. You can apply the same method mention with this video to read any voltage using Arduino kzfaq.info/get/bejne/qp6oqtWHz5jFdqc.html
@alexandruprozoreanu6621
@alexandruprozoreanu6621 3 жыл бұрын
Hello, Is it normal for arduino to display values ​​in my Serial Monitor even if the sensor is not connected to the board? Current: 25.956A Avg: 25.919A Current: 25.882A Avg: 25.909A Current: 25.956A Avg: 25.910A I receive values ​​without the sensor being connected, and when I connect it it doesn't change anything.
@robojax
@robojax 3 жыл бұрын
yes. when the Analog pin is not connected you will get some value .it should be connected.
@AGHunter1992
@AGHunter1992 4 жыл бұрын
Hello I'm still having issues with my sensor getting a phase current waveform from my motor. Is it possible that the voltage is too high at 24v 15A?
@robojax
@robojax 4 жыл бұрын
this can work with 2000V I believe. See the datasheet but it is very high.
@AGHunter1992
@AGHunter1992 4 жыл бұрын
@@robojax I can't think of any reason why the sensor wouldn't notice the power change. It has a current reading and then when I turn the power on the sensor outputs seems as if nothing has happened.
@AGHunter1992
@AGHunter1992 4 жыл бұрын
I think because I need PWM rejection for inline motor current sensing
@claudioabado3317
@claudioabado3317 Жыл бұрын
Should I buy an R4 or R3? Will your libraries be compatible with R4? I'm interested in current sensing, for the moment.
@robojax
@robojax Жыл бұрын
Current sensing is done by measuring voltage. So we use analog input. it does not mater if you use R3 or R4. I have not used the R4 and just purchased it. it seems better for other reasons.
@bradhollan6559
@bradhollan6559 3 жыл бұрын
You indicate in your video and the allegro data sheet that this device can measure both AC and DC current. I have an application where the current to be measured is sometimes AC and sometimes DC. Do I need to specify which current I am measuring or does it matter.
@robojax
@robojax 3 жыл бұрын
no you don't. your sensor does it for you. Just select the right sensor.
@bradhollan6559
@bradhollan6559 3 жыл бұрын
@@robojax When you say just select the right sensor you are referring to the amperage correct?
@tin2001
@tin2001 4 жыл бұрын
It's good you mentioned the bad design of the PCB.... In addition to the problem with high current you mentioned, there appears to be terrible separation between the 5V measurement side and the potentially high voltage side. The chip boasts a 2.1kV isolation, but that PCB looks like it could easily fail well below that (possibly even at 240v mains once it gets a bit of dust on it).
@robojax
@robojax 4 жыл бұрын
yes. My job was to educate and now it is up them.
@wankicharles3392
@wankicharles3392 Жыл бұрын
I have a 30 A version, my load is very small, 10watts, my sensor is not able to detect any current, what can I do please??
@robojax
@robojax Жыл бұрын
Use a resistor with tolerance of 1% or use 5A sensor
@EducationalTheatre
@EducationalTheatre 2 жыл бұрын
how to show the wattage in serial monitor too
@robojax
@robojax 2 жыл бұрын
Please see this video kzfaq.info/get/bejne/pduWd8Voptrafp8.html
@mikeberger1688
@mikeberger1688 2 жыл бұрын
I bought one of these modules and it seems to me there is no way you should run high current through those traces on the pcb -- has anyone done it? It says good for 20 amps ! (no way?)
@abdulmaez707
@abdulmaez707 4 жыл бұрын
Thanks, Sir i have a question , I want to measure a bulb and show the watt but the problem is the result is not correct. Thanks.
@robojax
@robojax 4 жыл бұрын
You are welcome. You either have the wrong module or selected the wrong module . If you follow the instruction and got the right wiring and module it should work. Watch the video again and look at your wiring.
@jarafeyisa6913
@jarafeyisa6913 4 жыл бұрын
thank you, how i can make read only maximum value my current sensor ?
@robojax
@robojax 4 жыл бұрын
every time it read at that moments that is the maximum. if you want to just get the peak (maximum) and stop. for example if you expect to have 8.5A as max do this if(robojax.getCurrentAverage(300) >=8.5) { Serial.println("MAX 8.5 reached"); while(1); } the while(1) will keep the code stopped at that line. I hope this helps. Thank you for not skipping the ads and keep watching them. This will help me a lot.
@jarafeyisa6913
@jarafeyisa6913 4 жыл бұрын
thank you very much; sir, I want to measure the load current only >=15 and display on the LCD but it reads minimum and maximum value. thanks.
@orientasiprodikelasA
@orientasiprodikelasA 6 ай бұрын
Can I use ACS712 for monitoring motor DC 36V?
@robojax
@robojax 6 ай бұрын
yes
@vks002
@vks002 4 жыл бұрын
Hi, thanks for the nice video and explanation. Can you also tell if the input is isolated from the output pins on the module. I mean would it be safe if I measure AC current and I connect this to the Arduino which will run on its own DC power.
@robojax
@robojax 4 жыл бұрын
Yes, absolutely
@asaryland9424
@asaryland9424 2 жыл бұрын
I know Im kind of off topic but do anyone know of a good site to stream new series online?
@marcellusorlando3414
@marcellusorlando3414 2 жыл бұрын
@Asa Ryland flixportal :D
@asaryland9424
@asaryland9424 2 жыл бұрын
@Marcellus Orlando Thanks, I signed up and it seems to work :D I appreciate it !
@marcellusorlando3414
@marcellusorlando3414 2 жыл бұрын
@Asa Ryland no problem :D
@rameshk.pandey6883
@rameshk.pandey6883 Ай бұрын
Can I use current transformer for 230 voltage
@robojax
@robojax Ай бұрын
Yes . Make sure to select the right sensor. Some of them are only for DC.
@alfredabissi5571
@alfredabissi5571 Жыл бұрын
Hello Mr. Ahmad SHAMSHIRI I am glad to see your video. I have one concern, I tried to use your library to determine the power of a piece of equipment but it did not work. Please how to use your library to calculate the power of the equipment connected with ACS712-5A sensor.
@robojax
@robojax Жыл бұрын
Hello, of course it should not work. It is only current sensor. For power you need voltage then P=v*I where is I is current in ampere. So measure voltage using code in this video Measure any DC voltage with Arduino kzfaq.info/get/bejne/qp6oqtWHz5jFdqc.html
@tohouenoucomlangildas7434
@tohouenoucomlangildas7434 Жыл бұрын
I have the same difficulty. I want to use it in an program but,i don't known how i can use you library.
@user-ei3go3gm7u
@user-ei3go3gm7u 11 ай бұрын
please sir can this work for esp 32
@knowledgegrove1254
@knowledgegrove1254 3 жыл бұрын
Thank you for your video. can you help me to writing micro c code to use ACS712 30A with microcontroller
@robojax
@robojax 3 жыл бұрын
Arduino is microcontroller, if you want it from other platforms, download library and see how it works and use it for your purpose
@dorothyp9186
@dorothyp9186 2 жыл бұрын
Thank you for the video Sir. I would like to ask how to connect the ACS712 if the input is from solar panel, because the input is in a power form, which have voltage and current. and also the arduino code for that, is it different? I'm waiting for your reply. Thank You
@robojax
@robojax 2 жыл бұрын
This works for any pier source.
@dorothyp9186
@dorothyp9186 2 жыл бұрын
@@robojax do I have to connect it with some load, to get the current to be read by the acs712? Or it will be fine without the load because the current is already exist? Thank You
@clixium
@clixium 2 жыл бұрын
@@dorothyp9186 current should be zero or close to zero and constant if no load is connected. Ive made small solar datalogger with this exact sensor and it works perfectly
@jesusreignonhigh6732
@jesusreignonhigh6732 3 жыл бұрын
Will You also teach AVR along with Atmega328p?
@robojax
@robojax 3 жыл бұрын
uno , mega , nano aboard s are AVR arduino.stackexchange.com/questions/1048/whats-the-difference-relationship-between-arduino-and-avr
@ihtsarl9115
@ihtsarl9115 2 жыл бұрын
Hi Thank you for this video. The Title heads keep blocking the view of important parts of the explanations my advice is to display them at the very bottom of the screen and as a single line sentence .
@robojax
@robojax 2 жыл бұрын
Hi, are you referring to the subtitle? Just turn it OFF by clicking on cc when you click on gear ⚙️
@jeffvenqueleir2036
@jeffvenqueleir2036 4 жыл бұрын
Can you connect it with a ads1115 and if they answer is yes are thé caculations then more correct and how do you do that ?
@robojax
@robojax 4 жыл бұрын
I chececk ADS1115 and found it is gain amplifier. Why would you need gain amplifier? for Arduino you don't need anything else. But if you want to use it without arduino, then here my initial video on this module where I have explained the calculation and no library kzfaq.info/get/bejne/erygbM5k3dudeYU.html
@jeffvenqueleir2036
@jeffvenqueleir2036 4 жыл бұрын
@@robojax thanks for thé intel
@claudioabado3317
@claudioabado3317 Жыл бұрын
Where can I buy the cables shown at 7:18?
@robojax
@robojax Жыл бұрын
I watched the video at 7:18 the code is explained.
@donbroady5171
@donbroady5171 2 жыл бұрын
Hello sir..my reading show hex number instead of decimal...did you know how to fix this?? Thank you in advance
@robojax
@robojax 2 жыл бұрын
the provided library will output decimal. you must have changed something. here is the lesson on serial monitor kzfaq.info/get/bejne/jd-Hhaqgpqm7dqc.html
@bashiralao9172
@bashiralao9172 2 жыл бұрын
What do I need to change to use it on ESP32
@robojax
@robojax 2 жыл бұрын
if you watched the explanation, you should know by now that we are measuring voltage from the sensor which represents the current. Search my channel to learn how to measure the voltage using ESP32. Here is how to find Specific KZfaq Video in a channel bit.ly/findKZfaqVideo
@rameshk.pandey6883
@rameshk.pandey6883 Ай бұрын
Can I check for AC voltage 230 Voltage
@robojax
@robojax Ай бұрын
I have shown the word "AC" on the title, on the image and in the video. Yes you can please watch carefully. or watch again. I mentioned it.
@hrishikeshgarud7177
@hrishikeshgarud7177 3 жыл бұрын
after connecting load , my readings(amps) decreases instead of increasing. Using esp32
@robojax
@robojax 3 жыл бұрын
This has not need tested to work with esp mcu
@akul24
@akul24 3 жыл бұрын
This can't work correct with esp because it uses 3.3v and this works best on 5v. You need to connect it to 5v and use 5 to 3v logic level conventer to work with esp modules.
@vicjs216
@vicjs216 Жыл бұрын
I get the following error message in the serial monitor. I have set the correct Vin, model 0 and left the voltage at 5.04. Please advise. Thanks in advance for any help. Robojax Tutorial ACS770 Current Sensor Current: Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. Core 1 register dump: PC : 0x400d14db PS : 0x00060c30 A0 : 0x800d1564 A1 : 0x3ffb21d0 A2 : 0x00000000 A3 : 0x0005b49a A4 : 0x00000000 A5 : 0x00000000 A6 : 0x3ffb833c A7 : 0x00000000 A8 : 0x800d69df A9 : 0x3ffb2180 A10 : 0x00000000 A11 : 0x00000b5b A12 : 0x3ffb21cc A13 : 0x00060023 A14 : 0x00060020 A15 : 0x00000001 SAR : 0x0000001d EXCCAUSE: 0x0000001c EXCVADDR: 0x00000008 LBEG : 0x400862c1 LEND : 0x400862d1 LCOUNT : 0xfffffffd Backtrace: 0x400d14d8:0x3ffb21d0 0x400d1561:0x3ffb2200 0x400d154d:0x3ffb2220 0x400d1561:0x3ffb2250 0x400d146f:0x3ffb2270 0x400d30e5:0x3ffb2290
@robojax
@robojax Жыл бұрын
This is not printed by the library I have written. Code has changed
@vicjs216
@vicjs216 Жыл бұрын
@@robojax Where can I download the correct code?
@hasanbabtain4911
@hasanbabtain4911 3 жыл бұрын
i want to measure the current from the solar directly , so what i can do ? please help
@robojax
@robojax 3 жыл бұрын
this is the example that you use. didn't understand why you didn't get it from this video? I showed power supply. your power supply is solar panel. to measure you need load. so your solar panel must be connected to a load to measure current. without load, there is no current.
@hasanbabtain4911
@hasanbabtain4911 3 жыл бұрын
@@robojax can i contact you in personal to describe to you my problem?
@hasanbabtain4911
@hasanbabtain4911 3 жыл бұрын
@@robojax what kind of load i need to use ? max amp that i will get from solar is 6A
@robojax
@robojax 3 жыл бұрын
you made me watch my video and at 6:25 I've shown how to connect it. and if you don't know load, then you need to start from A, B, C of electricity.
@hasanbabtain4911
@hasanbabtain4911 3 жыл бұрын
You didn't understand me well I create solar data logger with temperature, voltage, current and LDR sensor I used load which is one lamp 12v 55 watt and my solar max output 100 watt The current sensor didn't read well so this the problem
@LemonShark1542
@LemonShark1542 3 жыл бұрын
Can I measure both voltage and current using this module?
@robojax
@robojax 3 жыл бұрын
no. the title says current. so you to use other code and components to do that. but I have energy/power meter code. search my channel. here is the video kzfaq.info/get/bejne/i7Foftmcnd2qnas.html
@LemonShark1542
@LemonShark1542 3 жыл бұрын
@@robojax ohhhh okay thanks because I my project is to measure both voltage and current of the battery, charge by solar panel. I kinda having problems. But thanks for the insight. You really help does who comments. Subs!
@robojax
@robojax 3 жыл бұрын
No problem, my other channel is focusing only on energy like battery solar and charger
@jomfawad9255
@jomfawad9255 2 ай бұрын
will this work on esp32?
@robojax
@robojax 2 ай бұрын
No
@Stawustawu
@Stawustawu 2 жыл бұрын
I have a question: What if I want to use more than one sensor?
@robojax
@robojax 2 жыл бұрын
define another sensor object for another sensor. Watch again if you missed it when I explained the code and mentioned "object". good luck
@Stawustawu
@Stawustawu 2 жыл бұрын
@@robojax Thank you for your answer. I missed it.
@rahmanmr3838
@rahmanmr3838 4 жыл бұрын
I'm surprised that you don't have any video about ESP 01
@robojax
@robojax 4 жыл бұрын
I did not find it interesting and don't know why people are using it.
@rahmanmr3838
@rahmanmr3838 4 жыл бұрын
Robojax It's chip !!! Also good for one or two relays.
@rahmanmr3838
@rahmanmr3838 4 жыл бұрын
Robojax you have lot of video, so I'm surprised why not you showing us how to program ESP01
@robojax
@robojax 4 жыл бұрын
Yes. I will look into it. I them in my lab. Will look into it. Thanks. Thank you for not skipping the ads and keep watching them. This will help me a lot.
@rahmanmr3838
@rahmanmr3838 4 жыл бұрын
Robojax Thanks, your videos is reliable. So I want to follow you to make my WiFi controlled relay for my home.
@harez93
@harez93 4 жыл бұрын
ive tried your code but there seems to be an error. Im not even trying to upload it yet, just compiling the code and error came up. Im putting the error here. Hope you can help. Thanks in advance Arduino: 1.8.12 (Windows 10), Board: "Arduino Uno" In file included from C:\Users\mdhar\AppData\Local\Temp\arduino_modified_sketch_444235\Allegro_Current_reading-1.ino:93:0: D:\Smart Home Automation\Arduino\arduino-1.8.12\portable\sketchbook\libraries\Robojax-AllegroACS-Current-Sensor/Robojax_AllegroACS_Current_Sensor.h:71:2: error: #endif without #if #endif ^~~~~ exit status 1 Error compiling for board Arduino Uno. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@robojax
@robojax 4 жыл бұрын
Hi Danial, Thank you for letting me know. I just fixed the link with new library. Please try it and let me know if there is issue. Thank you for not skipping the ads and keep watching them. This will help me a lot.
@harez93
@harez93 4 жыл бұрын
@@robojax thank you very much for your fast reply and your help. I've tested the codes and its working wonderfully. The readings are very stable even when its set to 30. One problem though, the starting value is too high, at no current, it shows around 150mA. Is there any way i can make this value go down a bit?
@robojax
@robojax 4 жыл бұрын
just subtract the amount you want. like robojax.getCurrentAverage(300) -0.150
@dtn2529
@dtn2529 2 жыл бұрын
Hladám skúsenosti ohladne merania AC prúdu s ACS712. Ale tu nachádzam kadečo, (kdejaké odkazy) , napr učenie s arduino..... Proste nedá sa v tomto vyznať, hoci názov je jasný: "Meranie striedavého a jednosmerného prúdu 5A-30A pomocou ACS712" a nie nejaké učenie arduina. A hlavne , tu by stačil jeden riadok : odkaz na robojax
@reagraphie6126
@reagraphie6126 4 жыл бұрын
please how to Measuring high voltage arduino
@robojax
@robojax 4 жыл бұрын
Here kzfaq.info/get/bejne/fMefft2anNrLfXk.html you can measure any DC voltage .
@udomjanjarassuk1604
@udomjanjarassuk1604 3 жыл бұрын
The AC current should be measured in RMS, not in average. That's why the reading is less than the actual value. Assuming that the current is a sine wave, a simple fix is to multiply the average by 1.11
@robojax
@robojax 3 жыл бұрын
You may be right, but the datasheet does not say anything about extra factor for AC or DC. I have implemented whatever was in datasheet. Thanks for the comment on the matter.
@viraldigital9917
@viraldigital9917 2 жыл бұрын
Sir can you please share AC Current measurement Arduino code
@robojax
@robojax 2 жыл бұрын
This is for AC and DC. It depends on the sensors . I have explained it . Please watch carefully.
@viraldigital9917
@viraldigital9917 2 жыл бұрын
@@robojax thank you so much
@CPU_RAM
@CPU_RAM 2 жыл бұрын
Zero ===0.13 amper ?????
@robojax
@robojax 2 жыл бұрын
السلام علیکم. سوال تانرا نفهمیدم
@CPU_RAM
@CPU_RAM 2 жыл бұрын
@@robojax سلام .شما فارسی بلد هستین ؟ چرا در حالت بدون استفاده ۰.۱۳ آمپر نمایش میده . البته بنده کتابخانه شما را چک کردم و کاملا دقیق هست . اما این مشکل را دارد
@robojax
@robojax 2 жыл бұрын
عوامل مختلف باعث خطا در خواندن مقدار میشود. ۵٪ خطا در‌این کشاف (سنسور ) طبیعی است. من فازسی زبان از خراسان بزرگ‌هستم که مشتمل بر تاجیکستان،ازبکستان،افغانستان، نصف ترکمنستان و قسمتهای شرقی ایران امروزی است. سلامت باشبد
@CPU_RAM
@CPU_RAM 2 жыл бұрын
@@robojax از هم زبانی و اشنایی با شما خوشبختم .برای برطرف کردن این مشکل راهی هست ؟؟
@robojax
@robojax 2 жыл бұрын
بلی است. باید کشاف با دقت بالا بگیرید. و ساده ترین راه آن است که شما اگر 100ملی آمپر را مثلا میخواهید اندازه گیری کنید از کشاف مثلا 5 آمپر استفاده کنید نه از 20 آمپر. هر قدر مقدار حد اکثر کشاف بالا برود به همان اندازه خطای 2 تا 5% بزرگتر ظاهر میشود.
@aktivetech7272
@aktivetech7272 3 жыл бұрын
You didn't explain absolutely anything about the wiring. Oh yeah, and your library is full of mistakes and doesn't work :) Good job buddy
@robojax
@robojax 3 жыл бұрын
when you skip the video this is what happens. I have just watch it and wiring is explained wire by wire and even wire color is explained. Library has been tested and works according to the datasheet. Good luck agne.
Модуль датчика тока ACS712 30А
7:34
TIXER RU
Рет қаралды 20 М.
Measure DC Voltage and Current with Arduino
37:29
DroneBot Workshop
Рет қаралды 195 М.
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 159 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 24 МЛН
#347 Measuring Mains Voltage, Current, and Power for Home Automation
24:10
ACS712 Current Sensor with Arduino - Measure AC and DC up to 30 amps
14:05
Using the ACS712 Hall Effect Current Sensor Module (part 1)
6:45
Julian Ilett
Рет қаралды 353 М.
The Most Important Circuit for our Electrical Future?! (PFC) EB#55
11:26
Sensor de corriente ACS712: Tutorial paso a paso, midiendo CC - PCBWay.es
11:27
CarlosVolt Electrónica y Robótica
Рет қаралды 7 М.
Measure Any AC Current up to 30A with ACS712 and Arduino
25:52
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 6 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2 МЛН