Electronic – Resistive load (voltage and current monitoring)

current measurementpwmvoltage measurement

I would like to design a circuit to drive a resistive load (around 3 to 4 ohms) with a maximum current of 2 amps. I want to monitor both voltage and current delivered to the resistive load.

I have designed a first version of the circuit with PWM (20kHz) and a Mosfet. I use a voltage divider to monitor the voltage and an INA169 for the current.

enter image description here

However, voltage and current measurements contain the PWM signal. I tried to filter the outputs, but the result is not very accurate.

Does someone have a better solution to do the monitoring ? Is it possible not to use PWM without dissipating too much energy ?

Best Answer

What you have is the basics of a buck converter so, by adding a capacitor, an inductor and a fly-back diode you can significantly reduce the size of the pulses delivered to your load down to a few milli volts peak to peak: -

enter image description here

Choose L and C so that resonance occurs at a low frequency compared to your switching frequency (maybe 100 Hz).