

Relay driver
Relay driver PCB designed in KiCad for controlling AC/DC loads using a transistor-based switching circuit with flyback diode protection.
- Size
- 78.5 × 28.5 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 12
- Nets
- 13
- Pads
- 31
- Tracks, vias
- 42, 0
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 19 Jul 2026
- Updated
- 19 Jul 2026
Overview
Relay driver is an open-source printed circuit board by rutuja543, from the rutuja543/Relay-Driver-PCB repository on GitHub. It is a 2-layer board of 78.5 × 28.5 mm with 12 parts on 13 nets, routed with 42 tracks and 0 vias.
It is built around the S8550. Its parts include 5 resistors, 3 connectors, 2 transistors, 1 IC and 1 switch. It belongs with the home automation and IoT boards of this library.
Main components
1README
README.md🔌 Relay Driver PCB
A relay driver circuit designed using KiCad to safely control AC/DC loads from low-power microcontrollers such as Arduino, ESP32, and STM32. The design uses an NPN transistor as a switching device and includes a flyback diode to protect the transistor from relay back EMF.
📌 Project Overview
This project demonstrates the design of a relay driver PCB that enables microcontrollers to switch high-current electrical loads safely. The PCB is compact, easy to assemble, and suitable for automation and embedded system applications.
🎯 Objectives
- Design a reliable relay driver PCB
- Interface low-voltage controllers with high-power loads
- Protect switching transistor using a flyback diode
- Learn PCB schematic and layout design using KiCad
⚙️ Features
- NPN transistor based relay driver
- Flyback diode protection
- LED status indicator
- Screw terminal connectors
- Compact single-layer PCB
- Easy Arduino and ESP32 interfacing
- Noise-resistant routing
🛠 Software Used
- KiCad 8
- Arduino IDE (for testing)
🔩 Hardware Components
- Relay Module (5V/12V)
- BC547 / 2N2222 NPN Transistor
- 1N4007 Flyback Diode
- Base Resistor
- LED
- Current Limiting Resistor
- Screw Terminal Connectors
- Power Supply Connector
🔄 Working Principle
- The microcontroller sends a HIGH signal.
- The transistor turns ON.
- Current flows through the relay coil.
- The relay energizes and switches the external load.
- The flyback diode suppresses reverse voltage generated by the relay coil during switching.
📂 Repository Structure
Relay-Driver-PCB
│
├── README.md
├── Relay_Driver.kicad_sch
├── Relay_Driver.kicad_pcb
├── Images/
│ ├── Schematic.png
│ └── PCB_Layout.png
└── Gerber/📷 Project Images
Circuit Schematic
(Add screenshot here)
PCB Layout
(Add screenshot here)
3D PCB View
(Add screenshot here)
🚀 Applications
- Home Automation
- Industrial Automation
- IoT Projects
- Smart Switches
- Embedded Systems
- Motor Control
- Appliance Control
📚 Skills Demonstrated
- PCB Design
- Schematic Design
- Electronic Circuit Design
- KiCad
- Embedded Hardware Design
- Power Electronics Basics
📈 Future Improvements
- Optocoupler Isolation
- Multiple Relay Channels
- Fuse Protection
- Terminal Labeling
- PCB Silkscreen Improvements
Parts
12| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 1k | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal | R1, R2, R3 |
| 2 | 100k | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal | R4, R5 |
| 1 | 2N7000 | Package_TO_SOT_THT:TO-92_Inline | Q2 |
| 1 | PC817 | Package_DIP:DIP-4_W7.62mm | U1 |
| 1 | Relay_SPDT | Relay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_C | K1 |
| 1 | S8550 | Package_TO_SOT_THT:TO-92_Inline | Q1 |
| 1 | Screw_Terminal_01x01 | TerminalBlock_MetzConnect:TerminalBlock_MetzConnect_360271_1x01_Horizontal_ScrewM3.0_Boxed | J2 |
| 1 | Screw_Terminal_01x02 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J1 |
| 1 | Screw_Terminal_01x03 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_Horizontal | J3 |
Similar boards
- 2 layers128 × 77 mm

- 2 layers

IEC-62056-21-Optical Probe
twam/IEC-62056-21-Optical-Probe
Optical-Probe for reading out power meters supporting IEC 62056-21 via USB
38 parts33 - 2 layers60 × 40 mm

Forcegauge
szbeni/forcegauge
Traning for climbing. Load cell with HX711 and real time plotting,
77 parts18GPL-3.0 - 2 layers60 × 40 mm

Touch n drink
zargony/touch-n-drink
Hardware and firmware for cashless payment device for cold drinks at the aeroclub at EDLH
13 parts14EUPL-1.2 - 2 layers71.1 × 50.8 mm

Power supply and amplifier
roybaer/sound_source
Design documents for Disney Sound Source (DSS) compatible hardware
34 parts9 - 2 layers121 × 75.5 mm

Jlctest
cjheath/jlcbasic
JLC Basic parts library for Kicad fetched and converted from EasyEDA
46 parts5 - 2 layers81.2 × 40 mm

Single scale v3 kicad
IoTReady/esp32-wifi-ble-weighing-scale
This is a weighing scale designed to share data over Wi-Fi using esp32 WROOM32 module. For the weighing scale we are using a load cell and measuring the output using a HX711 24-bit ADC designed for weigh scales and…
59 parts5 - 2 layers54.6 × 34.9 mm

Doc
potato1992/PCSwitchPi
Control PC power buttons (power/reset/force power down) using a raspberry pi through Web interface
15 parts5Apache-2.0
Questions
How big is the Relay driver PCB?
It measures 78.5 × 28.5 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Relay driver use?
12 parts, built around the S8550. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Relay driver KiCad files?
From the rutuja543/Relay-Driver-PCB repository on GitHub, at the commit this page was made from: the board is Relay_driver.kicad_pcb and its schematic Relay_driver.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Relay driver design in my own project?
Its repository states no licence, so its author keeps all rights: ask rutuja543 before reusing the design.