A Simple Solenoid Driver Circuit is a setup to control solenoid using low voltage signal.
Solenoids are like magnets and they change electric power into movement.
They need more voltage than small digital parts like microcontrollers can give.
The driver works like a switch and it lets small signal turn big current ON and OFF for solenoid.
Circuit Working:

Parts List:
Component Type | Description | Quantity |
---|---|---|
Resistors | 1k 1/4 watt | 1 |
10k 1/4 watt | 1 | |
Capacitors | Ceramic 1nF | 1 |
Semiconductors | IC 7812 | 1 |
MOSFET IRF540 | 1 | |
Diode 1N4007 | 1 | |
ON/OFF switch | 1 | |
12V Solenoid | 1 |
This article talks about a circuit that uses switch and low voltage to control solenoid.
Whole design is shown in picture above.
We can try make it on small board as it is not hard to build.
Solenoid usually works when 12V is connected and stops when power is OFF.
This circuit turns solenoid ON and OFF using MOSFET, a special switch that works with low voltage.
Important part here is MOSFET IRF540.
Some things to check when choosing MOSFET:
- It must turn ON at low voltage and this one needs 4V and circuit gives 5V so it works.
- It must handle enough current and this one can take 10A and whereas solenoid needs only 1.2A.
- Always better to pick MOSFET that handles more current than needed.
- When ON, it should have low resistance so solenoid gets full voltage whereas this one has only 0.077 ohm which is good.
If using other solenoid then check its datasheet.
The 12V supply becomes 5V using IC1 7812 regulator.
When switch is pressed then 5V goes to MOSFET gate pin through 1k resistor R1.
When switch is not pressed then 10k resistor R2 pulls gate pin to ground so MOSFET stays OFF.
A diode is added in reverse means anti-parallel to stop back current from solenoid coil into power line.
Formulas:
Lets see main formula and things to think about when making solenoid driver circuit:
Solenoid current (Isol):
We need to know how much current solenoid pulls from power.
Isol = Vout / Rload
where:
- Vout is 12V from IC 7812 output
- Rload is solenoids resistance
Check if voltage and current ratings of all parts match our solenoid and use case.
If solenoid needs high current then test circuit well.
Ensure MOSFET can handle heat.
Change parts and values as needed for our solenoid.
How to Build:
To build a Simple Solenoid Driver Circuit follow the below mentioned steps for assembling.
- Gather all parts shown in circuit diagram.
- Connect MOSFET Q1 gate pin to point between R1 and R2.
- Connect drain pin of Q1 to one wire of 12V solenoid.
- Connect other solenoid wire to +12V supply.
- Connect source pin of Q1 to ground (0V).
- Connect Vin pin of IC1 7812 between C1 capacitor and +12V supply.
- Connect GND pin of IC1 to 0V negative supply.
- Connect Vout pin of IC1 to R1 resistor through ON/OFF switch.
- Solenoid wires go between Q1 drain and +12V supply.
- Connect diode D1 in parallel with solenoid wires for reverse direction.
Safety Tips:
- Solenoids can use high current/voltage so we should use right rated parts.
- Do not use solenoids near fire or explosion risk because its switching can spark.
Conclusion:
With voltage regulator and MOSFET switch this Simple Solenoid Driver Circuit lets us turn ON big solenoid using small low voltage switch.
This circuit is easy to make but we should just take proper care while making it.
Leave a Reply