Skip to content
Cerebrus — Automation Engineering

Solenoids guide

Latching Solenoid Drive Circuits

A bistable latching solenoid holds with zero power only if the electronics switch it reliably every time, across supply voltage, temperature, and the life of the product. The drive circuit is half of the actuator. This guide covers the main circuit topologies, how to size the pulse, how to run a latching solenoid from a small battery, and how to know which position it is in.

In short

A latching solenoid drive circuit delivers short, controlled current pulses to set and reset a bistable solenoid, either by reversing the current through a single coil with an H-bridge or by switching separate set and reset coils, and draws no current while the solenoid holds.

Latching solenoid drive topologies compared
PropertySingle coil, H-bridgeDual coil, two switches
Coil arrangementOne winding; current reversed to resetSeparate set and reset windings
Switching devicesFour, as a full bridgeTwo, each switching in one direction
Force from a given sizeHigher: the whole winding works on every pulseLower: each winding uses only part of the coil space
Coil energy at switch-offReturned to the supply through the bridgeDissipated in a clamp across each winding
Best suited toCompact designs where an H-bridge driver is availableMinimal controllers and simple discrete drive

What the drive has to do

A bistable solenoid needs a pulse in one direction to set it and a pulse in the other direction, or on a second coil, to reset it. Between pulses, the drive must draw no current and must not let noise or a supply transient switch the solenoid by accident. Each pulse must carry enough energy to switch the solenoid at the lowest supply voltage and hottest coil, but the reset pulse must not be so strong that the reversed field pulls the plunger back into the latch, or in the extreme weakens the magnet.

Single-coil drive with an H-bridge

A single-coil latching solenoid is reset by reversing the current through its one winding, which takes a full H-bridge: four switches arranged so either end of the coil can be driven high or low. Integrated H-bridge driver ICs, the same kind used for small brushed DC motors, do this in one package with built-in protection.

During a pulse, two diagonal switches conduct. When they turn off, the energy stored in the coil returns to the supply through the bridge's diodes, so no separate flyback diode is needed, but the supply must have enough capacitance to absorb it.

Dual-coil drive

A dual-coil solenoid has separate set and reset windings, so each needs only a single switch, typically a low-side MOSFET, with a clamp across each winding to absorb the switch-off energy. The circuit is simpler, but each winding fills only part of the coil space, so a dual-coil solenoid is larger than a single-coil design with the same force. It suits products with minimal controllers or existing one-direction outputs.

Sizing the pulse

The pulse must last long enough for the plunger to complete its travel and seat; cutting it short can leave the plunger mid-stroke, unlatched. The time needed grows as the supply voltage falls and as the coil heats, because both reduce current. Many designs therefore measure the supply voltage and stretch the pulse to deliver consistent energy rather than using one fixed width. Pulses typically last from a few milliseconds to a few tens of milliseconds.

  • Verify switching at the lowest supply voltage and highest coil temperature.
  • Verify the release pulse at the highest supply voltage, where the risk of over-driving is greatest.
  • Interlock the inputs so set and reset can never be driven together.
  • Limit how quickly pulses can repeat, so a fault cannot overheat the coil.

Running from a battery: capacitor drive

A latching solenoid may need more peak current than a small battery, such as a coin cell, can supply. Capacitor drive solves this: the battery slowly charges a storage capacitor, and the capacitor delivers the pulse, so the battery only ever sees a small charging current. The capacitor is sized to switch the solenoid at its lowest charge voltage, and the firmware confirms it is charged before firing.

The same stored energy can drive the solenoid to a safe position if main power is lost, which is how a latching design is made fail-safe.

Knowing the position

A latching solenoid keeps its position through a power loss, but after a reset or a mechanical shock the controller may not know what that position is. Common ways to find out:

  • A Hall-effect sensor detecting the plunger, or a magnet mounted on it.
  • A mechanical or optical switch at one end of the stroke.
  • Sensorless detection: the coil's inductance is higher when the plunger is seated, so the rate at which current rises during a brief, low-energy test pulse reveals the position.
  • Driving to a known state at start-up, so the position is defined by design.

Protection and robustness

  • Defined default states on the driver inputs, so they cannot float at power-up and fire a pulse.
  • Enough supply capacitance to absorb the energy returned at the end of each pulse.
  • Transient suppression on long coil leads.
  • A hardware or firmware timeout, so a fault can never hold the coil on and overheat it.

Drive and solenoid, designed together

Because the drive sets the voltage, current, and pulse the coil actually sees, we design the two together: coil resistance and turns matched to the driver and supply, pulse timing set from measurements on the prototype, and the complete actuator characterized across voltage and temperature. Cerebrus develops the embedded electronics in-house, and prototypes are built in-house in two weeks.

FAQ

Latching Solenoid Drive Circuits: frequently asked questions

How do you drive a latching solenoid?

With short current pulses: one polarity to set it and the opposite polarity to reset it, using an H-bridge for a single-coil design, or a separate switch for each winding of a dual-coil design. Between pulses the drive draws no current.

Do I need an H-bridge for a latching solenoid?

Only for a single-coil design, which is reset by reversing the current. A dual-coil latching solenoid can be driven with two simple one-direction switches, at the cost of a somewhat larger solenoid.

How long should the latching pulse be?

Long enough for the plunger to complete its stroke at the lowest supply voltage and highest coil temperature, typically a few milliseconds to a few tens of milliseconds. Many drives measure the supply voltage and adjust the pulse width to deliver consistent energy.

Can a latching solenoid run from a coin cell battery?

Often, using capacitor drive: the battery charges a capacitor slowly and the capacitor supplies the switching pulse, so the battery never sees the solenoid's peak current.

How can I tell which position a latching solenoid is in?

With a Hall-effect sensor or an end-of-stroke switch, or sensorlessly, by measuring how fast current rises during a brief test pulse, since the coil's inductance is higher when the plunger is seated. Some designs simply drive to a known state at start-up.

Does a latching solenoid need a flyback diode?

In an H-bridge drive, the bridge's own diodes return the coil's energy to the supply, so no separate diode is needed, but the supply needs enough capacitance to absorb it. In a dual-coil drive with single switches, each winding needs its own clamp.

Request a design review

Start a custom solenoid project

Send us what you know; rough numbers are fine. These are the requirements that define a solenoid design:

  • Motion: linear push or pull, or rotary, plus the stroke or angle
  • Force: required force at the start and end of the stroke, or the load curve
  • Holding: monostable or bistable (latching), and any holding force needed with power off
  • Electrical: supply voltage and source (battery, DC bus, AC), and the current or energy available per actuation
  • Timing: response time, cycle rate, and how long it must stay actuated
  • Envelope: maximum size, mounting, and how the load attaches
  • Environment: temperature range, shock and vibration, moisture or washdown
  • Life: required number of cycles
  • Power loss: should it hold, return, or move to a safe position?
  • Quantities: prototype quantity and expected annual volume

Send your requirements

Prototypes built in-house in two weeks.

The email opens with these fields laid out. Fill in what you can and an engineer will reply.

Email your requirements1.908.333.4813

info@cerebrus.com

Have a project in mind?

Tell us what you're trying to build or automate. We'll help you scope it and recommend the right approach.