I there I got a current measurement setup with a acs714 connected to a leonardo. The values of the analog input are reported via the serial using the firmata protocol. In the host software (a selfmade c#) application then i do some smoothing by averaging 30 values or so. This works real fine for constant dc current.
Now I try to mesure a chopped battery current of an brushless esc with brushless motor. Now the values oscillating somehow between a max value and zero. I guess this is because the current draw is not constant but chopped instead. the measuring rate is between 50hz (ir im reading all inputs on arduino ) or about 1Khz if i'm rading just the one analog input. So the reason finally is (I hope it's the right english expression for this...) kind of an overlapping frequency effect.
My idea now to solve this is by smoothing the voltage output of the sensor with a condenser or a RC lowpass filter. But I'm not sure if then the voltage curve is still somehow reporting a usefull average current value?
Any sugestions or remarks?