A practical solution ACS712 with op-amp such as this one https://www.sparkfun.com/products/8883 Add a low pass filter on the output of the op-amp with a long time constant. http://www.learningaboutelectronics.com/Articles/Low-pass-filter-calculator.php I figure 10k resistor and 100uF capacitor would do the trick.
@ClearMemory041063 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
A practical solution
ACS712 with op-amp such as this one
https://www.sparkfun.com/products/8883
Add a low pass filter on the output of the op-amp with a long time constant.
http://www.learningaboutelectronics.com/Articles/Low-pass-filter-calculator.php
I figure 10k resistor and 100uF capacitor would do the trick.