8 Channel 5V Relay Board
8 Channel 5V Relay Board
The 8 Channel 5V Relay Board is a versatile and widely used Internet of Things (IoT) component that enables the control of high-voltage and high-current devices using low-voltage signals from microcontrollers, single-board computers, or other digital systems. This relay board provides eight individual relay channels, each capable of switching up to 250V AC or 120V DC loads, making it an ideal solution for a broad range of applications, including home automation, industrial control, and robotics.
The primary function of the 8 Channel 5V Relay Board is to act as an electronic switch, allowing low-voltage digital signals to control high-voltage loads. Each relay channel consists of a normally open (NO) and normally closed (NC) contact, which can be individually toggled using digital input signals. When a digital signal is applied to a relay channel, the corresponding NO contact closes, and the NC contact opens, allowing the load to be energized or de-energized.
| Parameter | Value |
| --- | --- |
| Relay Type | Electromagnetic |
| Voltage Rating | 250V AC, 120V DC |
| Trigger Voltage | 5V DC |
| Output Current | Up to 10A per channel |
| Relay Lifespan | Up to 100,000 cycles |
| Board Dimensions | 124mm x 64mm x 18mm |
| Operating Temperature | -40C to 85C |
| Storage Temperature | -40C to 125C |
| The 8 Channel 5V Relay Board complies with relevant industry standards and regulations, including |
RoHS (Restriction of Hazardous Substances)
CE (Conformit Europene)
FCC (Federal Communications Commission)
The 8 Channel 5V Relay Board is backed by a limited warranty and dedicated technical support, ensuring reliable performance and assistance when needed.
8 Channel 5V Relay BoardOverviewThe 8 Channel 5V Relay Board is a versatile and compact board designed to control and switch high-power devices using low-power signals from a microcontroller or other digital devices. This board features 8 SPDT (Single Pole Double Throw) relays, each capable of handling up to 250VAC or 30VDC loads, making it an ideal solution for home automation, industrial control, and IoT applications.Pinout and ConnectionsThe relay board has the following pinout:VCC: 5V power supply
GND: Ground
IN1-IN8: Digital input pins for controlling the relays
COM1-COM8: Common pins for the relays
NC1-NC8: Normally Closed pins for the relays
NO1-NO8: Normally Open pins for the relaysExample 1: Controlling a Relay using ArduinoIn this example, we will use an Arduino Uno to control one of the relays on the board.```c++
const int relayPin = 2; // Choose any digital pin on the Arduinovoid setup() {
pinMode(relayPin, OUTPUT);
}void loop() {
digitalWrite(relayPin, HIGH); // Turn the relay ON
delay(1000); // Wait for 1 second
digitalWrite(relayPin, LOW); // Turn the relay OFF
delay(1000); // Wait for 1 second
}
```Connect the Arduino's digital pin 2 to the IN1 pin on the relay board, and connect the load (e.g., a LED or a lamp) to the COM1, NC1, and NO1 pins on the relay board.Example 2: Controlling Multiple Relays using Raspberry Pi (Python)In this example, we will use a Raspberry Pi to control multiple relays on the board using Python.```python
import RPi.GPIO as GPIO
import timeGPIO.setmode(GPIO.BCM)relay_pins = [17, 23, 24, 25] # Choose any 4 GPIO pins on the Raspberry Pifor pin in relay_pins:
GPIO.setup(pin, GPIO.OUT)while True:
for pin in relay_pins:
GPIO.output(pin, GPIO.HIGH) # Turn the relays ON
time.sleep(1)
for pin in relay_pins:
GPIO.output(pin, GPIO.LOW) # Turn the relays OFF
time.sleep(1)
```Connect the Raspberry Pi's GPIO pins 17, 23, 24, and 25 to the IN1, IN2, IN3, and IN4 pins on the relay board, respectively. Connect the loads (e.g., LEDs or lamps) to the corresponding COM, NC, and NO pins on the relay board.Example 3: Controlling Relays using ESP8266 (MicroPython)In this example, we will use an ESP8266 board to control a relay on the board using MicroPython.```python
import machinerelay_pin = machine.Pin(2, machine.Pin.OUT)while True:
relay_pin.value(1) # Turn the relay ON
time.sleep(1)
relay_pin.value(0) # Turn the relay OFF
time.sleep(1)
```Connect the ESP8266's digital pin 2 to the IN1 pin on the relay board, and connect the load (e.g., a LED or a lamp) to the COM1, NC1, and NO1 pins on the relay board.Note: Make sure to use a level shifter or a voltage divider if the voltage levels of the microcontroller and the relay board are different.