Description
2-Channel 5V Solid-State Relay Module
Two-channel solid-state relay module with active-high inputs: the source says a 5V high input activates a channel. It describes opto-isolation between the control and load circuits and use for switching AC loads.
Specifications stated in the listing
- Control supply: 5V DC
- Operating current: 12.5mA per channel, as listed
- Output voltage: maximum 240V AC per channel, as listed
- Output current: maximum 2A per channel, as listed
- Relay type: solid-state; active-high control
- Opto-isolation between load and control circuits
Basic Arduino example
int relay1Pin = 7; // Broche de commande du relais 1
int relay2Pin = 8; // Broche de commande du relais 2
void setup() {
pinMode(relay1Pin, OUTPUT); // Définir la broche comme sortie
pinMode(relay2Pin, OUTPUT); // Définir la broche comme sortie
}
void loop() {
digitalWrite(relay1Pin, HIGH); // Activer le relais 1
digitalWrite(relay2Pin, HIGH); // Activer le relais 2
delay(1000); // Attendre 1 seconde
digitalWrite(relay1Pin, LOW); // Désactiver le relais 1
digitalWrite(relay2Pin, LOW); // Désactiver le relais 2
delay(1000); // Attendre 1 seconde
}
The source includes a basic example and wiring notes. The code is reproduced unchanged.
Advanced Arduino example with temperature sensor
#include <DHT.h>
#define DHTPIN 2 // Broche de signal du DHT11
#define DHTTYPE DHT11 // Type de capteur DHT
#define RELAY1PIN 7 // Broche de commande du relais 1
#define RELAY2PIN 8 // Broche de commande du relais 2
DHT dht(DHTPIN, DHTTYPE);
void setup() {
Serial.begin(9600); // Initialiser la communication série
dht.begin(); // Initialiser le capteur DHT
pinMode(RELAY1PIN, OUTPUT); // Définir la broche comme sortie pour le relais 1
pinMode(RELAY2PIN, OUTPUT); // Définir la broche comme sortie pour le relais 2
}
void loop() {
float temperature = dht.readTemperature(); // Lire la température
if (temperature > 25) { // Activer le relais 1 si la température est supérieure à 25°C
digitalWrite(RELAY1PIN, HIGH);
} else {
digitalWrite(RELAY1PIN, LOW);
}
if (temperature < 20) { // Activer le relais 2 si la température est inférieure à 20°C
digitalWrite(RELAY2PIN, HIGH);
} else {
digitalWrite(RELAY2PIN, LOW);
}
delay(2000); // Attendre 2 secondes avant de refaire une lecture
}
The source also includes a DHT11 example that controls two relay channels at temperature thresholds.
The source does not specify the relay output topology or a certified load category. Its 240V AC/2A figures are seller-listed maximums, not verified continuous ratings. Confirm the board documentation, load type/current, heat dissipation and isolation before connection. Install mains wiring in a suitable enclosure through a qualified person; do not use this module as a safety disconnect. The source instructs installing “DHT sensor library” using Arduino IDE Library Manager. Price: 50 MAD.









