I am using INA138 current sensor with 100Hz, PWM duty 5%, 8-bit resolution signal load is a resistor,
I getting zero readings while actual current readings also appear,
zero current sense output - this means when the current sensor detects OFF DUTY of duty cycle it gives zero volts on the output., the load is an LED, controlling led brightness with a feedback loop,
I need to remove this zero by adding a low pass filter to the output of the current sensor
my sampling rate 255, cycles per second,
I need continuous measurement without going to zero, to make fast feedback control loop, I get actual current reading 5-10 times per second while other readings are zero.
reading - 4.2,0,0,0,0,4.2,0,0,0,0,....
I have doubt,
What if I add an RC low pass filter on the output of current sensor?
how to avoid reducing voltage while low pass filtering?