Skip to content

DIY 5V Single Channel Relay Module

[Sekhohub.online]

Here’s a complete guide to building a DIY 5V Single Channel Relay Module—perfect for controlling AC or DC loads using microcontrollers like Arduino, ESP32, or Raspberry Pi.

DIY 5V Single Channel Relay Module


DIY 5V Single Channel Relay Module

✅What It Does:

Allows low-power devices (like Arduino) to switch ON/OFF high-power loads, such as:

  • Bulbs

  • Fans ️

  • Pumps

  • Appliances⁣ ⚙️

Materials for the Project.

  1. 1X BC547 TRANSISTOR
  2. 2X LEDs
  3. 2X 100 OHM RESISTORS
  4. 1X 1K RESISTOR
  5.  1X 5V RELAY
  6. 1X 2 PIN MALE HEADER
  7. 1X 3-PIN TERMINAL BLOCK
  8.  PERF BOARD
  9. JUMPER WIRES

 

  • A 1N4007 diode across the relay coil (cathode to +5V)—prevents damage from back EMF.

  • An LED and a 220Ω resistor in series to ground from the transistor base for indication.

  • How It Works:

    1. The microcontroller sends a HIGH signal (5V) to the transistor base via a resistor.

    2. The transistor turns ON, allowing current to flow through the relay coil.

    3. The relay activates, connecting COM and NO (normally open)—turning the connected load ON.

    4. Removing the signal turns the relay OFF, disconnecting the load.


Control with Arduino Example

int relayPin = 7;

void setup() {
pinMode(relayPin, OUTPUT);
}

void loop() {
digitalWrite(relayPin, HIGH); // Turns relay ON
delay(1000);
digitalWrite(relayPin, LOW); // Turns relay OFF
delay(1000);
}


⚠️ Safety Tips

  • NEVER touch relay contacts when connected to AC mains.

  • Use an optocoupler for safer isolation (optional).

  • Use heat shrink tubing or a relay module case if permanent.

 


Video Tutorial


 

 


Download Circuit Diagram

https://drive.google.com/file/d/10S40Z7OwqjKafJgx_KqFtlj1Hr24PpYo/view?usp=sharing



Leave a Reply

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