4-Channel 5V Solid-State Relay Module, Active High

90,00 DH

Availability:

60 in stock

SKU: 0111-C Categories: ,

Description

4-Channel 5V Solid-State Relay Module

Four-channel solid-state relay board. The listing describes active-high control inputs: a 5V high signal activates the corresponding channel. It also states that the control and load sides are optically isolated.

Listing specifications

  • Control supply: 5V DC
  • Operating current: 12.5mA per channel (as listed)
  • Output: up to 240V AC and 2A per channel (seller stated)
  • Four channels; active-high control

Basic Arduino example

int relay1Pin = 7; // Broche de commande du relais 1
int relay2Pin = 8; // Broche de commande du relais 2
int relay3Pin = 9; // Broche de commande du relais 3
int relay4Pin = 10; // Broche de commande du relais 4

void setup() {
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
pinMode(relay3Pin, OUTPUT); // Définir la broche comme sortie pour le relais 3
pinMode(relay4Pin, OUTPUT); // Définir la broche comme sortie pour le relais 4
}

void loop() {
digitalWrite(relay1Pin, HIGH); // Activer le relais 1
digitalWrite(relay2Pin, HIGH); // Activer le relais 2
digitalWrite(relay3Pin, HIGH); // Activer le relais 3
digitalWrite(relay4Pin, HIGH); // Activer le relais 4
delay(1000); // Attendre 1 seconde
digitalWrite(relay1Pin, LOW); // Désactiver le relais 1
digitalWrite(relay2Pin, LOW); // Désactiver le relais 2
digitalWrite(relay3Pin, LOW); // Désactiver le relais 3
digitalWrite(relay4Pin, LOW); // Désactiver le relais 4
delay(1000); // Attendre 1 seconde
}

Temperature-control example (DHT11)

#include <DHT.h>

// Brève description du capteur et de sa fonctionnalité
// Le DHT11 est un capteur de température et d'humidité qui mesure
// la température en degrés Celsius et l'humidité en pourcentage.

#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
#define RELAY3PIN 9 // Broche de commande du relais 3
#define RELAY4PIN 10 // Broche de commande du relais 4

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
pinMode(RELAY3PIN, OUTPUT); // Définir la broche comme sortie pour le relais 3
pinMode(RELAY4PIN, OUTPUT); // Définir la broche comme sortie pour le relais 4
}

void loop() {
float currentTemperature = dht.readTemperature(); // Lire la température

if (isnan(currentTemperature)) {
Serial.println(F("Erreur lors de la lecture de la température !"));
return;
}

// Logique de contrôle des relais
int relayStates[] = {
(currentTemperature > 25) ? HIGH : LOW, // Relais 1
(currentTemperature < 20) ? HIGH : LOW, // Relais 2
(currentTemperature > 30) ? HIGH : LOW, // Relais 3
(currentTemperature < 15) ? HIGH : LOW // Relais 4
};

for (int i = 0; i < 4; i++) {
digitalWrite(RELAY1PIN + i, relayStates[i]);
}

delay(2000); // Attendre 2 secondes avant de refaire une lecture
}

The source examples and wiring comments below are reproduced without changes.

Safety

The listing does not identify the output topology or a certified load category. Treat 240V AC/2A as unverified seller maximums, not confirmed continuous ratings. Confirm the exact board documentation and suitability for the load. Use a suitable enclosure and have mains wiring done by a qualified person. This module is not a safety disconnect.

Thank you for your loyalty!

EN