ACS712 Current Sensor Tutorial with Arduino (Sensing DC and AC Current)

  Рет қаралды 125,951

miliohm

miliohm

2 жыл бұрын

In this video, I am going to talk about the ACS712 sensor, how to measure DC and AC current with Arduino.
Join this channel to support me or to get access to perks:
/ @miliohm
Full code and library :
miliohm.com/acs712-current-se...

Пікірлер: 97
@miliohm
@miliohm Жыл бұрын
The right library used in this video : miliohm.com/files/ACS712.zip
@jameshintze3180
@jameshintze3180 10 ай бұрын
HI, github reports this library not found, can you suggest another one?? thanks James!!!
@timilehinraphael4609
@timilehinraphael4609 9 ай бұрын
Still displays "404...Didn't find anything here."
@vishal-nq4qc
@vishal-nq4qc 9 ай бұрын
yes it is 404 error @@timilehinraphael4609
@tolga.atesci
@tolga.atesci 7 ай бұрын
Can you share again that library? Because link is not work and i could not find anywhere in internet. );
@Ryan-Rosha
@Ryan-Rosha 4 ай бұрын
Hi the link is not working , can you share it again
@74LS324
@74LS324 Жыл бұрын
This is the first video I've seen showing acs712 noise through an graph... Thank you very much
@ihtsarl9115
@ihtsarl9115 2 жыл бұрын
Thank you for this video it will help me in my design.
@ahmadaljabr4341
@ahmadaljabr4341 11 ай бұрын
Just minor correction: <a href="#" class="seekto" data-time="378">6:18</a> If you are using the 30 amp type, you need to change the value in the code to 0.066 NOT 0.66.
@Bianchi77
@Bianchi77 2 жыл бұрын
Nice video, thanks for sharing :)
@roopahyati9124
@roopahyati9124 Жыл бұрын
thank you it really great help from your code...thank you..
@miliohm
@miliohm Жыл бұрын
You are welcome 😊
@AbroadTalks
@AbroadTalks 2 жыл бұрын
nice work
@mtrcurse
@mtrcurse Жыл бұрын
Sir what sensor should i use for less then 0.4 amp sensitivity ?
@HaseebAdnan0
@HaseebAdnan0 7 ай бұрын
Using a 240v to 12v adapter, can i short the + and - terminals on the left terminal block?
@chandansaha5286
@chandansaha5286 18 күн бұрын
It was a great videos. I want to measure current in microamps, what kind of circuit can i use.
@ShilpaGireesh
@ShilpaGireesh 4 ай бұрын
Hi, Could you recommend the above sensor for measuring a current less than 0.9mA from a board? My project is based on Arduino.
@Nayeong-pt2gm
@Nayeong-pt2gm Ай бұрын
Complation error: 'ACS712_30A' was not declared in this scope (What should I do?)
@justinyvesricablanca5734
@justinyvesricablanca5734 Жыл бұрын
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.
@dredd3220
@dredd3220 Жыл бұрын
Can the code be used in esp32 and when no load is connected adc value is 816
@user-ny5be4lm8z
@user-ny5be4lm8z 2 ай бұрын
yes
@talhatetik7968
@talhatetik7968 7 ай бұрын
Can I use this sensor for ındustrıal electrical motor to monitoring current and consumption of the motor for predictive maintenece
@kkk_ffr_ance6957
@kkk_ffr_ance6957 10 ай бұрын
usefull content.. good explantion... keep it up .. subscribed..
@deone-entity3935
@deone-entity3935 Жыл бұрын
Can we do it with esp32
@eletrotheory8398
@eletrotheory8398 5 ай бұрын
Ok if this guy passed 230VAC through the devBoard I am no longer feared to use this -_-
@cinnamonshake45
@cinnamonshake45 2 ай бұрын
well technically it didnt pass it through the devBoard but the sensor only...
@cinnamonshake45
@cinnamonshake45 2 ай бұрын
what is the unit of the current output? is it amps or milli amps
@anthonybianue9206
@anthonybianue9206 6 ай бұрын
Can someone please explain to me how we are comfortable passing 30a in series through this tiny device with a tiny wire?
@pushprajprajapati9488
@pushprajprajapati9488 5 ай бұрын
The code for measuring AC current is not functioning properly.
@wongruixing1478
@wongruixing1478 2 жыл бұрын
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
@miliohm
@miliohm 2 жыл бұрын
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.
@herlambangsihombing0774
@herlambangsihombing0774 2 жыл бұрын
excuse me sir, i got 3070-3080 in my sensor output,.. what wrong with my sensor?
@donbroady5171
@donbroady5171 2 жыл бұрын
If im using nodemcu, where vcc is 3v...is there any change i should make for code? If yes what part should i change?
@GreenuniverseEuro
@GreenuniverseEuro Жыл бұрын
Use VIN pin to get 5V otherwise change 5 to 3.3 and 2.5 to 1.65
@engr.bilalzia
@engr.bilalzia 2 жыл бұрын
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
@miliohm
@miliohm 2 жыл бұрын
Try using 5A type for small current
@davidaa82
@davidaa82 Жыл бұрын
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.
@miliohm
@miliohm Жыл бұрын
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.
@muhammadzahrunassyaaribinm9156
@muhammadzahrunassyaaribinm9156 5 ай бұрын
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
@tatendachinhanhu9612
@tatendachinhanhu9612 Жыл бұрын
Can it be possible to display current and voltage at the same LCD using that same sensor
@miliohm
@miliohm Жыл бұрын
You can't measure voltage using this sensor. Use this instead : kzfaq.info/get/bejne/mcdmltKh3N3LaKs.html
@TheRainHarvester
@TheRainHarvester 2 ай бұрын
Any way to read 1mA resolution ?
@miliohm
@miliohm 2 ай бұрын
kzfaq.info/get/bejne/ja9ko7qklaq9gIk.htmlsi=vkjD8-ksQsnCFIhY
@facundonieto1598
@facundonieto1598 Ай бұрын
<a href="#" class="seekto" data-time="77">1:17</a> dato clave sobre qué sensor usar para medir corrientes menores a 0.4 A
@carlojoshuacrisanto9598
@carlojoshuacrisanto9598 Жыл бұрын
Can the sensor read negative current? I want to experiment this on motorcycle stator.
@miliohm
@miliohm Жыл бұрын
Sure, the output will below half of vcc if negative
@pratikbhagat9894
@pratikbhagat9894 Жыл бұрын
can ACS useful for single phase ac motor like drill
@miliohm
@miliohm Жыл бұрын
Depends on the current, as long as it is more than 0.3A I think it's safe
@gyaanmastieverytime
@gyaanmastieverytime Жыл бұрын
I want to see the this lcd value in blynk 2.0 is it possible?
@miliohm
@miliohm Жыл бұрын
Sure. Just send the datato blynk
@tongtony5131
@tongtony5131 2 жыл бұрын
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
@miliohm
@miliohm 2 жыл бұрын
What is the current you are trying to measure?
@tongtony5131
@tongtony5131 2 жыл бұрын
@@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
@miliohm
@miliohm 2 жыл бұрын
@@tongtony5131 what type of acs712 did you use?
@tongtony5131
@tongtony5131 2 жыл бұрын
@@miliohm acs712ELCTR-20A-T
@safwanalislam
@safwanalislam 3 ай бұрын
the library "ACS712" for the AC current is not showing up on github
@miliohm
@miliohm 3 ай бұрын
miliohm.com/files/ACS712.zip
@TINGSHIYIAEE-pc3vp
@TINGSHIYIAEE-pc3vp 2 жыл бұрын
Hello, can ask how to fix this error? Error: ACS712_05B was not declared in this slope?
@miliohm
@miliohm 2 жыл бұрын
Maybe you downloaded the wrong library
@miliohm
@miliohm Жыл бұрын
github.com/rkoptev/ACS712-arduino
@febriantimasud4083
@febriantimasud4083 10 ай бұрын
My adc reading >2000, what's the solution??
@febriantimasud4083
@febriantimasud4083 10 ай бұрын
I use acs712 20a
@Thecrow999
@Thecrow999 Жыл бұрын
Can't we use any other than A0?
@miliohm
@miliohm Жыл бұрын
You can use any analog pins
@hemanathg7302
@hemanathg7302 2 жыл бұрын
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.
@miliohm
@miliohm 2 жыл бұрын
sure, that would work. I just update the link for the library on the website.
@donbroady5171
@donbroady5171 2 жыл бұрын
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
@miliohm
@miliohm 2 жыл бұрын
How much current you are trying to measure?
@donbroady5171
@donbroady5171 2 жыл бұрын
@@miliohm around 2 amp
@miliohm
@miliohm 2 жыл бұрын
@@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.
@donbroady5171
@donbroady5171 2 жыл бұрын
@@miliohm ok thank you for suggestion
@sayeretmatkaal
@sayeretmatkaal Жыл бұрын
0.066v, not 0.66v
@ALLINONE-ec9jq
@ALLINONE-ec9jq 2 жыл бұрын
hi can you write code for solar monitoring 80 amp input 150 volt input i read on mobile by blynk
@ahamedmaududi
@ahamedmaududi 2 жыл бұрын
i can do..
@naimnizamix8269
@naimnizamix8269 Жыл бұрын
@@ahamedmaududi can you share the coding?
@thetechjigger
@thetechjigger 2 ай бұрын
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
@wafda8114
@wafda8114 11 ай бұрын
kalau mau ukur arus DC 0-6A adakah yg perlu diubah sir pada kodingan seperti di video?
@miliohm
@miliohm 11 ай бұрын
kalau beda acsnya tinggal settingnya aja disesuaikan, tergantung pake library atau manual?
@wafda8114
@wafda8114 11 ай бұрын
@@miliohm ohh brati kalo mau pake yg type 30A itu tinggal diganti float current = (voltage-2.5)/0.66; sir?
@miliohm
@miliohm 11 ай бұрын
@@wafda8114 betul kalau manual. Kalau pake library tinggal ganti tipenya aja
@wafda8114
@wafda8114 11 ай бұрын
@@miliohm terimakasih banyak sir 🙏🏼
@adeindrasyaputra3556
@adeindrasyaputra3556 Жыл бұрын
iam using acs712 30amp and notstabil measuring, whyyy?
@miliohm
@miliohm Жыл бұрын
Arusnya berapa? AC atau DC?
@adeindrasyaputra3556
@adeindrasyaputra3556 Жыл бұрын
@@miliohm DC current, 5Volts 1ampr. Using power supply
@miliohm
@miliohm Жыл бұрын
@@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.
@LAMBOMODS
@LAMBOMODS Жыл бұрын
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
@miliohm
@miliohm Жыл бұрын
I just follow the readAnalogVoltage example from arduino sketch I guess.
@markov4119
@markov4119 Жыл бұрын
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!
@EducationalTheatre
@EducationalTheatre 2 жыл бұрын
acs715_05B error showing please help
@miliohm
@miliohm 2 жыл бұрын
It should be acs712 not ACS715
@miliohm
@miliohm Жыл бұрын
github.com/rkoptev/ACS712-arduino
@user-vb1ft9te9k
@user-vb1ft9te9k 2 жыл бұрын
Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno" C:\Users\apoalhsen\Desktop\sketch_jun27a\sketch_jun27a\sketch_jun27a.ino:<a href="#" class="seekto" data-time="691">11:31</a>: 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:<a href="#" class="seekto" data-time="300">5:0</a>: C:\Users\apoalhsen\Documents\Arduino\libraries\ACS712-master/ACS712.h:<a href="#" class="seekto" data-time="2225">37:5</a>: 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:<a href="#" class="seekto" data-time="1030">17:10</a>: error: 'class ACS712' has no member named 'Calibrate' sensor.Calibrate(); ^~~~~~~~~ sketch_jun27a:<a href="#" class="seekto" data-time="1087">18:7</a>: 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:<a href="#" class="seekto" data-time="1580">26:20</a>: 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.
@KarlDeniz
@KarlDeniz Жыл бұрын
Hi! Sketch for the ZMPT101 block ,? I really need it , I will be grateful !Like ! Subscribe !
How to use Allegro ACS712 AC/DC Current Sensor with Arduino
16:47
Пробую самое сладкое вещество во Вселенной
00:41
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 58 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 31 МЛН
Measure DC Voltage and Current with Arduino
37:29
DroneBot Workshop
Рет қаралды 195 М.
Different Ways for Measuring Current With Arduino
13:32
Electronoobs
Рет қаралды 71 М.
#1609 ACS712 Current Sensor
6:50
IMSAI Guy
Рет қаралды 6 М.
Measure Any AC Current up to 30A with ACS712 and Arduino
25:52
VOLTAGE SENSOR (0-25V) - Arduino tutorial #17
8:20
Bas on Tech
Рет қаралды 55 М.
Arduino - ACS712 AC Current Measurement without Error
3:21
IoT Smart Electricity Energy Meter using ESP32 & Blynk 2.0
8:47
How To Electronics
Рет қаралды 59 М.
How To Use Arduino Current Sensor ASC712
4:28
Aatik's lab
Рет қаралды 83 М.
Худший продукт Apple
0:53
Rozetked
Рет қаралды 158 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 604 М.
После ввода кода - протирайте панель
0:18
Up Your Brains
Рет қаралды 1 МЛН