Ok, I tried adding a 1 ohm resistor in series with the power supply to monotor inductor current with poor results. The inductor measures around 25 mH with about 1 ohm resistance in the wire.
The mosfet is driven from a squarewave generator (8 volts) and there is a 330 ohm resistor in parallel with the inductor to discharge the inductor.
With a 4 volt power supply input, the waveform at the junction of inductor and 1 ohm resistor is a typical LR or inverted RC curve. Totally non-linear.
Time period is about 600uS per cycle and half that is idle time. During the mosfet on-time, the current waveform rises slowly for about 50uS and then increases exponentionally to about 1.5 Amps at about 300uS. At that point, current is near the maximum of 2 amps
But the waveform is not linear anywhere along the curve. It looks just like an inverted RC time curve The current starts out slow and then rises exponentially the same way the voltage rises across a capacitor rises with a series resistance.
And the time doesn't make any sense since the current reaches a maximum of 1.5 amps in 300uS, and working out the current for a 25mH inductor at 4 volts for 300uS is only 48mA. I = ET/L = (4*.0003)/ 0.025 = 48 mA
What's wrong with my inductor, or test setup?
-Bill