Using this we can check if AC power supply is on or off right? I mean if there is AC power loss we can detect it in the arduino. Exactly what i was looking for ! Thanks
Please my current sensor is 30A and after doing everything, my sensor is reading zero current when no load is present but it’s reading 2.5 voltage when no load is present as well
Good day Sir. I want to somehow progress this project by adding a gsm shield module so that when the current detected by the sensor is 0 amp, the gsm shield module will then send an alert to my phone through SMS. Is that possible? Your response would be very appreciated.
Strange! A multimeter can measure up to 10A for a few seconds and there is a shunt resistor inside. This tiny ic has a copper trace and a Hall sensor up to 20A
I plan to utilive the sensor for a current of about 1.27 amps, will this be sufficient for the 5amp input module? If not then which adc would you recommend? for the voltage sensor on my device, I understand the arduiono has one available that will need a voltage divider for measurment.
Sure, 1.27 amp is far less than 5A. If you are using arduino, it's already has the adc. For simpler use, you can use INA219. It's digital DC current and voltage sensor. I also already made video about that.
why i use esp32 ,for calibrate calculation i get 1.94amp reading for measurement, when i no load or supply still 1.94amp,can iknow what the problem ,sir @@miliohm
I have 20A ASC712 Why is it not measuring current 0.9 A? As multimeter showing. I am following the same procedure. 12V DC source and 12 V load with 0.9A
why did you use 1023? When the base is 1024? other tutorials use 1024... Please explain why u used 1023. Thank you for video :) vOut = (voltageSensorVal / 1024) * vCC; // convert the value to the real voltage on the analog pin
Because it is an ADC and the formula is out/Vin = ((2^n) - 1) / Vref since he's using Arduino Uno which has a 10 bit ADC and his Vref is 5Vdc then I guess you can do the maths. In short the full-scale of the ADC is 1023 and not 1024, but personally I don't think it makes a big difference. You're welcome!
for easier use, I will suggest you a PZEM sensor, if you need a DIY voltage sensor you can make one with a rectifier and voltage divider. Unfortunately, I don't have one right now.
Hello..i already follow your step but my reading show 0.00 A. Im using 20A and already change to the 20 A formula but still get 0.00 A..any idea? Thank you
@@adeindrasyaputra3556 kalau kurang stabil saya sarankan pake library saja. seperti cara yang kedua di video. Tinggal ganti saja jadi getCurretDC untuk baca arus DC. Karena pembacaannya perlu di smoothing agar stabil.
Library code in the website is slightly different from your video. It shows enlighter js master. It can be use for AC current measuring or not? Please reply. I want to measure AC CURRENT comes from small transformer (1-30A)range. Please send the solution.
Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno" C:\Users\apoalhsen\Desktop\sketch_jun27a\sketch_jun27a\sketch_jun27a.ino:11:31: warning: invalid conversion from 'const char*' to 'uint8_t {aka unsigned char}' [-fpermissive] ACS712 sensor("ACS712_05B, A0"); ^ In file included from C:\Users\apoalhsen\Desktop\sketch_jun27a\sketch_jun27a\sketch_jun27a.ino:5:0: C:\Users\apoalhsen\Documents\Arduino\libraries\ACS712-master/ACS712.h:37:5: note: initializing argument 1 of 'ACS712::ACS712(uint8_t, float, uint16_t, uint8_t)' ACS712(uint8_t analogPin, float volts = 5.0, uint16_t maxADC = 1023, uint8_t mVperA = 100); ^~~~~~ C:\Users\apoalhsen\Desktop\sketch_jun27a\sketch_jun27a\sketch_jun27a.ino: In function 'void setup()': sketch_jun27a:17:10: error: 'class ACS712' has no member named 'Calibrate' sensor.Calibrate(); ^~~~~~~~~ sketch_jun27a:18:7: error: 'class LiquidCrystal_I2C' has no member named 'init' lcd.init(); ^~~~ C:\Users\apoalhsen\Desktop\sketch_jun27a\sketch_jun27a\sketch_jun27a.ino: In function 'void loop()': sketch_jun27a:26:20: error: 'class ACS712' has no member named 'getCurrentAC' float I = sensor.getCurrentAC(); ^~~~~~~~~~~~ exit status 1 'class ACS712' has no member named 'Calibrate' This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
The right library used in this video :
miliohm.com/files/ACS712.zip
HI, github reports this library not found, can you suggest another one?? thanks James!!!
Still displays "404...Didn't find anything here."
yes it is 404 error
@@timilehinraphael4609
Can you share again that library? Because link is not work and i could not find anywhere in internet. );
Hi the link is not working , can you share it again
This is the first video I've seen showing acs712 noise through an graph... Thank you very much
Just minor correction:
6:18 If you are using the 30 amp type, you need to change the value in the code to 0.066 NOT 0.66.
Using this we can check if AC power supply is on or off right? I mean if there is AC power loss we can detect it in the arduino. Exactly what i was looking for ! Thanks
Thanks for this excellent video. Do you know what the maximum distance of the cable that connects the ACS to the Arduino board can be?... Thank you
Sir what sensor should i use for less then 0.4 amp sensitivity ?
Thank you for sharing, sir. You made me happy too 🤗
Hi, Could you recommend the above sensor for measuring a current less than 0.9mA from a board? My project is based on Arduino.
It was a great videos. I want to measure current in microamps, what kind of circuit can i use.
Using a 240v to 12v adapter, can i short the + and - terminals on the left terminal block?
Complation error: 'ACS712_30A' was not declared in this scope (What should I do?)
Please my current sensor is 30A and after doing everything, my sensor is reading zero current when no load is present but it’s reading 2.5 voltage when no load is present as well
what is the unit of the current output? is it amps or milli amps
The code for measuring AC current is not functioning properly.
Can I use this sensor for ındustrıal electrical motor to monitoring current and consumption of the motor for predictive maintenece
Can someone please explain to me how we are comfortable passing 30a in series through this tiny device with a tiny wire?
Thank you for this video it will help me in my design.
Any way to read 1mA resolution ?
th-cam.com/video/WI4pWs0DYPU/w-d-xo.htmlsi=vkjD8-ksQsnCFIhY
Good day Sir. I want to somehow progress this project by adding a gsm shield module so that when the current detected by the sensor is 0 amp, the gsm shield module will then send an alert to my phone through SMS. Is that possible? Your response would be very appreciated.
Strange! A multimeter can measure up to 10A for a few seconds and there is a shunt resistor inside. This tiny ic has a copper trace and a Hall sensor up to 20A
Hi,i am using this sensor on my work right, do you have any ideas about the acs712 sensor output doesn't change? Thank you
What is the current you are trying to measure?
@@miliohm 12v DC current, connect with arduino uno analog port, the output is always 4095, the current is about 7-10A If measured with an ammeter
@@tongtony5131 what type of acs712 did you use?
@@miliohm acs712ELCTR-20A-T
I plan to utilive the sensor for a current of about 1.27 amps, will this be sufficient for the 5amp input module? If not then which adc would you recommend?
for the voltage sensor on my device, I understand the arduiono has one available that will need a voltage divider for measurment.
Sure, 1.27 amp is far less than 5A. If you are using arduino, it's already has the adc. For simpler use, you can use INA219. It's digital DC current and voltage sensor. I also already made video about that.
why i use esp32 ,for calibrate calculation i get 1.94amp reading for measurement, when i no load or supply still 1.94amp,can iknow what the problem ,sir
@@miliohm
thank you it really great help from your code...thank you..
You are welcome 😊
Can the code be used in esp32 and when no load is connected adc value is 816
Can we do it with esp32
Ok if this guy passed 230VAC through the devBoard I am no longer feared to use this -_-
well technically it didnt pass it through the devBoard but the sensor only...
It was only 12V going through the sensor, it can only take between 0V and 25V DC.
I have 20A ASC712 Why is it not measuring current 0.9 A? As multimeter showing. I am following the same procedure.
12V DC source and 12 V load with 0.9A
Try using 5A type for small current
If im using nodemcu, where vcc is 3v...is there any change i should make for code? If yes what part should i change?
Use VIN pin to get 5V otherwise change 5 to 3.3 and 2.5 to 1.65
why did you use 1023? When the base is 1024? other tutorials use 1024... Please explain why u used 1023. Thank you for video :)
vOut = (voltageSensorVal / 1024) * vCC; // convert the value to the real voltage on the analog pin
I just follow the readAnalogVoltage example from arduino sketch I guess.
Because it is an ADC and the formula is out/Vin = ((2^n) - 1) / Vref since he's using Arduino Uno which has a 10 bit ADC and his Vref is 5Vdc then I guess you can do the maths. In short the full-scale of the ADC is 1023 and not 1024, but personally I don't think it makes a big difference. You're welcome!
Hi, do you have a video of using arduino uno using acs712 sensor and a voltage sensor? i am doing a project currently and will be greatly appreciate
for easier use, I will suggest you a PZEM sensor, if you need a DIY voltage sensor you can make one with a rectifier and voltage divider. Unfortunately, I don't have one right now.
Can it be possible to display current and voltage at the same LCD using that same sensor
You can't measure voltage using this sensor. Use this instead : th-cam.com/video/ca6copwwg8w/w-d-xo.html
can ACS useful for single phase ac motor like drill
Depends on the current, as long as it is more than 0.3A I think it's safe
kalau mau ukur arus DC 0-6A adakah yg perlu diubah sir pada kodingan seperti di video?
kalau beda acsnya tinggal settingnya aja disesuaikan, tergantung pake library atau manual?
@@miliohm ohh brati kalo mau pake yg type 30A itu tinggal diganti float current = (voltage-2.5)/0.66; sir?
@@wafda8114 betul kalau manual. Kalau pake library tinggal ganti tipenya aja
@@miliohm terimakasih banyak sir 🙏🏼
Can the sensor read negative current? I want to experiment this on motorcycle stator.
Sure, the output will below half of vcc if negative
1:17 dato clave sobre qué sensor usar para medir corrientes menores a 0.4 A
the library "ACS712" for the AC current is not showing up on github
miliohm.com/files/ACS712.zip
Hello..i already follow your step but my reading show 0.00 A. Im using 20A and already change to the 20 A formula but still get 0.00 A..any idea? Thank you
How much current you are trying to measure?
@@miliohm around 2 amp
@@donbroady5171 try just using the analog read sketch. If there's no increasing adc values, means there's problem with the sensor or the wiring.
@@miliohm ok thank you for suggestion
I want to see the this lcd value in blynk 2.0 is it possible?
Sure. Just send the datato blynk
My adc reading >2000, what's the solution??
I use acs712 20a
Hello, can ask how to fix this error?
Error: ACS712_05B was not declared in this slope?
Maybe you downloaded the wrong library
github.com/rkoptev/ACS712-arduino
Can't we use any other than A0?
You can use any analog pins
excuse me sir, i got 3070-3080 in my sensor output,.. what wrong with my sensor?
iam using acs712 30amp and notstabil measuring, whyyy?
Arusnya berapa? AC atau DC?
@@miliohm DC current, 5Volts 1ampr. Using power supply
@@adeindrasyaputra3556 kalau kurang stabil saya sarankan pake library saja. seperti cara yang kedua di video. Tinggal ganti saja jadi getCurretDC untuk baca arus DC. Karena pembacaannya perlu di smoothing agar stabil.
Nice video, thanks for sharing :)
nice work
hi can you write code for solar monitoring 80 amp input 150 volt input i read on mobile by blynk
i can do..
@@ahamedmaududi can you share the coding?
yes
0.066v, not 0.66v
Library code in the website is slightly different from your video. It shows enlighter js master. It can be use for AC current measuring or not?
Please reply.
I want to measure AC CURRENT comes from small transformer (1-30A)range.
Please send the solution.
sure, that would work. I just update the link for the library on the website.
Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno"
C:\Users\apoalhsen\Desktop\sketch_jun27a\sketch_jun27a\sketch_jun27a.ino:11:31: warning: invalid conversion from 'const char*' to 'uint8_t {aka unsigned char}' [-fpermissive]
ACS712 sensor("ACS712_05B, A0");
^
In file included from C:\Users\apoalhsen\Desktop\sketch_jun27a\sketch_jun27a\sketch_jun27a.ino:5:0:
C:\Users\apoalhsen\Documents\Arduino\libraries\ACS712-master/ACS712.h:37:5: note: initializing argument 1 of 'ACS712::ACS712(uint8_t, float, uint16_t, uint8_t)'
ACS712(uint8_t analogPin, float volts = 5.0, uint16_t maxADC = 1023, uint8_t mVperA = 100);
^~~~~~
C:\Users\apoalhsen\Desktop\sketch_jun27a\sketch_jun27a\sketch_jun27a.ino: In function 'void setup()':
sketch_jun27a:17:10: error: 'class ACS712' has no member named 'Calibrate'
sensor.Calibrate();
^~~~~~~~~
sketch_jun27a:18:7: error: 'class LiquidCrystal_I2C' has no member named 'init'
lcd.init();
^~~~
C:\Users\apoalhsen\Desktop\sketch_jun27a\sketch_jun27a\sketch_jun27a.ino: In function 'void loop()':
sketch_jun27a:26:20: error: 'class ACS712' has no member named 'getCurrentAC'
float I = sensor.getCurrentAC();
^~~~~~~~~~~~
exit status 1
'class ACS712' has no member named 'Calibrate'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
acs715_05B error showing
please help
It should be acs712 not ACS715
github.com/rkoptev/ACS712-arduino
Hi! Sketch for the ZMPT101 block ,? I really need it , I will be grateful !Like ! Subscribe !