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

How to Use 12v 4 pin socket relay: Examples, Pinouts, and Specs

Image of 12v 4 pin socket relayDesign with 12v 4 pin socket relay in Cirkit Designer

Introduction

The 12V 4-pin socket relay is an electromechanical switch that allows a low-power control signal to operate high-power devices. It is widely used in applications where electrical isolation and high-current switching are required. This relay operates at a 12V DC input and features a 4-pin configuration, making it simple to integrate into various circuits.

Explore Projects Built with 12v 4 pin socket 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 ESP32-Controlled AC Lighting System with Current Sensing: A project utilizing 12v 4 pin socket relay in a practical application
ESP32-Controlled AC Lighting System with Current Sensing

This circuit features an ESP32 microcontroller connected to a 4-channel relay module, which is used to control the power to three AC LED bulbs. The ESP32's GPIO pins are wired to the relay inputs, enabling it to switch the bulbs on and off. Additionally, a current sensor is connected to one of the relay's common terminals to monitor the current flow, and all LED bulbs share a common neutral connection to a socket.

Open Project in Cirkit Designer
Image of ESP32-Controlled AC Lighting System with Power Monitoring: A project utilizing 12v 4 pin socket relay in a practical application
ESP32-Controlled AC Lighting System with Power Monitoring

This circuit features an ESP32 microcontroller interfaced with a PZEM004T power monitoring module and a 4-channel relay module controlling multiple AC LED bulbs. The ESP32 uses GPIO pins to control the relays, which in turn switch the LED bulbs on and off. The PZEM004T is connected to the ESP32 for communication and to a current sensor for monitoring power consumption of the connected load through the relay contacts.

Open Project in Cirkit Designer
Image of ESP32-Controlled Smart Relay for Heater and Bulb Automation: A project utilizing 12v 4 pin socket relay in a practical application
ESP32-Controlled Smart Relay for Heater and Bulb Automation

This circuit is designed to control a heater and a bulb using an ESP32 microcontroller, which interfaces with a 4-channel relay module. The ESP32 can independently switch the heater and bulb on or off by sending signals to the relay module's input channels. The power supply provides the necessary 12V to the relay module, and the plug connects the power supply to the AC mains.

Open Project in Cirkit Designer

Common Applications

Technical Specifications

Below are the key technical details of the 12V 4-pin socket relay:

Parameter Value
Operating Voltage 12V DC
Coil Resistance ~320 Ohms
Switching Voltage Up to 250V AC / 30V DC
Switching Current Up to 10A
Contact Type SPST (Single Pole Single Throw)
Isolation Electrical isolation between control and load sides
Dimensions Varies by manufacturer, typically compact

Pin Configuration

The 4-pin configuration of the relay is as follows:

Pin Number Name Description
1 Coil (+) Positive terminal of the relay coil (connect to 12V DC control signal).
2 Coil (-) Negative terminal of the relay coil (connect to ground).
3 Common (COM) Common terminal for the load circuit.
4 Normally Open (NO) Load terminal that connects to COM when the relay is activated.

Usage Instructions

How to Use the 12V 4-Pin Socket Relay in a Circuit

  1. Power the Relay Coil: Connect the coil pins (1 and 2) to a 12V DC power source. Pin 1 should be connected to the positive terminal, and Pin 2 to ground.
  2. Connect the Load:
    • Attach the load's power source to the COM pin (Pin 3).
    • Connect the load device (e.g., motor, light) to the NO pin (Pin 4).
  3. Control the Relay: Use a low-power control signal (e.g., from a microcontroller or switch) to energize the relay coil. When the coil is energized, the NO pin connects to the COM pin, completing the circuit and powering the load.

Important Considerations

Example: Connecting to an Arduino UNO

Below is an example of how to control the relay using an Arduino UNO:

Circuit Connections

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 at startup
}

void loop() {
  digitalWrite(relayPin, HIGH); // Activate the relay
  delay(5000); // Keep the relay on for 5 seconds
  digitalWrite(relayPin, LOW); // Deactivate the relay
  delay(5000); // Keep the relay off for 5 seconds
}

Best Practices

Troubleshooting and FAQs

Common Issues

  1. Relay Not Activating

    • Cause: Insufficient voltage or current to the relay coil.
    • Solution: Verify that the control signal provides 12V DC and sufficient current (typically ~37.5mA).
  2. Load Not Powering On

    • Cause: Incorrect wiring of the load circuit.
    • Solution: Ensure the load is connected to the COM and NO pins, and the relay is activated.
  3. Relay Buzzing Noise

    • Cause: Unstable or insufficient power supply to the relay coil.
    • Solution: Use a stable 12V DC power source and check for loose connections.
  4. Burnt Relay Contacts

    • Cause: Exceeding the relay's maximum current rating.
    • Solution: Ensure the load's current is within the relay's 10A limit.

FAQs

This concludes the documentation for the 12V 4-pin socket relay.