-
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
console.log(analogRead(c5));
I get lots of values like this:
0.49707789730 pin C5 0.49732204165 pin C5 0.49707789730 pin C5 0.49634546425 pin C5 0.49561303120
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"?
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.