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.
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.
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.
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;)
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.
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?
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
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?
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. :-)
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.
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. :-)
@@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.
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
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
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
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
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??
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)