I have a brushed DC Motor and I want to measure the used current. For measuring I am using a ina219. The measurment is quite spiky and noisy. So I figured it also depends on the measurment timing due to the RL behavior of the Motor. Is it possible to sync the pwm with the i2c reading of the ina219? Or is there an easier way to smooth the measurment hardware side?