• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Voltage Control and Protection / Make this Single MOSFET Solid-State Relay SSR circuit

DIY Circuits | Learn Basics | Arduino Coding




Make this Single MOSFET Solid-State Relay SSR circuit

Last Updated on November 27, 2025 by Swagatam 2 Comments


This single MOSFET solid-state relay SSR circuit is a very simple where you can drive an AC load like a lamp, motor, or any oter AC load, through a small DC control voltage.

We use only one IRF840 MOSFET to switch the 220V AC load, and we do this with some clever diode bridge arrangement, one BC547 stage, one PC817 optocoupler, one zener, some resistors, and one RC snubber. So we get a low cost SSR that works for light duty load.

Full Circuit Diagram

Audio/Video Representation

Why We Use PC817

We use PC817 because we want total isolation between control side and the dangerous AC side, so when you apply any small input voltage from 1V to 12V to the SSR input, then the PC817 LED lights up and the internal transistor inside PC817 conducts.

That transistor pulls the external BC547 base low, and then we get the MOSFET gate biasing started. So we stay totally safe from the 220V AC because of this isolation.

How The BC547 Works

We see that BC547 is used like a small level shifting and shaping transistor. When PC817 activates through an external control voltage then it causes the BC547 turn off. When this happens then positive supply is able to enter through its collector 1K and the 1N4148 to reach the MOSFET gate network.

The BC547 also makes sure that the gate capacitor 100uF charges and discharges slowly so that the MOSFET does not switch too fast and gets a clean DC for the switching. This protects the MOSFET from sudden AC peaks. So we now understand that BC547 is doing the job of a driver and a buffer.

Why We Have The Zener

We put a 15V 1W zener because we want the gate voltage of IRF840 to never cross around 12V to 15V.

If the AC peak becomes large due to the 68K 2 watt resistor dropping current, then the zener clamps it to a safe level, so that the MOSFET gate gets enough voltage to switch strongly but never too much to break down the gate oxide. So the zener is for MOSFET gate safety.

Role Of The 68K 2 Watt Resistor

You see this is the main high voltage dropping resistor, which takes the 220V AC peak and drops it down to a small current that charges the 100uF capacitor via the diodes whenever the BC547 is turned off with an input control signal.

So this resistor feeds the gate driver with limited current. Because it is handling AC peaks, so we use 2 watt, just to protect it and we safely develop the gate DC supply for the MOSFET.

Why We Use The 1N5408 Diode Bridge

We put 4 * 1N5408 diodes in bridge form so that the MOSFET always sees a DC polarity across its drain and source even though the load is AC.

This is important because MOSFET can switch DC smoothly but in AC the polarity keeps reversing, so the diode bridge takes AC from the mains and gives DC polarity across MOSFET.

So whenever the MOSFET turns ON, then the bridge allows current in both half cycles to the load causing the lamp or load sees AC normally.

How The MOSFET Switches AC Load

We put IRF840 in the DC path that comes out from the diode bridge, so when BC547 sends voltage to the gate, then the MOSFET starts conducting.

The MOSFET completes the DC route inside the diode bridge and so AC starts flowing to the load.

When the gate voltage goes low then MOSFET stops, and the AC load switches OFF, so that shows we we are simply controlling AC with a DC MOSFET.

Why We Add The RC Snubber

We add the RC snubber to absorb sudden voltage spikes across the MOSFET because AC loads can create a lot of noise, especially inductive loads, so the snubber protects the MOSFET from high dv/dt and keeps the switching smooth, keeping the circuit safe.

How The Circuit Responds To Control Voltage

Now let us say you apply 5V or 12V to the SSR input pins, then PC817 LED glows, this causes the PC817 transistor to conduct.

This pulls the BC547 base to ground by the opto-coupler internal BJT.

This allows the +15V 100 Hz DC to enter through the 1N4148 and feed the 100uF capacitor and the gate resistor network where it is converterd to a stable 15V DC for the MOSFET gate.

Then the IRF840 gate rises to around 10V to 12V regulated by the zener and the MOSFET switches ON.

After this the diode bridge routes AC to the load.

When you remove the control voltage then PC817 LED switches OFF and everything collapses, the gate capacitor slowly discharges, and the MOSFET shuts OFF.

Practical Use

You can use this SSR to switch lamps, CFL lamps, or small heaters. It is not for heavy inductive motors because IRF840 cannot handle very large current and inductive spikes without powerful snubbers, but for moderate loads it works very nicely. It is cheap and safe. Of course you can upgrade the MOSFET with higher rating or IGBT for handling extreme high loads.

Important Safety

Always remember that this circuit uses 220V AC, so if you touch anything wrong, then you get severe shock.

So we always build it inside a fully insulated box and we keep proper spacing on PCB. We must never touch the circuit when AC is connected. So we protect ourselves always.

Conclusion

So now we understand everything about this single MOSFET SSR design. We see how we use simple components like PC817, BC547, IRF840, zener, big resistor and diode bridge to create a cheap AC switching circuit. If you have any questions please feel free to ask in the comments section.

Parts List (BOM)

Part NameSpecificationQuantity
PC817Optocoupler, standard type1
BC547NPN transistor1
IRF840MOSFET, 500V, 8A1
1K Resistor1/4 watt2
68K Resistor2 watt1
10K Resistor1/4 watt1
10R Resistor1/4 watt1
15V Zener Diode1 watt1
1N4148 DiodeSmall signal diode1
1N5408 Diode3A rectifier diode4
100uF Capacitor25V electrolytic1
RC Snubber Resistor100 ohm 1 watt (approx)1
RC Snubber Capacitor0.1uF 400V (approx)1
AC Load220V lamp or small appliance1

You'll also like:

  • over2Bvoltage2Bprotector3 Tested 220V High and Low Voltage Cut OFF Circuits Using IC LM324 and Transistors
  • arc suppression compressedPrevent Relay Arcing using RC Snubber Circuits
  • avr analyzer circuitAutomatic Voltage Regulator (AVR) Analyzer
  • overloadprotectorcircuitLathe Machine Over Load Protector Circuit

Filed Under: Voltage Control and Protection Tagged With: MOSFET, Relay, Single, Solid, SSR, State

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!

Previous Post: « Audio Source Selector Circuit
Next Post: Passive Power Factor Correction (PFC) Calculator »

Reader Interactions

Comments

Ghulam Mohio Din says:
January 10, 2026 at 7:41 pm

hi sir, sir can we use 12 volt 1 watt zenor instead of 15v zenor?

Reply
Swagatam says:
January 11, 2026 at 8:00 am

Hi Ghulam, yes 12V will also work…

Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (93)
  • Audio and Amplifier Projects (133)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (85)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets (27)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (95)
  • Lamps and Lights (159)
  • Meters and Testers (71)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Renewable Energy (12)
  • Security and Alarm (64)
  • Sensors and Detectors (106)
  • SMPS and Converters (34)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (49)
  • Voltage Control and Protection (42)
  • Water Controller (36)
  • Wireless Circuits (30)





Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap



People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin



Recent Comments

  • Swagatam on 9 Simple Solar Battery Charger Circuits
  • Gagana on 9 Simple Solar Battery Charger Circuits
  • Swagatam on Arduino 2-Step Programmable Timer Circuit
  • Swagatam on Simple Buck-Boost Converter Circuits Explained
  • Swagatam on IC IR2111 H-Bridge MOSFET, IGBT Driver IC: Full Datasheet, Circuit Diagram

© 2026 · Swagatam Innovations