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

How to Use RELAY: Examples, Pinouts, and Specs

Image of RELAY
Cirkit Designer LogoDesign with RELAY in Cirkit Designer

Introduction

A relay is an electromechanical switch that uses an electromagnet to open or close a circuit, allowing control of a high-power circuit with a low-power signal. Manufactured by SparkFun Electronics, the COM-00101 relay is a versatile and reliable component widely used in various applications.

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!
WeMos D1 R2 Controlled Relay Switching Circuit for AC Bulb and USB Charger
Image of Hand Gesture Light: A project utilizing RELAY in a practical application
This circuit uses a WeMos D1 R2 microcontroller to control a 5V 2-relay module, which in turn controls the power to an AC bulb and a cellphone charger. The microcontroller also interfaces with a line tracking sensor, which likely provides input to control the relay states. The AC bulb and cellphone charger are powered by an AC wire connection, with the relay acting as a switch for the bulb.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered IR Sensor Controlled Relay Module
Image of New: A project utilizing RELAY 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-Controlled DC Motor with Dual Relay System
Image of LED Show v2: A project utilizing RELAY in a practical application
This circuit controls a DC motor using two 12V relays, which are powered by a 12V supply through a barrel jack. The relays are configured to switch the motor's connections, allowing for control over its operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and SIM900A Based Smart Home Automation with GSM and I2C LCD Display
Image of p2: A project utilizing RELAY in a practical application
This circuit is a remote-controlled relay system using an Arduino UNO, a SIM900A GSM module, and a 5V relay to control a bulb. The Arduino communicates with the GSM module to receive commands, which are then used to toggle the relay, thereby controlling the bulb. Additionally, a 16x2 I2C LCD is used for displaying status information.
Cirkit Designer LogoOpen Project in Cirkit Designer

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 Hand Gesture Light: A project utilizing RELAY in a practical application
WeMos D1 R2 Controlled Relay Switching Circuit for AC Bulb and USB Charger
This circuit uses a WeMos D1 R2 microcontroller to control a 5V 2-relay module, which in turn controls the power to an AC bulb and a cellphone charger. The microcontroller also interfaces with a line tracking sensor, which likely provides input to control the relay states. The AC bulb and cellphone charger are powered by an AC wire connection, with the relay acting as a switch for the bulb.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of New: A project utilizing RELAY 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 LED Show v2: A project utilizing RELAY in a practical application
ESP32-Controlled DC Motor with Dual Relay System
This circuit controls a DC motor using two 12V relays, which are powered by a 12V supply through a barrel jack. The relays are configured to switch the motor's connections, allowing for control over its operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of p2: A project utilizing RELAY in a practical application
Arduino UNO and SIM900A Based Smart Home Automation with GSM and I2C LCD Display
This circuit is a remote-controlled relay system using an Arduino UNO, a SIM900A GSM module, and a 5V relay to control a bulb. The Arduino communicates with the GSM module to receive commands, which are then used to toggle the relay, thereby controlling the bulb. Additionally, a 16x2 I2C LCD is used for displaying status information.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Home Automation: Controlling lights, fans, and other appliances.
  • Industrial Automation: Switching high-power motors and machinery.
  • Automotive Systems: Managing headlights, horns, and other electrical systems.
  • Microcontroller Projects: Interfacing with Arduino, Raspberry Pi, or other microcontrollers to control high-power devices.
  • Safety Systems: Emergency shutdowns and circuit isolation.

Technical Specifications

The SparkFun COM-00101 relay is designed for robust performance in a variety of applications. Below are its key technical details:

General Specifications

Parameter Value
Manufacturer SparkFun Electronics
Part ID COM-00101
Type Electromechanical Relay
Operating Voltage 5V DC
Switching Voltage Up to 250V AC / 30V DC
Switching Current Up to 10A
Coil Resistance 70Ω
Contact Configuration SPDT (Single Pole Double Throw)
Dimensions 19mm x 15mm x 15mm
Weight 10g

Pin Configuration and Descriptions

The relay has five pins, as described in the table below:

Pin Number Name Description
1 Coil (+) Positive terminal of the relay coil. Connect to the control signal (5V DC).
2 Coil (-) Negative terminal of the relay coil. Connect to ground (GND).
3 Common (COM) Common terminal for the relay switch.
4 Normally Open (NO) Open when the relay is inactive; closes when the relay is activated.
5 Normally Closed (NC) Closed when the relay is inactive; opens when the relay is activated.

Usage Instructions

How to Use the Relay in a Circuit

  1. Power the Relay Coil: Connect the coil pins (1 and 2) to a 5V DC power source. Use a transistor or MOSFET to control the coil with a microcontroller.
  2. Connect the Load:
    • Connect the high-power device (load) to the Common (COM) pin (Pin 3).
    • Use the Normally Open (NO) pin (Pin 4) if you want the load to turn on when the relay is activated.
    • Use the Normally Closed (NC) pin (Pin 5) if you want the load to turn off when the relay is activated.
  3. Control the Relay: Use a microcontroller or external circuit to send a control signal to the relay coil. When the coil is energized, the relay switches its contacts.

Important Considerations and Best Practices

  • Diode Protection: Always connect a flyback diode (e.g., 1N4007) across the relay coil to protect the circuit from voltage spikes when the coil is de-energized.
  • Isolation: Use an optocoupler or transistor to isolate the control circuit from the high-power circuit.
  • Power Ratings: Ensure the relay's voltage and current ratings match the requirements of your load.
  • Heat Dissipation: Avoid exceeding the relay's maximum current rating to prevent overheating.

Example: Using the Relay with an Arduino UNO

Below is an example of how to control the COM-00101 relay with an Arduino UNO:

// 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
}

Note: Use a transistor or relay driver module to interface the Arduino with the relay, as the Arduino's GPIO pins cannot directly supply enough current to drive the relay coil.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Switching:

    • Cause: Insufficient voltage or current to the relay coil.
    • Solution: Verify the control signal is 5V DC and capable of supplying enough current (at least 70mA).
  2. Load Not Turning On/Off:

    • Cause: Incorrect wiring of the load to the relay pins.
    • Solution: Double-check the connections to the COM, NO, and NC pins.
  3. Microcontroller Resetting:

    • Cause: Voltage spikes from the relay coil affecting the microcontroller.
    • Solution: Add a flyback diode across the relay coil and ensure proper grounding.
  4. Relay Overheating:

    • Cause: Exceeding the relay's current rating.
    • Solution: Use a relay with a higher current rating or reduce the load current.

FAQs

Q1: Can I use the COM-00101 relay with a 3.3V microcontroller?
A1: Yes, but you will need a transistor or relay driver circuit to step up the control signal to 5V.

Q2: What is the lifespan of the COM-00101 relay?
A2: The relay is rated for approximately 100,000 mechanical operations under normal conditions.

Q3: Can the relay switch both AC and DC loads?
A3: Yes, the relay can switch up to 250V AC or 30V DC, as long as the current does not exceed 10A.

Q4: Is the relay suitable for PWM control?
A4: No, relays are not designed for high-speed switching. Use a solid-state relay or MOSFET for PWM applications.