I have a device that I'd like to model in LTspice for some power analysis, it consumes 24W constant at voltages above 12.5V, and below 12.5V it shuts down. I was able to model this simply with a voltage depend current source and a table of values. However, after it shuts down it doesn't start back up again until 13.5V.
Any ideas for creating a circuit that will have these characteristics?
Sounds like you want to add a comparator with hysteresis to your model. Some kind of positive feedback is required for it. LTSpice behavioral simulation has effectively unlimited capabilities to achieve things like this.
Sounds like you want to add a comparator with hysteresis to your model. Some kind of positive feedback is required for it. LTSpice behavioral simulation has effectively unlimited capabilities to achieve things like this.
Thanks! That was what I was looking for, I implemented a comparator circuit with hysteresis but now I'm having another problem. It works with an ideal power supply hooked up to it, but if I add a series resistor between the voltage supply and the circuit thats consuming the load, the simulation hangs indefinitely. Any ideas?
Yes it would, but I never experienced V=0 in my simulation, but I added a condition fixing that.
From my simulation it seems to get hung up when the arbritrary current source starts increasing current draw, which in turn changes the input voltage, which causes the V(Vout) of the comparator to drop, and thus the current to also drop. So it kind of gets stuck in a loop there.