5V 8 Channel SSR Module
5V 8 Channel SSR Module
The 5V 8 Channel SSR Module is a solid-state relay (SSR) module designed to control and switch multiple AC loads using a low-voltage digital signal. This module is ideal for IoT projects, automation systems, and industrial control applications where multiple relays are required to manage various loads.
The 5V 8 Channel SSR Module consists of eight solid-state relays, each capable of switching an AC load using a 5V digital signal from a microcontroller or other control device. The module can be used to control a wide range of AC loads, including lamps, motors, and solenoids, making it a versatile component for various applications.
5V
20mA per channel
240V AC (maximum)
2A per channel (maximum)
50/60Hz
-25C to 75C
-40C to 85C
62mm x 45mm x 18mm (L x W x H)
The 5V 8 Channel SSR Module is suitable for a wide range of applications, including |
IoT projects
Automation systems
Industrial control systems
Home automation systems
Robotics
Security systems
A typical wiring diagram for the 5V 8 Channel SSR Module is shown below |
The 5V 8 Channel SSR Module is a versatile and reliable component for controlling multiple AC loads using a low-voltage digital signal. Its compact design, low power consumption, and high current capability make it an ideal choice for a wide range of applications.
5V 8 Channel SSR Module Documentation
Introduction
The 5V 8 Channel SSR (Solid State Relay) Module is a high-quality, compact module designed to control high-power AC or DC loads. It features 8 individual channels, each capable of handling up to 2A of continuous current, making it an ideal solution for a wide range of IoT applications.
Hardware Specifications
Input voltage: 5V
Number of channels: 8
Maximum current per channel: 2A
Operating frequency: 50/60Hz
Compatible with AC and DC loads
Pinout
The module has a simple and easy-to-use pinout:
VCC: 5V power input
GND: Ground
IN1-IN8: Input pins for channel 1-8 (active low)
OUT1-OUT8: Output pins for channel 1-8 (relay output)
Code Examples
### Example 1: Basic On/Off Control using Arduino
In this example, we'll demonstrate how to use the 5V 8 Channel SSR Module to control an AC light bulb using an Arduino board.
```c++
const int relayPin = 2; // Choose any digital pin on your Arduino board
void setup() {
pinMode(relayPin, OUTPUT);
}
void loop() {
digitalWrite(relayPin, LOW); // Turn on the relay (active low)
delay(1000);
digitalWrite(relayPin, HIGH); // Turn off the relay
delay(1000);
}
```
Connect the relayPin to IN1 on the SSR module, and the light bulb to OUT1 on the SSR module. Upload the code to your Arduino board, and the light bulb will toggle on and off every second.
### Example 2: Multiple Channel Control using Raspberry Pi (Python)
In this example, we'll show how to use the 5V 8 Channel SSR Module to control multiple AC loads using a Raspberry Pi.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
# Set up the input pins for the SSR module
relay_pins = [17, 23, 24, 25, 12, 16, 20, 21]
for pin in relay_pins:
GPIO.setup(pin, GPIO.OUT)
try:
while True:
# Turn on all relays
for pin in relay_pins:
GPIO.output(pin, GPIO.LOW)
time.sleep(2)
# Turn off all relays
for pin in relay_pins:
GPIO.output(pin, GPIO.HIGH)
time.sleep(2)
except KeyboardInterrupt:
GPIO.cleanup()
```
Connect the relay_pins to IN1-IN8 on the SSR module, and the AC loads to OUT1-OUT8 on the SSR module. Run the Python script on your Raspberry Pi, and all the loads will toggle on and off every 2 seconds.
### Example 3: IoT Automation using ESP32 (MicroPython)
In this example, we'll demonstrate how to use the 5V 8 Channel SSR Module to control an AC fan using an ESP32 board and Wi-Fi connectivity.
```python
import machine
import network
# Set up the input pins for the SSR module
relay_pin = machine.Pin(32, machine.Pin.OUT)
# Set up Wi-Fi connection
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect("your_wifi_ssid", "your_wifi_password")
while True:
# Send a GET request to a web server to toggle the relay
if sta_if.isconnected():
http_client = urequests.get("http://example.com/toggle_relay")
if http_client.text == "on":
relay_pin.value(0) # Turn on the relay
else:
relay_pin.value(1) # Turn off the relay
time.sleep(1)
```
Connect the relay_pin to IN1 on the SSR module, and the AC fan to OUT1 on the SSR module. Upload the MicroPython script to your ESP32 board, and the fan will toggle on and off based on the web server's response.
Remember to replace the placeholders (e.g., "your_wifi_ssid", "your_wifi_password") with your actual Wi-Fi credentials and web server URL.