Encomendado em dias úteis antes das 14:00 = enviado no mesmo dia e, em 98% dos casos, entregue no dia seguinte. Devolução gratuita 30 dias para refletir 1 ano de garantia

Esquema de ligação e exemplo de código

Como ligar o Módulo de Relé 5v Low a um Arduino UNO ou ESP32, com um sketch de exemplo que podes carregar já.

5V Active-Low Relay Control

This project demonstrates how to control a 5V active-low relay module with an Arduino Uno. The sketch toggles the relay ON and OFF every two seconds while printing the current state to the Serial Monitor. Because this is an active-low module, setting the control pin LOW activates the relay, and setting it HIGH deactivates it.

Esquema de ligação: Módulo de Relé 5v Low num Arduino UNO
Esquema de ligação · Clique para ampliar
Tabela de ligação: Módulo de Relé 5v Low num Arduino UNO
Tabela de ligação · Clique para ampliar
5V_Active_Low_Relay_Control.ino · compilado e testado
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : 5V Active-Low Relay Control
 *  Board     : Arduino UNO (arduino:avr:uno)
 *  Parts     : Relais Module 5v Low
 *  Libraries : none (built-in)
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

// Pin configuration
const int relayPin = 7;

void setup() {
  // Set the relay pin as output
  pinMode(relayPin, OUTPUT);
  
  // Active-low relay: default to OFF (HIGH state)
  digitalWrite(relayPin, HIGH);

  Serial.begin(115200);
  while (!Serial) {
    ; // Wait for serial port to connect
  }

  Serial.println(F("5V Relay Module Demo Started"));
  Serial.println(F("Relay will toggle every 2 seconds."));
}

void loop() {
  // Turn relay ON (active LOW)
  Serial.println(F("Relay: ON"));
  digitalWrite(relayPin, LOW);
  delay(2000);

  // Turn relay OFF (HIGH)
  Serial.println(F("Relay: OFF"));
  digitalWrite(relayPin, HIGH);
  delay(2000);
}

Wiring diagram and example code generated by Codey.online — https://www.codey.online

ESP32 5V Relay Control Demo

This example demonstrates how to control a 5V active-low relay module with the ESP32. The relay's coil is powered from the VIN pin (5V from USB) while GPIO 4 toggles the control pin. Driving the control pin LOW energizes the relay switch, and driving it HIGH turns it off.

Esquema de ligação: Módulo de Relé 5v Low num ESP32 DevKit V1
Esquema de ligação · Clique para ampliar
Tabela de ligação: Módulo de Relé 5v Low num ESP32 DevKit V1
Tabela de ligação · Clique para ampliar
ESP32_5V_Relay_Control_Demo.ino · compilado e testado
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : ESP32 5V Relay Control Demo
 *  Board     : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
 *  Parts     : Relais Module 5v Low
 *  Libraries : none (built-in)
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

// Pin connected to relay IN
const int RELAY_PIN = 4;

void setup() {
  Serial.begin(115200);
  
  // Configure relay pin as output and start with relay OFF (HIGH = inactive for active-low module)
  pinMode(RELAY_PIN, OUTPUT);
  digitalWrite(RELAY_PIN, HIGH);
  
  Serial.println("ESP32 Relay Module Demo Initialized");
}

void loop() {
  // Turn relay ON (Active-low: LOW energizes coil)
  Serial.println("Relay: ON");
  digitalWrite(RELAY_PIN, LOW);
  delay(2000);

  // Turn relay OFF (Active-low: HIGH de-energizes coil)
  Serial.println("Relay: OFF");
  digitalWrite(RELAY_PIN, HIGH);
  delay(2000);
}

Wiring diagram and example code generated by Codey.online — https://www.codey.online

Módulo de Relé 5v Low

  • Alta carga possível: AC250V 10A / DC30V 10 A
  • Comando do relé 5v
  • Sinal: low
  • 1 relé na placa de circuito impresso
  • com indicadores LED, vermelho e verde

veja aqui o Esquema de ligação e o código de exemplo >>>

Termos de pesquisa: relé 5v, 5v relé, relay 5v, 5v relay, relé baixo, relé low, relay low, relé azul, relé azul, relé 250v, relé 220v, relé 1 canal, relé 1-canal, relay 1 channel

  • 5V aansturing
  • Low signaal
  • AC250V 10A
  • LED indicatoren
Ao reproduzir, o vídeo do YouTube é carregado.

Por que escolher este produto?

  • 5V aansturing – Geschikt voor relaisaansturing met 5V.
  • Hoge belasting – Schakelt tot AC250V 10A of DC30V 10A.
  • Enkel relais – Eén relais op printplaat.
  • Statusindicatie – Met rode en groene LED-indicatoren.
Especificações
Alimentação5 V
Tipo1-kanaals
Possível carga elevadaAC250V 10A / DC30V 10 A
Sinallow

Frequentemente comprados juntos

Total: € 8,54

Avaliações

★★★★★ 4,0/5 1 avaliação
  • ★★★★★Jan

    ótimo e funciona bem

Escrever uma avaliação
A tua avaliação

Envio & devoluções

Envio

  • Pacote com Track & Trace€ 6,20Alemanha 1-3, França 2-3, Espanha/Itália 2-4, outros países 3-5 dias úteis
  • Pacote com Track & Trace€ 7,35Alemanha 1-3, França 2-3, Espanha/Itália 2-4, outros países 3-5 dias úteis
  • Pacote com Track & Trace€ 8,50Alemanha 1-3, França 2-3, Espanha/Itália 2-4, outros países 3-5 dias úteis
  • Pacote com Track & Trace€ 9,15Alemanha 1-3, França 2-3, Espanha/Itália 2-4, outros países 3-5 dias úteis
Tudo sobre envios

Devoluções

Não ficas satisfeito? Tens 30 dias após a receção para devolver o produto.

Tudo sobre devoluções

Vistos recentemente

LCD 1602 cinzento / preto com backlight

LCD 1602 cinzento / preto com backlight

€ 3,85
Microcontrolador ATMEGA328P-PU

Microcontrolador ATMEGA328P-PU

€ 10,85
Módulo Ethernet SPI W5500

Módulo Ethernet SPI W5500

€ 7,65
Servo S3003 180 graus

Servo S3003 180 graus

€ 5,70