Op werkdagen vóór 14:00 uur besteld = dezelfde dag verzonden en in 98% van de gevallen de volgende dag in huis. Gratis retourneren 30 dagen bedenktijd 1 jaar garantie
← Tillbaka till översikten

Kopplingsschema och kodexempel

Så här kopplar du 12V justerbar tidsfördröjningsrelämodul till en Arduino UNO eller ESP32, med ett exempel­sketch som du kan ladda upp direkt.

Adjustable Timer Delay Relay Trigger

This project demonstrates how to trigger an adjustable timer delay relay module using an Arduino Uno. The Arduino sends a short pulse from digital pin 4 to the IN trigger pin, activating the onboard timer delay cycle. Adjust the potentiometer on the relay module to change the duration of the relay activation.

Kopplingsschema: 12V justerbar tidsfördröjningsrelämodul på en Arduino UNO
Kopplingsschema · Klicka för att förstora
Kopplingstabell: 12V justerbar tidsfördröjningsrelämodul på en Arduino UNO
Kopplingstabell · Klicka för att förstora
Adjustable_Timer_Delay_Relay_Trigger.ino · kompilerad och testad
/*
 * ==================================================================
 *  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

Trigger 12V Adjustable Timer Delay Relay

This project demonstrates triggering an adjustable 12V time delay relay module using an ESP32. The ESP32 sends a short trigger pulse to start the countdown, and the relay stays energized for the duration set by the onboard potentiometer (0 to 25 seconds).

Kopplingsschema: 12V justerbar tidsfördröjningsrelämodul på en ESP32 DevKit V1
Kopplingsschema · Klicka för att förstora
Kopplingstabell: 12V justerbar tidsfördröjningsrelämodul på en ESP32 DevKit V1
Kopplingstabell · Klicka för att förstora
Trigger_12V_Adjustable_Timer_Delay_Relay.ino · kompilerad och testad
/*
 * ==================================================================
 *  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

Tidigare visade

ACEBOTT Utbyggnad Kameramodul för ESP32 Robotbil

ACEBOTT Utbyggnad Kameramodul för ESP32 Robotbil

€ 29,00
Peltiermodul 12v 57W 40x40mm TEC1-12705

Peltiermodul 12v 57W 40x40mm TEC1-12705

€ 5,60
2S 18650 Batterikapacitetstestare Li-Ion Modul

2S 18650 Batterikapacitetstestare Li-Ion Modul

€ 2,10
GPS-antenn 28dBi med IPEX-anslutning

GPS-antenn 28dBi med IPEX-anslutning

€ 6,70
Glassäkring 250VAC 5A F

Glassäkring 250VAC 5A F

€ 1,25
Lindtråd Koppar Ø0.1mm - 715m - 1.5kohm

Lindtråd Koppar Ø0.1mm - 715m - 1.5kohm

€ 9,70
Visa
Rotary Encoder HW-040 för Arduino - utan knapp

Rotary Encoder HW-040 för Arduino - utan knapp

€ 2,00