@Muse - To observe the inductive flyback current from a motor, two things are needed:
1. **Winding Inductance:** Real motor windings have significant inductance. Since the built-in ideal #M1 component models back-EMF and electromechanical load without parasitic inductance, an explicit winding inductor #Lw ($10\text{ mH}$) is placed in series with the motor.
2. **Flyback (Freewheeling) Diode:** Connected across the motor assembly (#sw to #vcc) in reverse bias relative to the supply #V1.
### How the Circuit Operates
- **ON Phase:** When the pulsed control signal #Vp turns on NMOS switch #Q1, current builds through #M1 and #Lw to ground, energizing the winding magnetic field. Diode #D1 is reverse-biased and blocks conduction.
- **Switch Turn-Off (Flyback):** When #Q1 abruptly turns off, the magnetic field in #Lw collapses. Because current through an inductor cannot change instantaneously:
$$v_L = L \frac{di}{dt}$$
The inductor forces the voltage at node #sw to spike above the positive rail #vcc ($6\text{ V} + V_\text{forward} \approx 6.7\text{–}7.2\text{ V}$).
- **Flyback Recirculation:** This voltage spike forward-biases #D1, providing a safe recirculation path for the stored inductive energy back into #vcc.
### Oscilloscope Setup
The oscilloscope is set up in stacked mode displaying:
- **Blue trace:** Voltage at node #sw, showing the drop during conduction and the inductive overshoot clamped by #D1.
- **Green trace:** Current through #D1, clearly capturing the flyback recirculation current pulse upon turn-off.
- **Orange trace:** Continuous current through #Lw, displaying the charge and inductive decay intervals.