Latest / Mechanical Engineering Made Simple / (#125) Why Your Solenoid Actuator Is Weak
Transcript
- 0:00Welcome back to mechanical engineering made simple.
- 0:02It is. It's really fantastic to be
- 0:05back. Today we are going to dive into
- 0:06a story about a device that I think every single engineer or
- 0:13tinkerer has underestimated at least once in their life.
- 0:16Oh, definitely. Because it looks deceptively
- 0:18simple, right? It's essentially just a spool of
- 0:20copper wire and a chunk of steel.
- 0:22You are talking about the solenoid actuator I.
- 0:25AM And honestly, it's a classic trap.
- 0:27You look at the diagram and it's just a coil and a plunger.
- 0:30You think, how hard can this be? I run current, the magnet turns
- 0:33on, the thing clicks right. But then you actually build 1.
- 0:36Or, you know, you try to troubleshoot one in a piece of
- 0:38industrial machinery, and you realize that getting that
- 0:41satisfying snap involves some seriously nuanced physics.
- 0:45It really does. I mean, on paper it is the
- 0:48simplest machine in existence, but the gap between making a
- 0:52magnet and making a useful actuator that actually does work
- 0:55is huge. That gap is filled with concepts
- 0:58like inductance, reluctance, and the principle of virtual work.
- 1:02And to navigate that gap for this deep dive, we're going to
- 1:05follow the very real struggles of a protagonist we'll call
- 1:09Alex. OK.
- 1:10Now Alex is a mechanical engineer working on a pretty
- 1:13high stakes project. He's designing a safety locking
- 1:16latch for a pressurized industrial door.
- 1:19Oh wow. OK, so this isn't just a toaster
- 1:21lever. If this latch fails, the door
- 1:24could blow open or the safety interlocks could fail.
- 1:27The stakes are real. Exactly.
- 1:30The requirements are super clear.
- 1:32When the control system sends a signal, a Skeel bolt, which is
- 1:35our plunger, needs to shoot forward, compress a heavy spring
- 1:39and lock that door solid. Which is a very standard linear
- 1:42actuator application. Right, so Alex does what any of
- 1:46us might do. He grabs a plastic spool, winds
- 1:49a few hundred turns of magnet wire around it, sticks a steel
- 1:52bolt about halfway into the hole and hooks it up to his 24 Volt
- 1:55power supply. Sounds reasonable so far.
- 1:57He's ready for the big moment. He flips the switch, expecting a
- 2:00loud industrial clunk. But I can already see where this
- 2:03is going. Yeah, instead of a clunk, you
- 2:04get to a twitch. A twitch.
- 2:06The bolt kind of lazily slides forward maybe 1/4 of an inch,
- 2:10vibrates a little bit, and it just stops.
- 2:13It doesn't even come close to compressing the locking spring.
- 2:16It's weak. It's weak, it's sad, and Alex is
- 2:19standing there scratching his head thinking I have current
- 2:21flowing. I have a magnet.
- 2:23Why do I have 0 force? That is the classic twitch of
- 2:27failure, and I bet I know what his first instinct is to fix it.
- 2:30Oh, absolutely. He looks at the power supply
- 2:33dial and thinks I just need more juice.
- 2:35Right. He's about to crank the voltage
- 2:37from 24 up to 48. Which is the engineering
- 2:40equivalent of just yelling louder at someone who doesn't
- 2:42speak your language. It really is.
- 2:44Yeah. And before Alex melts his coil
- 2:46into a puddle of copper and plastic, let's freeze time.
- 2:49Yeah, We need to help him understand why his latch is
- 2:52failing. Yes.
- 2:53And to do that, we have to look at how we actually calculate the
- 2:56force on that plunger, because it turns out there's a hard way
- 3:00to do it in a smart way. And unfortunately, most of us
- 3:04learn the hard way in physics class, which is exactly why Alex
- 3:07is confused right now. He's probably thinking about the
- 3:09Lorentz force. The Lorentz force, yeah, that's
- 3:11when we all memorize, right? F equals QE plus QV QV cross B.
- 3:16Right. It tells you the force on a
- 3:18single charged particle moving through a magnetic field.
- 3:22It is strictly, fundamentally true.
- 3:24Every single electron spiraling through Alex's wire is
- 3:28experiencing this force. So.
- 3:30Alex is thinking, OK, I just need to sum up all those forces.
- 3:33But think about what that actually entails.
- 3:35You have a spiral coil, so the current direction is constantly
- 3:38changing in three dimensions. You have a magnetic field that
- 3:41curves and changes intensity depending on where you are in
- 3:44the coil. To calculate the net force on
- 3:46the plunger using Lorentz, you would need to do a vector cross
- 3:50product calculation for every differential element of the wire
- 3:54and the core. Which is a vector calculus
- 3:56nightmare. It is entirely computationally
- 3:58exhausting. It's like trying to predict the
- 4:00flow of a river by tracking every single water molecule
- 4:03individually. You might get the right answer
- 4:05eventually, but it gives you 0 intuition about how to fix the
- 4:09physical. Design.
- 4:10So we abandoned the hard way. We need the smart way and the
- 4:13sources call this the energy method.
- 4:15Or the principle of virtual work.
- 4:17This is the exact shift Alex needs to make.
- 4:20Instead of asking what is the force on this electron, you ask
- 4:24how does the energy in the system change if I move the
- 4:27plunger? OK, let's unpack this.
- 4:29We're moving from vectors to energy.
- 4:31How does that help us find the force?
- 4:33Well, think about a ball sitting at the top of the hill.
- 4:35Why does gravity pull it down? Because the ball wants to lower
- 4:39its potential energy, it wants to go from a high energy state
- 4:42to a low energy state. Precisely.
- 4:44Electromechanical systems have a very similar drive.
- 4:47The magnetic field stores energy, and the system will
- 4:50generate a force to rearrange itself into a state where it can
- 4:53store that energy most efficiently.
- 4:55OK, in the case of a solenoid, the system wants to maximize its
- 4:59inductance. Maximize inductance.
- 5:01It sounds like a textbook catch phrase, but what does it
- 5:03actually mean physically? What is this system trying to
- 5:05do? Think of the magnetic field
- 5:07lines like a stream of water. They really, really want to flow
- 5:11through iron. Iron is like a wide open pipe
- 5:14for magnetic flux. But air?
- 5:16Air is like a clogged pipe. It's very hard for the field to
- 5:19travel through air. OK, so in Alex's broken latch,
- 5:23the plunger sitting halfway out, there's a big air gap inside the
- 5:27coil. Exactly.
- 5:28The magnetic field is trying to complete its loop, but it has to
- 5:31jump across this massive gap of air.
- 5:33It's strained, it's inefficient. The inductance is low because
- 5:37the path is so difficult. And the system knows that if the
- 5:40plunger were to move inward, that air gap would disappear.
- 5:43OK, yes, the system senses that moving the steel plunger into
- 5:48the gap will make the path easier.
- 5:50It will increase the inductance. So the force you feel that
- 5:53physical pull on the plunger is actually the system trying to
- 5:56grab the steel and stuff it into the air gap to make the magnetic
- 6:00flow easier. That makes so much more sense
- 6:02than calculating electron vectors.
- 6:04Yeah, the force is just the system trying to close the gap.
- 6:06Correct. And we can actually quantify
- 6:08this. The sources give us a specific
- 6:10equation that really illuminates Alex's problem.
- 6:12Let's hear it. The force is equal to 1/2 times
- 6:15is the current squared multiplied by and this is the
- 6:18key term here. The change in inductance with
- 6:20respect to position, OK. Let's visualize that equation
- 6:23force equals one half I ^2 * d LDX.
- 6:27Exactly DLDX. That is the derivative.
- 6:31It represents the slope of the inductance.
- 6:33It basically asks the question, if I move the plunger 1mm, how
- 6:38much does the inductance improve?
- 6:40So it's a bang for your butt calculation.
- 6:41That's exactly what it is. If moving the plunger gives a
- 6:44huge increase, recent inductance, a huge improvement
- 6:47in the magnetic path, then DLDX is big and the force is huge.
- 6:51Yeah, but if moving the plunger barely changes anything.
- 6:54Then the force is tiny and I think we just diagnosed Alex's
- 6:58problem. We did.
- 6:59Alex has his plunger starting way out in the air.
- 7:01The air gap is huge. When the plunger moves a tiny
- 7:04bit from that position, the magnetic path doesn't get that
- 7:06much better. It's still mostly air.
- 7:08So DLDX is small. It's very small, yeah.
- 7:11The system effectively shrugs and says, well, moving the
- 7:13plunger doesn't really help me much right now, so I'm not going
- 7:15to pull very hard. But as the plunger gets closer.
- 7:17As it gets closer, it starts to bridge the gap.
- 7:20Suddenly every millimeter of movement drastically improves
- 7:23the magnetic path. The inductance sty rockets so
- 7:26DLDX becomes massive and the force spikes.
- 7:30This is a huge realization for anyone designing these.
- 7:34A solenoid isn't like a hydraulic piston that pushes
- 7:36with constant force. It's highly non linear.
- 7:40It's weak at the start and incredibly strong at the end.
- 7:43Which is terrible for Alex because he needs to compress a
- 7:46heavy spring right from the beginning of the stroke.
- 7:49He is trying to start his movement in the dead zone.
- 7:52So cranking the voltage isn't the answer.
- 7:54He needs to fix the geometry. And this leads us to another
- 7:58concept from the notes that helps visualize the fix, which
- 8:01is the magnetic circuit. Yes, this is the bread and
- 8:04butter of magnetic design. Electrical engineers love
- 8:06circuits, so we just map magnetism onto circuit rules.
- 8:10Makes things so much easier to see.
- 8:12So let's run the comparison. In an electric circuit you have
- 8:15voltage pushing current against resistance.
- 8:17Right. And in a magnetic circuit you
- 8:19have magnetomotive force which is your number of turns times
- 8:23your current or N times I pushing magnetic flux against
- 8:26reluctance. Reluctance.
- 8:28I love that word. It just sounds like the material
- 8:30is stubbornly refusing to cooperate.
- 8:33That is exactly what it is doing.
- 8:35Reluctance is a measure of how much material resists magnetic
- 8:38flux. Iron has very little reluctance.
- 8:42Air has massive, huge reluctance.
- 8:44So looking at Alex's latch through this lens, he has a
- 8:47circuit. The coil provides the push, but
- 8:50his circuit has a giant resistor in the middle of it, which is
- 8:53the air gap. He's trying to drive current
- 8:55through a brick wall. The force we talked about
- 8:57earlier, another way to define it is that the system is trying
- 9:00to minimize reluctance. It wants to delete that air gap
- 9:04resistor and replace it with a short circuit of steel.
- 9:07So knowing all this, the energy method, inductance, reluctance,
- 9:11how does Alex actually fix the latch?
- 9:13He's sitting there with this twitching bolt.
- 9:14What does he do? He needs a three-step plan.
- 9:17First geometry. He has to redesign the mechanism
- 9:20so the plunger starts deeper inside the coil.
- 9:23He needs to eliminate that initial dead zone so that DLDX
- 9:26is high right from the very start.
- 9:28Don't ask the solenoid to pull from across the room.
- 9:30Got it. 2nd is the return path. This is a super common rookie
- 9:34mistake. The flux go through the center
- 9:36of the coil, but how does it get back to the other end?
- 9:38Usually just through the air around the outside of the coil,
- 9:40right? Right, and that is a huge source
- 9:42of reluctance. The air outside the coil is just
- 9:45as bad as the air inside. Alex needs to wrap the coil in a
- 9:49steel shell or AC bracket. He needs to build a magnetic
- 9:52highway for the flux to loop back.
- 9:54So he's encasing the coil in iron to keep the reluctance low
- 9:58for the whole entire loop. Exactly and 3rd materials.
- 10:02He needs to make sure his plunger is made of a high
- 10:05permeability steel. If he's using standard stainless
- 10:08steel for example, some grades of that are non magnetic.
- 10:12That would be like using plastic.
- 10:14He needs a material that loves magnetic flux.
- 10:16OK, so let's Fast forward. Alex takes this advice.
- 10:19He adds a steel bracket around the coil.
- 10:21He adjusts the mounting so the plunger starts closer to the
- 10:24center. He flips the switch.
- 10:25Again, and this time, snap. It hits hard.
- 10:27It compresses the spring. The door locks.
- 10:30He didn't just add power, he removed the resistance, or
- 10:34rather the reluctance that was choking the system.
- 10:36He worked with the energy field instead of fighting it.
- 10:39Now that's a massive win for Alex, but I want to complicate
- 10:42his life a little bit. Let's say theoretically, Alex
- 10:46gets bored with safety latches. He sees this solenoid and
- 10:50things. You know, if I don't put a
- 10:52stopper on this, I could shoot this bolt right across the room.
- 10:56The coil gun pivot. Every engineer tries this
- 10:59eventually. Can I make a projectile
- 11:01launcher? But the notes mention a specific
- 11:03trap here. It's a dynamic problem called
- 11:06the suck back effect. This is a great cautionary tale
- 11:09about the energy method. Remember the golden rule?
- 11:11The system wants to maximize inductance.
- 11:14Right, and inductance is maximized when the iron core is
- 11:16perfectly centered inside the coil.
- 11:18Correct. So as the bolt is flying towards
- 11:21the center, the force is pulling it forward.
- 11:23It's accelerating. Life is good, but what happens
- 11:26the instant the bolt passes that center point?
- 11:28Well, now it's leaving the region of maximum inductance.
- 11:30Exactly. It's moving into a state of
- 11:32lower inductance, and since the system hates that DLEDX flips
- 11:37its sign, it becomes negative. The force reverses direction
- 11:40instantly. So the coil stops pulling it
- 11:42forward and starts yanking it backward.
- 11:43It tries to suck it back into the center.
- 11:46If Alex just leaves, the power on, the bolt will shoot forward,
- 11:49get yanked back, oscillate a few times, and just settle in the
- 11:52middle. It won't launch at all, it'll
- 11:53just get trapped. To make a coil gun you really
- 11:56had to be faster than the physics.
- 11:58You have to cut the current. You need to kill the magnetic
- 12:01field at the exact microsecond the projectile reaches the
- 12:04center. You pull it in and then bam,
- 12:06turn off the magnet so it can coast out on its own momentum.
- 12:09But that timing seems impossible to just guess the bolt is moving
- 12:13fast. How do you know when it's there?
- 12:15This brings us to another fascinating concept from the
- 12:18source material, which is back EMF.
- 12:20Back EMF, we usually talk about that with motors.
- 12:23Well, solenoid is just a linear motor.
- 12:26As that steel plunger races through the magnetic field, it
- 12:29disrupts the flux lines. Faraday's law of induction kicks
- 12:33in. The physical movement itself
- 12:35induces a voltage in the wire that opposes the current you're
- 12:38putting in. So the faster the bolt moves,
- 12:40the more pushback voltage you get.
- 12:42Exactly. And if Alex is clever, he can
- 12:45use this. If he hooks up an oscilloscope
- 12:48like they do in the lab modules, he can watch the voltage across
- 12:51the coil. He'll see a spike or a that
- 12:54perfectly corresponds to the speed of the plunger.
- 12:56The coil is basically acting as its own speedometer.
- 12:58It is. He can use that signal to
- 13:01trigger the shut off. He's using the interaction
- 13:03between the mechanics and the electronics to time the shot
- 13:06perfectly. That is incredibly cool.
- 13:08It's using the problem, the back EMF as the actual solution.
- 13:13That is the essence of good mechatronics design right there.
- 13:16OK, so we fixed the latch and we built a theoretical coil gun.
- 13:20I want to pivot now to the post mortem.
- 13:22Let's look at the frequently asked questions.
- 13:24These are the things that Alex and you listening might run into
- 13:27after you build the thing. The why is it doing that phase?
- 13:30Exactly. So scenario 1, Alex's latch is
- 13:33working. It's snap shut but he leaves in
- 13:35lock for an hour. He comes back, touches the coil
- 13:38and burns his finger. It's incredibly.
- 13:40Hot This is the most common complaint with solenoids and it
- 13:43goes straight back to energy conservation.
- 13:44We're putting electrical energy in.
- 13:46Right. And we want mechanical workout
- 13:48which is force times distance. But think about but once the
- 13:51latch is closed, is it moving? No distance is 0.
- 13:54If distance is 0, mechanical work is 0.
- 13:57So you are pumping 24 volts and maybe 2 amps into this coil.
- 14:02That's 48 watts of power. Where is it going?
- 14:05It's not moving the bolt, so it has to be heat. 100% of it
- 14:08becomes heat. It's just I squared our losses.
- 14:12You are essentially turning your latch into a very expensive,
- 14:16very inefficient heater. Solenoids are notoriously bad at
- 14:20holding in my position. So did Alex design it wrong?
- 14:22Not necessarily, but he needs a control strategy.
- 14:25Real industrial controllers often use a hit and hold
- 14:28circuit. They hit it with high current to
- 14:30get that big DLDX snap, and then once it's closed they drop the
- 14:34voltage down to just a trickle. Just enough current to keep it
- 14:38there without melting the insulation.
- 14:39That makes a lot of sense. Yeah, OK.
- 14:41Scenario 2. Alex thinks I learned about
- 14:44magnetomotive force. It's number of turns times
- 14:46current or north times I. So if I want more force, I'll
- 14:50just double the number of turns on my coil.
- 14:52Ah yes, the more turns equals more power fallacy.
- 14:55Why is it a fallacy though? The math says n * I more N
- 15:00should mean more force. It does if you can keep the
- 15:02current the exact same. But here's the catch.
- 15:06Copper wire has resistance. If you double the number of
- 15:09turns, you're doubling the physical length of the wire.
- 15:11So you're doubling the resistance.
- 15:13Right, and Ohm's law is stubborn.
- 15:16If resistance double S and your voltage is fixed like from a
- 15:19power supply or battery, your current gets cut in half.
- 15:22So you doubled N, but you halved I.
- 15:24And you end up with the exact same magnetic force, but now
- 15:28your coil is twice as big and twice as expensive.
- 15:31It's a 0 sum game unless you change the wire gauge or bump up
- 15:34the voltage. You have to optimize, you can't
- 15:36just add more. It's never as simple as just add
- 15:38more wire. OK, last question.
- 15:41We see this in speakers and some fancy actuators.
- 15:43They put a permanent magnet inside the coil assembly.
- 15:47Why isn't the coil supposed to be the magnet?
- 15:49This is a phenomenal efficiency hack.
- 15:51We just talked about how much heat Alex created just to hold
- 15:53the latch. He's essentially renting the
- 15:55magnetic field using electricity and he pays for that rent and
- 15:58heat. And a permanent magnet owns the
- 16:00field. Exactly.
- 16:02A permanent magnet provides a strong bias field for free.
- 16:05It's there forever with 0 energy cost.
- 16:09So in a speaker or a specialized motor, you use the permanent
- 16:12magnet to do the heavy lifting of creating the baseline field.
- 16:16OK, then you use your coil current only to modulate that
- 16:19field to push or pull against the bias.
- 16:22So you get way more force for way less.
- 16:24Current exactly. You are using the electricity
- 16:27for fine control, not just for the brute force creation of the
- 16:30field. It's much smarter design.
- 16:32So bringing it all back to Alex, he started with a plastic spool
- 16:36and a dream, and he ended up navigating vector calculus,
- 16:40energy methods, magnetic circuits, and thermal
- 16:42management. And hopefully you realize that a
- 16:44solenoid isn't just a magnet, it's an energy conversion
- 16:47machine. It's a device that is constantly
- 16:49trying to minimize its reluctance and maximize its
- 16:52inductance and. Once you understand what the
- 16:54machine wants to close that air gap to store energy, you can
- 16:58design around it. You stop fighting the physics
- 17:00and start using it. Before we wrap up, is there one
- 17:03final image or concept you want to leave everyone with?
- 17:07Something for you listening to visualize when you're staring at
- 17:10a coil of wire. Yes, we talked extensively about
- 17:13the energy method, but sometimes it helps to think in terms of
- 17:16magnetic pressure. Magnetic pressure like a gas.
- 17:20Sort of, yes. Imagine the magnetic field lines
- 17:23in that air gap aren't just abstract lines.
- 17:25Imagine they are rubber bands that are packed tightly
- 17:27together. OK, rubber bands.
- 17:29These rubber bands have two properties.
- 17:31One, they want to be as short as possible.
- 17:33They are under tension, that is the physical force pulling the
- 17:37plunger in the lines trying to shorten themselves.
- 17:40But 2, they push sideways against each other.
- 17:42They hate being crowded. This is the magnetic pressure.
- 17:45So they are pulling lengthwise and pushing sideways.
- 17:48Right. And that tension, that deep
- 17:49desire to shorten, is what snapped Alex's latch shut.
- 17:53He simply provided a path, the iron core, that allowed those
- 17:56rubber bands to relax and get short.
- 17:59If you can visualize the field as a bundle of tension looking
- 18:02for release, you can intuitively troubleshoot almost any magnetic
- 18:06actuator. The rubber band theory of
- 18:08magnetism. I like it.
- 18:10It takes the invisible and makes it completely tactile.
- 18:13It works surprisingly well in the.
- 18:14Field Well Alex, wherever you are, I hope your door is locked
- 18:18tight and your coil isn't overheating.
- 18:20And watch out for that suck back effect if you try to build the
- 18:23launcher. Absolutely.
- 18:25Thanks for joining us for this deep dive into the deceptively
- 18:28complex world of solenoids. And if you haven't already, get
- 18:31over to our YouTube channel Mechanical Engineering Made
- 18:34Simple, where we post hands on how to videos, visual
- 18:37breakdowns, and practical engineering walkthroughs.
- 18:39You can actually use a family that solves together, stays
- 18:43together.