%%javascript
Jupyter.keyboard_manager.command_shortcuts.remove_shortcut('up');
Jupyter.keyboard_manager.command_shortcuts.remove_shortcut('down');
from IPython import display
Some sim issues a small change to the Schotky diode means big changes to sim, both in results and sim speed. One Schotky choice didn't sim. Ended up with the RSX201VYM30 as I couldn't find a model for Charlie's choice.
Appears to work. About 2 minutes to simulate. 2 volts on VSet. Sim as 900ma peak. Ripple current about 210ma. With 0.1 Rset should be about, $$I_{avg} = 2.0/2.5)\cdot(1.0)$$ $$I_{avg} = 800ma$$ and according to the sim is, $$I_{avg-sim} = 900 - (210/2)$$ $$I_{avg-sim} = 795ma$$
See image below.
Note: The 'Gear' method was used for the simulation.
So it looks like the sim is working well.
Looks good. Set PWM freq at 25Khz, duty cycle 50%. Result shows average current approximately 500ma. VSet shown in blue.
There is a sub nanosecond multi amp glitch occasionally. I'm guessing it's a model/simulator glitch.
Had to change the LTSpice settings as shown for an RC front end to VSet to simulate.
Tried to determine the input impedance of Vset by putting a 100 ohm in series the the 2V source and measuring the drop. Apparently this failed as the Vset pin is higher than the 2V input ..
2V source is green, the Vset pin is blue.
Schematic
From 12% to 88%.
Ripple about 20mv at 88%.