Skip to the content
2 layers78.5 × 28.5 mmRelay driver, the printed circuit board in 3D

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

1

README

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

  1. The microcontroller sends a HIGH signal.
  2. The transistor turns ON.
  3. Current flows through the relay coil.
  4. The relay energizes and switches the external load.
  5. The flyback diode suppresses reverse voltage generated by the relay coil during switching.

📂 Repository Structure

text
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
QtyValueFootprintReferences
31kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_HorizontalR1, R2, R3
2100kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_HorizontalR4, R5
12N7000Package_TO_SOT_THT:TO-92_InlineQ2
1PC817Package_DIP:DIP-4_W7.62mmU1
1Relay_SPDTRelay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_CK1
1S8550Package_TO_SOT_THT:TO-92_InlineQ1
1Screw_Terminal_01x01TerminalBlock_MetzConnect:TerminalBlock_MetzConnect_360271_1x01_Horizontal_ScrewM3.0_BoxedJ2
1Screw_Terminal_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ1
1Screw_Terminal_01x03TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_HorizontalJ3

Similar boards

  • 2 layers128 × 77 mmScale, the printed circuit board in 3D

    Scale

    Jana-Marie/lab-balance

    https://twitter.com/_Jana_Marie/status/1270040286710968321

    59 parts34
  • 2 layersIEC-62056-21-Optical Probe, the printed circuit board in 3D

    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 mmForcegauge, the printed circuit board in 3D

    Forcegauge

    szbeni/forcegauge

    Traning for climbing. Load cell with HX711 and real time plotting,

    77 parts18GPL-3.0
  • 2 layers60 × 40 mmTouch n drink, the printed circuit board in 3D

    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 mmPower supply and amplifier, the printed circuit board in 3D

    Power supply and amplifier

    roybaer/sound_source

    Design documents for Disney Sound Source (DSS) compatible hardware

    34 parts9
  • 2 layers121 × 75.5 mmJlctest, the printed circuit board in 3D

    Jlctest

    cjheath/jlcbasic

    JLC Basic parts library for Kicad fetched and converted from EasyEDA

    46 parts5
  • 2 layers81.2 × 40 mmSingle scale v3 kicad, the printed circuit board in 3D

    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 mmDoc, the printed circuit board in 3D

    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.