I'm trying to simulate a simple coil and feeding it a pulse signal representative of a 25khz pwm signal. The current regulates itself half decently with only the coil and sense resistor in this simple circuit, but i'm trying to make it smoother. However no matter where I add a capacitor to this, it throws the voltages all over the place. Usually I get a negative voltage at the sense resistor, which doesn't make sense to me.
This is just simulation at this point, but is what i'm trying to do possible? and if so whats wrong with my thought process on this.
Here's an image of my super simplified stepper coil and sense resistor.
We're totally disregarding that in operation there would be 2 coils both driven by H-bridges.
This is just simulation at this point, but is what i'm trying to do possible? and if so whats wrong with my thought process on this.
Here's an image of my super simplified stepper coil and sense resistor.
We're totally disregarding that in operation there would be 2 coils both driven by H-bridges.