Тёмный

TUTORIAL: How to use the ACS758 hall effect current sensor module with Arduino! (to measure current) 

Antony Cartwright
Подписаться 30 тыс.
Просмотров 30 тыс.
50% 1

My website link for downloads (if any are present), etc:
youtube.accbs.c...
Just some ramblings on how to measure current into the Arduino.

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 48   
@KrisKasprzak
@KrisKasprzak 6 лет назад
some possible reasons for the inaccurate readings compared to your multi-meter 1) computing offsets is based on the supply voltage to the sensor--hence you must know it exactly and use that value 2) the analog read will vary based on the supply voltage to the Arduino--USB power may not be exactly 5 volts, and as stated some averaging is needed--Arduinos are not that free of noise. I use the same current sensors and average around 5000 points--and my measured currents are very accurate.
@AntonyCartwright
@AntonyCartwright 6 лет назад
Thanks!
@ronm1314
@ronm1314 5 лет назад
Hate to burst your bubble guys but the data sheet is not wrong. The first image show just a block diagram of the part for circuit example illustration purposes. The lower image is the reference you need for actual pinout.
@hiramreisneto4043
@hiramreisneto4043 6 лет назад
Try to use average on the sampled values you get, and print the average, instead of printing every sample from analogread. This should increase a bit your measurement accuracy. For example sum the last 20 values and then divide it by 20 at the end, like this you get rid of those crazy fluctuations.
@AntonyCartwright
@AntonyCartwright 6 лет назад
Hiram Reis Neto Hey, thanks... I think the major problem is the arduino adc. It's only 10 bit.
@lucianungurean
@lucianungurean 4 года назад
@@AntonyCartwright or you could just change the voltage ref. I tried that with one of your other tutorials and i got great results .
@hexidev
@hexidev Год назад
Or use a median so the very low and high value's wont taken as much into consideration
@anonhollmuller4032
@anonhollmuller4032 Год назад
if it is Stop working, you can meassure the current with a temp. Sensor leads look fairly fragile for 200A..
@anonhollmuller4032
@anonhollmuller4032 Год назад
hint:) do the current testing with sutomotive Lamps (from Germany they are heavily restricted here) to 55Watt. so with a gar Batt and a bunch of cheap lamps you can make a cool testrig ps if you combine hi and lo.....you get about 10A from one lamp;)
@ShaunDobbie
@ShaunDobbie 7 лет назад
I had the same confusion, the first diagram is flipped for some reason but I realised this and corrected.
@AntonyCartwright
@AntonyCartwright 7 лет назад
Yeah! It's silly isn't it? But I guess even big companies can sometimes make mistakes in documentation. Antony...
@ShaunDobbie
@ShaunDobbie 7 лет назад
I am trying it with a acs758 lcb050U sensor and an ads1115 for better precision and with 0 amps flowing through it it gives half of vcc across its output and I correct for this in software but whenever I connect different power supplies to the current measuring side sensor the amps reading changes massively with no current flowing.
@AntonyCartwright
@AntonyCartwright 7 лет назад
Yes, maybe that is noise on the wires. But when you run current through the sensor, it should work ok. I'm just guessing though. Antony..
@SFORSANDEEP
@SFORSANDEEP 4 года назад
That was a nice video bro.. Sorry Im only a beginner... So just needs to know where did you get that value .02055? I mean you did a division on voltage by .02055.. So whats this value?
@AliRezaJoodi
@AliRezaJoodi 5 месяцев назад
Hi Please help for chose connector and route in PCB for 400A Thanks
@mesquitamk1681
@mesquitamk1681 3 года назад
Cool very good your work would you have a video similar to my project? I have a screwdriver project where I use Arduino mini or attiny85. and SSD1306 mini LED display. with ACS758 50-or-200A module. of amperage. with an H Bridge and 4 touch button 2 to increase and decrease the amperage that the engine will be turned off. and 2 button to turn the motor to the left and to the right so the screwdriver will not blow the screw .... which I will tighten, be it small or large ... for arduino I only know how to write the code. since already thank you >>>>>>> suddenly it's a suggestion for a new video
@manarabdulkarim2149
@manarabdulkarim2149 Год назад
Thank you ❤
@hochengyun5791
@hochengyun5791 6 лет назад
Hi sir I noticed that the current values are in intervals of 0.24A. May I know if this is due to the sensor's properties and if its possible to make the values change in lower intervals?
@AntonyCartwright
@AntonyCartwright 6 лет назад
Hi, The sensitivity of the chip is 20MV/A. But the Arduino by default can only read in 5MV increments. Therefore, it can only detect changes in 0.25A steps. 1 / (20MV / 4.8MV) = 0.24. The limitation is due to the 10bit Arduino ADC. If you want better resolution, consider watching my video about ADS1015. The ADS1015 can resolve to each 0.12A. :-)
@hochengyun5791
@hochengyun5791 6 лет назад
Hi sir. Thanks for your reply. I have the same issues with @Mayank Shrivastava and I understand that you mentioned that a current shunt can be used. May I know what does that mean specifically as I am quite foreign to these items.
@AntonyCartwright
@AntonyCartwright 6 лет назад
You may be able to parallel a capacitor across the input terminals, it may help, but research that first. I'd recommend a current shunt though. If you go to my channel and search for current shunt, you can see my videos about it. :-)
@VPannagS
@VPannagS 3 года назад
Thanks alot
@GoatZilla
@GoatZilla 2 года назад
How do you know your 5v is really 5v?
@AntonyCartwright
@AntonyCartwright 2 года назад
Because I'm psychic!!! And because the multimeter says so. 😉
@GoatZilla
@GoatZilla 2 года назад
@@AntonyCartwright OK, I didn't manage to see it. Vcc has to be taken into account in the conversion, and most "5V' sources don't actually produce exactly 5V.
@AntonyCartwright
@AntonyCartwright 2 года назад
@@GoatZilla A 5v charger should provide 5.2v. A 5v regulated source should provide 5v. 🙂
@patrickpellerin8884
@patrickpellerin8884 5 лет назад
Ive been pulling my hair out for an hour, good eye their datasheet was wrong
@faidularcs
@faidularcs 5 лет назад
Documents are right
@hallowman8879
@hallowman8879 7 лет назад
i measure noise with the sensor . how can i kill this noise . i measure ac current
@AntonyCartwright
@AntonyCartwright 7 лет назад
I believe you can do this with capacitors. :-)
@hallowman8879
@hallowman8879 7 лет назад
thanks for replay i did use a capacitor 100micro between the output and ground . it was useless i need to add a counter in the sketch to calculate the highest value of the reading to calculate the voltage and then the current
@AntonyCartwright
@AntonyCartwright 7 лет назад
hallow man maybe look at the datasheet. it might mention this.
@hallowman8879
@hallowman8879 7 лет назад
thanks for replay . i did use a capacitor with 100mico between sensor output and ground it was helpful . i think we need add such a counter to measure the highest value of the reading to calculate voltage and then the current
@MikesDIYTeslaPowerwall
@MikesDIYTeslaPowerwall 6 лет назад
thats right a small one .1
@mayankshri62
@mayankshri62 7 лет назад
I am using ACS750 Hall effect current sensor and Arduino Mega. When I try to get the readingsinitially coming to Analog Pin, readings are too vague (values are changing continuosly,i.e. sometimes 540 and on the other instant 570, 480 and so on). I am not able to stablise the readings, kindly help
@AntonyCartwright
@AntonyCartwright 7 лет назад
Mayank Shrivastava Maybe try a current shunt instead.
@mayankshri62
@mayankshri62 7 лет назад
the problem still persists....i am using the code which u used....without switching on the dc power supply, when I am trying to read the values coming on the screen from the analog pin of arduino, initially i observe readings close to zero i.e 0.12, 0.04, 0.20,-0.01, etc.( close to zero readings)...bt after a while, readings begins to change without switching on the power supply... this is i am not able to understand as to why readings are changing so much without even switching on the supply? please help...i can share the images to u if you can exchange ur email. thnx
@AntonyCartwright
@AntonyCartwright 7 лет назад
Mayank Shrivastava Try a current shunt!
@mayankshri62
@mayankshri62 7 лет назад
As I was using ACS 750 current sensor, the ouput should come out 2.5 V, but now after using it for some time, it shows 2.14 V....this should not happen, no!!! Can you plzz help me that what is the reason because of which sensor is showing wrong output??
@AntonyCartwright
@AntonyCartwright 7 лет назад
Possibly because it is broken. This has happened to me also, twice now.
@ABID5
@ABID5 5 лет назад
is it 20 fps?
@azbukaChisel
@azbukaChisel 6 лет назад
Your code is sucks. And put capacitors and resistor to it.
@SFORSANDEEP
@SFORSANDEEP 4 года назад
Could you please tell how.. Im a very beginner into it.. It will be great if you can share a diagram how to connect those.. (my email sandeepchirayil@gmail.com)
Далее
Новый уровень твоей сосиски
00:33
ДОМИК ДЛЯ БЕРЕМЕННОЙ БЕЛКИ#cat
00:45
Using a Hall Effect Sensor to Measure Current
21:10
Просмотров 35 тыс.
ACS724 Current Sensor Measurements with Arduino
13:38
Просмотров 2,5 тыс.
Different Ways for Measuring Current With Arduino
13:32