Stufin
Home Quick Cart Profile

1-CH 12V Relay Board

Buy Now on Stufin

Operating Voltage

12V DC

Control Signal

0-5V digital signal

Relay Type

SPDT (Single Pole Double Throw)

Maximum Switching Capacity

10A/250V AC or 10A/30V DC

Isolation Voltage

2500V AC

Operating Frequency

50/60Hz

Operating Temperature

-40C to 85C

Storage Temperature

-40C to 125C

Dimensions

45mm x 25mm x 18mm (L x W x H)

Applications

The 1-CH 12V Relay Board is suitable for a wide range of IoT projects and applications, including

Home automation systems

Industrial control systems

Security systems

Robotics and automation

Lighting control systems

HVAC control systems

Conclusion

The 1-CH 12V Relay Board is a versatile and reliable relay module that provides a compact and efficient solution for switching high-power devices and appliances. Its digital control interface, high-power switching capacity, and electrical isolation make it an ideal component for IoT projects and applications.

Pin Configuration

  • 1-CH 12V Relay Board Pinout Explanation
  • The 1-CH 12V Relay Board is a popular IoT component used to control high-voltage devices using a low-voltage signal from a microcontroller or other devices. The board features a single channel relay with a rating of 12V, making it suitable for a wide range of applications. Here's a detailed explanation of each pin on the board:
  • Pinout Structure:
  • The pinout structure of the 1-CH 12V Relay Board is as follows:
  • Pin Descriptions:
  • 1. VCC (Voltage Common Collector)
  • Function: Power supply pin for the relay board
  • Voltage: 12V DC
  • Description: Provides power to the relay coil and other components on the board
  • 2. GND (Ground)
  • Function: Ground pin for the relay board
  • Voltage: 0V
  • Description: Provides a common ground reference for the relay board
  • 3. IN (Input)
  • Function: Control pin for the relay
  • Voltage: 0V to 5V DC (TTL compatible)
  • Description: When this pin is high (5V), the relay is energized, and when it's low (0V), the relay is de-energized
  • 4. COM (Common)
  • Function: Relay common contact
  • Voltage: Depends on the connected device
  • Description: This pin is connected to the normally open (NO) and normally closed (NC) contacts of the relay
  • 5. NO (Normally Open)
  • Function: Normally open contact of the relay
  • Voltage: Depends on the connected device
  • Description: This pin is connected to the COM pin when the relay is energized
  • 6. NC (Normally Closed)
  • Function: Normally closed contact of the relay
  • Voltage: Depends on the connected device
  • Description: This pin is connected to the COM pin when the relay is de-energized
  • Connection Structure:
  • To connect the pins, follow this structure:
  • Connect the VCC pin to a 12V DC power source.
  • Connect the GND pin to a common ground reference.
  • Connect the IN pin to a digital output pin of a microcontroller or other control device.
  • Connect the COM pin to the device or load you want to control (e.g., a lamp, fan, or motor).
  • Connect the NO pin to the positive terminal of the device or load.
  • Connect the NC pin to the negative terminal of the device or load.
  • Note:
  • Make sure to use a reliable power source and follow proper safety precautions when working with high-voltage devices.
  • Consult the datasheet and documentation of the specific relay module and devices you're using to ensure compatibility and proper operation.
  • I hope this explanation helps! Let me know if you have any further questions or need additional clarification.

Code Examples

1-CH 12V Relay Board Documentation
The 1-CH 12V Relay Board is a widely used IoT component that allows you to control high-voltage devices using a microcontroller or a single-board computer. This relay board features one SPDT (Single Pole Double Throw) relay, which can be used to switch on/off devices that require up to 12V and 10A of current.
Pinout:
The relay board has the following pinout:
VCC: Power supply for the relay board ( typically 5V or 3.3V)
 GND: Ground pin
 IN: Input pin to control the relay ( Logic level: 0V for OFF, 5V for ON)
 NO (Normally Open): Output pin connected to the normally open contact of the relay
 COM (Common): Output pin connected to the common contact of the relay
 NC (Normally Closed): Output pin connected to the normally closed contact of the relay
Operating Principle:
The relay board works by applying a voltage to the input pin (IN) to control the relay. When the input pin is high (5V), the relay is energized, and the normally open (NO) contact is connected to the common (COM) contact. When the input pin is low (0V), the relay is de-energized, and the normally closed (NC) contact is connected to the common (COM) contact.
Code Examples:
### Example 1: Controlling a DC Fan using Arduino
In this example, we will use an Arduino Uno board to control a DC fan using the 1-CH 12V Relay Board.
Hardware:
Arduino Uno board
 1-CH 12V Relay Board
 DC fan (12V, 1A)
 Jumper wires
Code:
```c
const int relayPin = 2;  // choose a digital pin on the Arduino board
void setup() {
  pinMode(relayPin, OUTPUT); // set the relay pin as an output
}
void loop() {
  digitalWrite(relayPin, HIGH); // turn the relay ON
  delay(5000); // wait for 5 seconds
  digitalWrite(relayPin, LOW);  // turn the relay OFF
  delay(5000); // wait for 5 seconds
}
```
How it works:
In this example, we connect the IN pin of the relay board to digital pin 2 of the Arduino Uno board. We set the relay pin as an output in the `setup()` function. In the `loop()` function, we toggle the relay ON and OFF every 5 seconds using the `digitalWrite()` function.
### Example 2: Controlling a LED Strip using Raspberry Pi
In this example, we will use a Raspberry Pi board to control a LED strip using the 1-CH 12V Relay Board.
Hardware:
Raspberry Pi board
 1-CH 12V Relay Board
 LED strip (12V, 1A)
 Jumper wires
Code:
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)  # use Broadcom pin numbering
relay_pin = 17  # choose a GPIO pin on the Raspberry Pi board
GPIO.setup(relay_pin, GPIO.OUT)
try:
    while True:
        GPIO.output(relay_pin, GPIO.HIGH)  # turn the relay ON
        time.sleep(5)  # wait for 5 seconds
        GPIO.output(relay_pin, GPIO.LOW)  # turn the relay OFF
        time.sleep(5)  # wait for 5 seconds
except KeyboardInterrupt:
    GPIO.cleanup()
```
How it works:
In this example, we connect the IN pin of the relay board to GPIO pin 17 of the Raspberry Pi board. We set up the relay pin as an output using the `GPIO.setup()` function. In the main loop, we toggle the relay ON and OFF every 5 seconds using the `GPIO.output()` function.
Note: Make sure to use a suitable power supply for the relay board and the connected device. Also, ensure that the relay board is properly connected to the microcontroller or single-board computer before uploading the code.