I'm building a simulator for a current monitoring device with PID control. I haven't gotten into any fancy calculations beyond the basic ohms law stuff for resistor sizing. I used LTspice to simulate and size my RC circuit.
I would like to figure out a way to calculate what my output voltage will be based on my PWM output.
Its somewhat confusing to me because LTspice is showing a non-linear relationship between vout and the pwm ratio.
forgive me because so much of this is new to me, and i have in the last 3 months learned so much that my head is somewhat scrambled. I have probably read (multiple times) the calculations for this, but I'm fighting with comprehension a bit still.
I have built the simulator and it works, but I need to properly understand how the PWM --> RC filter thing works.
I would like to figure out a way to calculate what my output voltage will be based on my PWM output.
Its somewhat confusing to me because LTspice is showing a non-linear relationship between vout and the pwm ratio.
forgive me because so much of this is new to me, and i have in the last 3 months learned so much that my head is somewhat scrambled. I have probably read (multiple times) the calculations for this, but I'm fighting with comprehension a bit still.
I have built the simulator and it works, but I need to properly understand how the PWM --> RC filter thing works.