Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use 1 Channel Relay 5V: Examples, Pinouts, and Specs

Image of 1 Channel Relay 5V
Cirkit Designer LogoDesign with 1 Channel Relay 5V in Cirkit Designer

Introduction

The 1 Channel Relay 5V is an electromechanical switch that allows a low voltage control signal (e.g., from a microcontroller) to control a higher voltage circuit. This relay is commonly used in automation, home appliances, and industrial control systems to isolate and control high-power devices such as lights, motors, and heaters. It operates at 5V DC, making it compatible with most microcontrollers, including Arduino and Raspberry Pi.

Explore Projects Built with 1 Channel Relay 5V

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered 4-Channel Relay Control with LED Indicators
Image of RELLAY BOARD TEST: A project utilizing 1 Channel Relay 5V in a practical application
This circuit consists of a 5V battery powering a 4-channel relay module, which controls four LEDs (red, yellow, green, and blue) through individual resistors. Each relay channel is activated by a corresponding SPST toggle switch, allowing manual control of the LEDs.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 Wi-Fi Controlled Relay Switch
Image of nyoba: A project utilizing 1 Channel Relay 5V in a practical application
This circuit uses an ESP32 microcontroller to control a 1-channel 5V relay. The ESP32 toggles the relay on and off every 5 seconds, allowing it to control an external device connected to the relay's output.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered IR Sensor Controlled Relay Module
Image of New: A project utilizing 1 Channel Relay 5V in a practical application
This circuit uses an IR sensor to control a 1 Channel 5V Relay Module, which is powered by a 9V battery. The IR sensor detects an object and sends a signal to the relay module to switch its state, enabling or disabling the connected load.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 Wi-Fi Controlled Dual Relay Module
Image of esp: A project utilizing 1 Channel Relay 5V in a practical application
This circuit features an ESP32 microcontroller connected to a two-channel 5V relay module. The ESP32 controls the relay channels via its GPIO pins D23 and D22, allowing it to switch external devices on and off. The relay module is powered by the 3.3V and GND pins of the ESP32.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 1 Channel Relay 5V

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of RELLAY BOARD TEST: A project utilizing 1 Channel Relay 5V in a practical application
Battery-Powered 4-Channel Relay Control with LED Indicators
This circuit consists of a 5V battery powering a 4-channel relay module, which controls four LEDs (red, yellow, green, and blue) through individual resistors. Each relay channel is activated by a corresponding SPST toggle switch, allowing manual control of the LEDs.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of nyoba: A project utilizing 1 Channel Relay 5V in a practical application
ESP32 Wi-Fi Controlled Relay Switch
This circuit uses an ESP32 microcontroller to control a 1-channel 5V relay. The ESP32 toggles the relay on and off every 5 seconds, allowing it to control an external device connected to the relay's output.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of New: A project utilizing 1 Channel Relay 5V in a practical application
Battery-Powered IR Sensor Controlled Relay Module
This circuit uses an IR sensor to control a 1 Channel 5V Relay Module, which is powered by a 9V battery. The IR sensor detects an object and sends a signal to the relay module to switch its state, enabling or disabling the connected load.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of esp: A project utilizing 1 Channel Relay 5V in a practical application
ESP32 Wi-Fi Controlled Dual Relay Module
This circuit features an ESP32 microcontroller connected to a two-channel 5V relay module. The ESP32 controls the relay channels via its GPIO pins D23 and D22, allowing it to switch external devices on and off. The relay module is powered by the 3.3V and GND pins of the ESP32.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Home automation (e.g., controlling lights or fans)
  • Industrial control systems
  • Motor control
  • Smart home projects
  • IoT (Internet of Things) applications

Technical Specifications

Below are the key technical details of the 1 Channel Relay 5V:

Parameter Value
Operating Voltage 5V DC
Trigger Voltage 3.3V to 5V DC
Maximum Load Voltage 250V AC / 30V DC
Maximum Load Current 10A
Relay Type SPDT (Single Pole Double Throw)
Isolation Optocoupler isolation
Dimensions ~50mm x 26mm x 18mm

Pin Configuration and Descriptions

The 1 Channel Relay module typically has 6 pins or terminals, as described below:

Input Pins (Control Side)

Pin Name Description
VCC Connect to 5V DC power supply
GND Connect to ground
IN Control signal input (3.3V or 5V logic level)

Output Terminals (Load Side)

Terminal Name Description
COM Common terminal for the load
NO Normally Open terminal (connected to COM when relay is activated)
NC Normally Closed terminal (connected to COM when relay is deactivated)

Usage Instructions

How to Use the 1 Channel Relay in a Circuit

  1. Power the Relay Module: Connect the VCC pin to a 5V DC power source and the GND pin to ground.
  2. Connect the Control Signal: Connect the IN pin to a digital output pin of your microcontroller (e.g., Arduino).
  3. Connect the Load:
    • Connect the device you want to control (e.g., a light bulb) to the COM and NO terminals if you want the device to turn on when the relay is activated.
    • Alternatively, connect the device to the COM and NC terminals if you want the device to turn off when the relay is activated.
  4. Write Control Code: Use your microcontroller to send a HIGH or LOW signal to the IN pin to activate or deactivate the relay.

Important Considerations

  • Isolation: The relay provides electrical isolation between the control side and the load side, ensuring safety when controlling high-voltage devices.
  • Flyback Diode: The relay module includes a flyback diode to protect the circuit from voltage spikes caused by the relay coil.
  • Power Supply: Ensure the power supply to the relay module is stable and sufficient to drive the relay coil.
  • Load Ratings: Do not exceed the maximum voltage and current ratings of the relay (250V AC / 30V DC, 10A).

Example Code for Arduino UNO

Below is an example of how to control the 1 Channel Relay using an Arduino UNO:

// Define the pin connected to the relay module
const int relayPin = 7; // Connect the IN pin of the relay to digital pin 7

void setup() {
  pinMode(relayPin, OUTPUT); // Set the relay pin as an output
  digitalWrite(relayPin, LOW); // Ensure the relay is off at startup
}

void loop() {
  // Turn the relay ON
  digitalWrite(relayPin, HIGH); // Send a HIGH signal to activate the relay
  delay(5000); // Keep the relay ON for 5 seconds

  // Turn the relay OFF
  digitalWrite(relayPin, LOW); // Send a LOW signal to deactivate the relay
  delay(5000); // Keep the relay OFF for 5 seconds
}

Best Practices

  • Use a separate power supply for the relay module if your microcontroller cannot provide sufficient current.
  • Avoid switching high-power loads frequently to extend the relay's lifespan.
  • Ensure proper insulation and safety precautions when working with high-voltage circuits.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Activating

    • Cause: Insufficient voltage or current to the relay module.
    • Solution: Verify that the VCC pin is receiving 5V and the IN pin is receiving a proper control signal (3.3V or 5V).
  2. Load Not Switching

    • Cause: Incorrect wiring of the load terminals (COM, NO, NC).
    • Solution: Double-check the wiring and ensure the load is connected to the correct terminals.
  3. Microcontroller Resets When Relay Activates

    • Cause: Voltage spikes or insufficient power supply.
    • Solution: Use a decoupling capacitor near the relay module or a separate power supply for the relay.
  4. Relay Stuck in One State

    • Cause: Relay contacts may be damaged or welded due to excessive current.
    • Solution: Replace the relay module and ensure the load does not exceed the relay's rated current.

FAQs

Q: Can I use the relay with a 3.3V microcontroller like ESP8266 or Raspberry Pi?
A: Yes, the relay can be triggered with a 3.3V control signal, but ensure the VCC pin is powered with 5V.

Q: Is the relay safe for switching AC appliances?
A: Yes, the relay is designed for AC loads up to 250V, but always follow proper safety precautions when working with high voltage.

Q: Can I control multiple relays with one microcontroller?
A: Yes, you can control multiple relays by connecting each relay's IN pin to a separate digital output pin on the microcontroller.

Q: What is the lifespan of the relay?
A: The relay typically has a mechanical lifespan of over 100,000 operations, depending on the load and usage conditions.