Ordinato entro le 14:00 nei giorni lavorativi = spedito in giornata 30 giorni per il recesso Garanzia di 1 anno
← Torna alla panoramica

Schema di collegamento ed esempio di codice

Ecco come collegare il Modulo relè con ritardo temporale regolabile 12V a un Arduino UNO o ESP32, con uno sketch di esempio che puoi caricare subito.

Trigger del relè con ritardo timer regolabile

Questo progetto mostra come attivare un modulo relè con ritardo timer regolabile utilizzando un Arduino Uno. L’Arduino invia un breve impulso dal pin digitale 4 al pin di trigger IN, attivando il ciclo di ritardo timer integrato. Regola il potenziometro sul modulo relè per modificare la durata dell’attivazione del relè.

Schema di collegamento: Modulo relè con ritardo temporale regolabile 12V su un Arduino UNO
Schema di collegamento · Clicca per ingrandire
Tabella di collegamento: Modulo relè con ritardo temporale regolabile 12V su un Arduino UNO
Tabella di collegamento · Clicca per ingrandire
Adjustable_Timer_Delay_Relay_Trigger.ino · compilato e testato
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : Adjustable Timer Delay Relay Trigger
 *  Board     : Arduino UNO (arduino:avr:uno)
 *  Parts     : DC 12V adjustable timer delay, time delay relay turn off switch module time relay time switch 0~25sec for smart home, automatic control
 *  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.
 * ==================================================================
 */

// Timer Delay Relay Module Demo
// Sends a trigger pulse to start the module's countdown delay.

const int triggerPin = 4;

void setup() {
  pinMode(triggerPin, OUTPUT);
  digitalWrite(triggerPin, LOW);

  Serial.begin(115200);
  Serial.println(F("Timer Delay Relay Demo Initialized."));
}

void loop() {
  Serial.println(F("Triggering relay delay cycle..."));
  
  // Send a 200 ms HIGH pulse to trigger the module
  digitalWrite(triggerPin, HIGH);
  delay(200);
  digitalWrite(triggerPin, LOW);
  
  Serial.println(F("Trigger sent. Waiting for delay cycle to complete..."));
  
  // Wait 10 seconds before triggering the next cycle
  delay(10000);
}

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

Relè temporizzato regolabile 12V con trigger

Questo progetto mostra come attivare un modulo relè temporizzato 12V regolabile usando un ESP32. L’ESP32 invia un breve impulso di trigger per avviare il conto alla rovescia, e il relè rimane eccitato per la durata impostata dal potenziometro onboard (0 to 25 seconds).

Schema di collegamento: Modulo relè con ritardo temporale regolabile 12V su un ESP32 DevKit V1
Schema di collegamento · Clicca per ingrandire
Tabella di collegamento: Modulo relè con ritardo temporale regolabile 12V su un ESP32 DevKit V1
Tabella di collegamento · Clicca per ingrandire
Trigger_12V_Adjustable_Timer_Delay_Relay.ino · compilato e testato
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : Trigger 12V Adjustable Timer Delay Relay
 *  Board     : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
 *  Parts     : DC 12V adjustable timer delay, time delay relay turn off switch module time relay time switch 0~25sec for smart home, automatic control
 *  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 the IN trigger pin of the timer relay module
const int TRIGGER_PIN = 4;

void setup() {
  Serial.begin(115200);
  pinMode(TRIGGER_PIN, OUTPUT);
  digitalWrite(TRIGGER_PIN, LOW);
  
  Serial.println("ESP32 12V Timer Delay Relay Module Initialized");
  delay(1000);
}

void loop() {
  Serial.println("Sending trigger pulse...");
  
  // Send a 200 ms pulse to activate the timer
  digitalWrite(TRIGGER_PIN, HIGH);
  delay(200);
  digitalWrite(TRIGGER_PIN, LOW);
  
  Serial.println("Triggered! The relay will remain active for the duration set by the potentiometer.");
  
  // Wait 15 seconds before triggering the next cycle
  delay(15000);
}

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

Visti di recente

Giunto per Ruota 18 mm / 5 mm

Giunto per Ruota 18 mm / 5 mm

€ 2,10
Pulsante arcade 100mm rosso a cupola

Pulsante arcade 100mm rosso a cupola

€ 9,95
Modulo relè a 1 canale, ritardo di trigger, regolabile 6-30V

Modulo relè a 1 canale, ritardo di trigger, regolabile 6-30V

€ 7,95