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

How to Use relay 8 pin: Examples, Pinouts, and Specs

Image of relay 8 pin
Cirkit Designer LogoDesign with relay 8 pin in Cirkit Designer

Introduction

A relay is an electromechanical switch that allows a low voltage signal to control a high voltage or high current circuit. The 8-pin relay is a versatile component commonly used in automation, home appliances, automotive systems, and industrial control applications. It operates by energizing a coil to open or close its internal contacts, enabling the control of devices such as motors, lights, and heaters.

Explore Projects Built with relay 8 pin

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Powered Wi-Fi Controlled 8-Channel Relay Module
Image of Olimex ESP32-POE2 8Ch Switch and Sensors: A project utilizing relay 8 pin in a practical application
This circuit features an ESP32 microcontroller connected to an 8-channel relay module. The ESP32 controls the relay channels via its GPIO pins, allowing it to switch multiple external devices on and off. The ESP32 also provides power to the relay module.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Powered 8-Channel Relay Controller with Wi-Fi Connectivity
Image of Olimex ESP32-POE2 4Ch X 2 Switches: A project utilizing relay 8 pin in a practical application
This circuit features an ESP32 microcontroller connected to an 8-channel relay module. The ESP32 controls the relay channels via its GPIO pins, allowing for the switching of external devices or loads through the relays.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wi-Fi Controlled Smart Relay Switch with ESP8266 and MCP23017
Image of Bed Room: A project utilizing relay 8 pin in a practical application
This circuit is designed to control an 8-channel relay module via an ESP8266 microcontroller, which interfaces with an MCP23017 I/O expander over I2C. The ESP8266 connects to a WiFi network and subscribes to MQTT topics to receive commands for toggling the relays. Additionally, there are toggle switches connected to the MCP23017 that allow manual control of the relays, with the system's state being reported back via MQTT.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled 4-Channel Relay Module
Image of wifi esp32: A project utilizing relay 8 pin in a practical application
This circuit connects an ESP32 microcontroller to a 4-channel 5V relay module. The ESP32's digital pins (D19, D21, D22, D23) are used to control the relay channels (IN1, IN2, IN3, IN4) respectively. The circuit is designed to allow the ESP32 to switch external devices on and off via the relay module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with relay 8 pin

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 Olimex ESP32-POE2 8Ch Switch and Sensors: A project utilizing relay 8 pin in a practical application
ESP32-Powered Wi-Fi Controlled 8-Channel Relay Module
This circuit features an ESP32 microcontroller connected to an 8-channel relay module. The ESP32 controls the relay channels via its GPIO pins, allowing it to switch multiple external devices on and off. The ESP32 also provides power to the relay module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Olimex ESP32-POE2 4Ch X 2 Switches: A project utilizing relay 8 pin in a practical application
ESP32-Powered 8-Channel Relay Controller with Wi-Fi Connectivity
This circuit features an ESP32 microcontroller connected to an 8-channel relay module. The ESP32 controls the relay channels via its GPIO pins, allowing for the switching of external devices or loads through the relays.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Bed Room: A project utilizing relay 8 pin in a practical application
Wi-Fi Controlled Smart Relay Switch with ESP8266 and MCP23017
This circuit is designed to control an 8-channel relay module via an ESP8266 microcontroller, which interfaces with an MCP23017 I/O expander over I2C. The ESP8266 connects to a WiFi network and subscribes to MQTT topics to receive commands for toggling the relays. Additionally, there are toggle switches connected to the MCP23017 that allow manual control of the relays, with the system's state being reported back via MQTT.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of wifi esp32: A project utilizing relay 8 pin in a practical application
ESP32-Controlled 4-Channel Relay Module
This circuit connects an ESP32 microcontroller to a 4-channel 5V relay module. The ESP32's digital pins (D19, D21, D22, D23) are used to control the relay channels (IN1, IN2, IN3, IN4) respectively. The circuit is designed to allow the ESP32 to switch external devices on and off via the relay module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • Home automation systems
  • Motor control circuits
  • Switching high-power devices with microcontrollers
  • Automotive electronics (e.g., controlling headlights or horns)
  • Industrial machinery and process control

Technical Specifications

Below are the key technical details for a standard 8-pin relay:

Parameter Value
Coil Voltage 5V, 12V, or 24V (depending on model)
Contact Configuration SPDT (Single Pole Double Throw) or DPDT (Double Pole Double Throw)
Contact Rating 10A at 250VAC or 30VDC
Coil Resistance Varies by model (e.g., 70Ω for 5V relay)
Switching Time 5ms to 15ms
Dielectric Strength 1000VAC between coil and contacts
Operating Temperature -40°C to 85°C
Dimensions Varies (e.g., 28mm x 12mm x 15mm)

Pin Configuration and Descriptions

The 8-pin relay typically has the following pinout:

Pin Number Name Description
1 Coil (+) Positive terminal of the relay coil. Connect to the control voltage.
2 Coil (-) Negative terminal of the relay coil. Connect to ground.
3 Common (COM1) Common terminal for the first set of contacts.
4 Normally Open (NO1) Contact that remains open until the relay is energized.
5 Normally Closed (NC1) Contact that remains closed until the relay is energized.
6 Common (COM2) Common terminal for the second set of contacts (for DPDT relays).
7 Normally Open (NO2) Contact that remains open until the relay is energized (for DPDT relays).
8 Normally Closed (NC2) Contact that remains closed until the relay is energized (for DPDT relays).

Note: For SPDT relays, only pins 3, 4, and 5 are used for the contacts.

Usage Instructions

How to Use the Relay in a Circuit

  1. Power the Coil:

    • Connect the coil pins (1 and 2) to the control voltage source. Ensure the voltage matches the relay's rated coil voltage (e.g., 5V, 12V, or 24V).
    • Use a transistor or MOSFET to drive the relay if the control signal comes from a microcontroller like an Arduino.
  2. Connect the Load:

    • Identify the common (COM), normally open (NO), and normally closed (NC) pins.
    • Connect the load (e.g., motor, light) to the NO and COM pins if you want the load to turn on when the relay is energized.
    • Use the NC and COM pins if you want the load to turn off when the relay is energized.
  3. Add a Flyback Diode:

    • Place a diode (e.g., 1N4007) across the coil terminals to protect the circuit from voltage spikes caused by the relay's inductive load.
  4. Test the Circuit:

    • Apply the control voltage to the coil and verify that the relay switches the load as expected.

Example: Connecting an 8-Pin Relay to an Arduino UNO

Below is an example of how to control a relay with an Arduino UNO:

Circuit Connections:

  • Relay Coil (+): Connect to a digital pin on the Arduino (via a transistor for current amplification).
  • Relay Coil (-): Connect to GND.
  • Load: Connect to the NO and COM pins of the relay.
  • Flyback Diode: Place across the relay coil terminals.

Arduino Code:

// Define the relay control pin
const int relayPin = 7;

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

void loop() {
  digitalWrite(relayPin, HIGH); // Turn the relay on
  delay(1000); // Keep it on for 1 second
  digitalWrite(relayPin, LOW); // Turn the relay off
  delay(1000); // Keep it off for 1 second
}

Important Notes:

  • Always check the relay's voltage and current ratings before connecting a load.
  • Use an external power supply for the relay if the Arduino cannot provide sufficient current.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Switching:

    • Cause: Insufficient voltage or current to the coil.
    • Solution: Verify the control voltage matches the relay's rated coil voltage. Use a transistor or MOSFET to amplify the control signal if necessary.
  2. Load Not Turning On/Off:

    • Cause: Incorrect wiring of the load to the relay contacts.
    • Solution: Double-check the connections to the COM, NO, and NC pins.
  3. Arduino Resets When Relay Activates:

    • Cause: Voltage spikes from the relay coil affecting the Arduino.
    • Solution: Add a flyback diode across the relay coil terminals.
  4. Relay Buzzing or Chattering:

    • Cause: Insufficient or unstable control voltage.
    • Solution: Ensure a stable power supply and check for loose connections.

FAQs

Q: Can I use the relay to switch AC loads?
A: Yes, the relay can switch AC loads, but ensure the load's voltage and current are within the relay's contact rating.

Q: Do I need a separate power supply for the relay?
A: It depends on the relay's coil voltage and the current requirements. If the microcontroller cannot provide sufficient current, use an external power supply.

Q: What is the purpose of the flyback diode?
A: The flyback diode protects the circuit from voltage spikes generated when the relay coil is de-energized.

Q: Can I use the relay with a Raspberry Pi?
A: Yes, but since the Raspberry Pi's GPIO pins cannot supply enough current, you must use a transistor or relay driver circuit.

By following this documentation, you can effectively integrate an 8-pin relay into your projects and troubleshoot common issues.