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

How to Use relay: Examples, Pinouts, and Specs

Image of relayDesign with relay in Cirkit Designer

Introduction

A relay is an electromechanical switch that uses an electromagnetic coil to open or close a circuit. It allows a low-power signal to control high-power devices, making it an essential component in automation, home appliances, and industrial systems. Relays are commonly used for isolating control circuits from high-power loads, enabling safe and efficient operation.

Explore Projects Built with relay

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 RF-Controlled Relay Switch with Indicator LEDs and Buzzer: A project utilizing relay in a practical application
RF-Controlled Relay Switch with Indicator LEDs and Buzzer

This circuit features an RF receiver that controls a 12V relay, which in turn switches between two circuits: one with a green LED and another with a red LED and a buzzer, both protected by resistors. A rocker switch is used to supply power from a 9V battery to the RF receiver and the relay's coil. The relay's normally closed (NC) contact is connected to the green LED, while the normally open (NO) contact is connected to the red LED and the buzzer, indicating that the relay's state determines which of the two circuits is active.

Open Project in Cirkit Designer

Common Applications

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Below is the pin configuration for a standard 5V SPDT relay:

Pin Name Description
Coil+ Positive terminal of the electromagnetic coil (connect to control voltage)
Coil- Negative terminal of the electromagnetic coil (connect to ground)
COM Common terminal for the load circuit
NO Normally Open terminal (disconnected from COM when the relay is inactive)
NC Normally Closed terminal (connected to COM when the relay is inactive)

Usage Instructions

How to Use a Relay in a Circuit

  1. Connect the Coil Terminals:

    • Connect the Coil+ pin to the control signal (e.g., 5V from a microcontroller or power supply).
    • Connect the Coil- pin to ground.
  2. Connect the Load Circuit:

    • Identify whether you want the load to be normally open (NO) or normally closed (NC).
    • Connect one side of the load to the COM pin.
    • Connect the other side of the load to either the NO or NC pin, depending on your desired behavior.
  3. Power the Relay:

    • Ensure the control voltage matches the relay's coil voltage rating (e.g., 5V for a 5V relay).
    • When the control signal is applied, the relay will activate, switching the load circuit.

Important Considerations

Example: Using a Relay with Arduino UNO

Below is an example of how to control a 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() {
  digitalWrite(relayPin, HIGH); // Activate the relay
  delay(1000); // Keep the relay on for 1 second
  digitalWrite(relayPin, LOW); // Deactivate the relay
  delay(1000); // Keep the relay off for 1 second
}

Note: Connect the relay's Coil- terminal to the Arduino's GND. Use a transistor or relay module if the Arduino cannot directly drive the relay.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Activating:

    • Cause: Insufficient control voltage or current.
    • Solution: Verify the control voltage matches the relay's coil voltage rating. Use a transistor driver if necessary.
  2. Load Not Switching:

    • Cause: Incorrect wiring of the load circuit.
    • Solution: Double-check the connections to the COM, NO, and NC pins.
  3. Relay Buzzing or Chattering:

    • Cause: Unstable control signal or insufficient power supply.
    • Solution: Ensure a stable control voltage and adequate power supply. Add a capacitor across the power supply if needed.
  4. Damage to Microcontroller:

    • Cause: Voltage spikes from the relay coil.
    • Solution: Always use a flyback diode across the coil terminals.

FAQs

By following this documentation, you can effectively integrate a relay into your electronic projects for safe and reliable control of high-power devices.