Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

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

Image of relay 8 pinDesign 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 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!
Image of Wi-Fi Controlled Smart Relay Switch with ESP8266 and MCP23017: 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.

Open Project in Cirkit Designer
Image of ESP32-Controlled 4-Channel Relay Module: 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.

Open Project in Cirkit Designer

Common Applications and Use Cases

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)
Coil Resistance Typically 70Ω to 400Ω
Contact Configuration SPDT (Single Pole Double Throw) or DPDT (Double Pole Double Throw)
Contact Rating 10A at 250VAC or 10A at 30VDC
Switching Voltage (Max) 250VAC / 30VDC
Switching Current (Max) 10A
Insulation Resistance ≥ 100MΩ at 500VDC
Dielectric Strength 1500VAC between coil and contacts
Operating Temperature -40°C to +85°C
Dimensions Varies by model (e.g., 28mm x 12mm x 15mm)

Pin Configuration and Descriptions

The 8-pin relay typically has the following pin configuration:

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) Normally open contact for the first set of contacts. Closed when the relay is energized.
5 Normally Closed (NC1) Normally closed contact for the first set of contacts. Open when the relay is energized.
6 Common (COM2) Common terminal for the second set of contacts (if DPDT).
7 Normally Open (NO2) Normally open contact for the second set of contacts (if DPDT).
8 Normally Closed (NC2) Normally closed contact for the second set of contacts (if DPDT).

Usage Instructions

How to Use the Component 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).
  2. Connect the Load:
    • For SPDT relays, connect the load to the common (COM1) and either the normally open (NO1) or normally closed (NC1) contact, depending on the desired behavior.
    • For DPDT relays, repeat the process for the second set of contacts (COM2, NO2, NC2).
  3. Control the Relay: Apply the control voltage to the coil to energize the relay. This will switch the contacts, allowing the load to be powered or disconnected.

Important Considerations and Best Practices

Example: Using an 8-Pin Relay with Arduino UNO

Below is an example of how to control an 8-pin relay using an Arduino UNO:

// Define the relay control pin
const int relayPin = 7; // Connect this pin to the relay's coil (+) terminal

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

void loop() {
  // Turn the relay on
  digitalWrite(relayPin, HIGH); 
  delay(5000); // Keep the relay on for 5 seconds

  // Turn the relay off
  digitalWrite(relayPin, LOW); 
  delay(5000); // Keep the relay off for 5 seconds
}

Note: Use a transistor (e.g., 2N2222) to drive the relay if the Arduino cannot supply sufficient current to the coil.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Switching:

    • Cause: Insufficient coil voltage or current.
    • Solution: Verify the control voltage matches the relay's rated coil voltage. Check the power supply and connections.
  2. Contacts Sticking:

    • Cause: Exceeding the relay's contact current rating.
    • Solution: Ensure the load current does not exceed the relay's maximum contact rating.
  3. Voltage Spikes Damaging Circuit:

    • Cause: Inductive kickback from the relay coil.
    • Solution: Install a flyback diode across the coil terminals.
  4. Microcontroller Resetting When Relay Activates:

    • Cause: Voltage drop due to high current draw.
    • Solution: Use a separate power supply for the relay or add a capacitor to stabilize the voltage.

FAQs

This concludes the documentation for the 8-pin relay.