Mon Jan 21, 2019 12:31 pm
More info regarding your electromagnet needed - probably info you don't have!
"Soft-iron" isn't very informative - there's been a whole industry built around iron going back centuries, including how much carbon it contains (making steel) as well as other impurities. Calling it "soft" just means it doesn't retain much of an internal magnetic field when an external field is removed - "much" being somewhat vague.
Also, not only the size (how long, how wide) but also its shape can affect how it behaves.
Then, how many turns of wire? What thickness? The thickness, the number of turns and how long each turn is will determine the resistance. Probably best to measure the resistance with your meter, so you know how much current any particular voltage will drive through it.
Now to your question about time.
Here, we're going to step up into calculus - I vaguely remember it was GCE maths in my day, but it might now be sixth form or beyond, unless it's taught in primary school now.
A coil has a property called inductance, L
Put a voltage V across it, and a current I starts to build up according to the equation
V = L dI/dt
where dI/dt is the rate of change of current with time
The same equation tells you how much voltage is generated if the current changes at a certain rate.
If you try to cut the current instantaneously - dI/dt is infinite - the voltage is also going to be infinite, for an instant.
Naturally, infinity isn't realistic, and what happens is sparks happen - the voltage rises enough to make air conductive, and the current flows through that, for a short time.
Connecting a diode across the ends of the coil gives the current a path, so that it doesn't die too fast.
Normally, it's reverse-biased, so no current flows through it, but when you disconnect the voltage - switch off your relay, or whatever - the voltage changes direction, the negative end becomes positive, and the diode conducts.
At that point in time, the current is flowing through the coil and the diode, and the resistance of that path together with the inductance of the coil determines how long it takes for the current to die down.
Just as a capacitance and resistance have a time constant - RC seconds, where R is ohms and C is Farads - so does an inductance and resistance - L/R seconds, again R is ohms with L in Henries.
You probably don't know the inductance of your coil, so you won't know the time-scale of the decay.
The inductance will depend on number of turns, etc., but also the size and shape of the core, and what the iron is like.