acs712 #751
Replies: 3 comments
-
Posted at 2015-05-17 by tage You may have to read the datasheet for the ACS712. you should feed it with 5V and the output will be half of the supply voltage at no load, and as you apply a dc load you should expect the reading to change by 0.1V per Ampere (may vary depending on the version of the part). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-05-17 by MatB Ah ok! So if I power the ACS712 from the VBAT pin from the board (I'm running from microUSB) that will keep it powered stably. I can then play around with the maths from there... Thanks for the help, I'll give it a go again later in the week. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-05-17 by tage the VBAT pin does not have a stable voltage, so the way I would do it is to use a second ADC input and two resistors. if for example you connect two resistors (with the same value) in series, from VBAT to GND, you get VBAT/2. Measure this signal (you get a reading from 0 to 1) and subtract the current sensor signal reading from this reading. Divide the result by 0.0303 and you get a reading in Amperes. This will give good accuracy even if the VBAT voltage drifts. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-05-17 by MatB
Hi,
I'm trying to interface my espruino with a ACS712 current detection board.
I have the board sat between a source and a load, and have connected the out pin to C5 on my espruino. When using
I get lots of values like this:
But the values remain largely the same irrespective of whether the load is attached or not. I have read a couple of tutorials about using this board for arduino (here and here) but they seem to indicate that I just need to find some coefficient to multiply the values I'm reading by.
Am I doing the right thing? Do I just have to find the "magic coefficient"?
Beta Was this translation helpful? Give feedback.
All reactions