Relæmodul 12V med 1 relæ på printkort og LED-indikator til styring af høj belastning.
SKU: OT901-C111 Varenummer: BA050 EAN: 5408955714471 Placering: C11.01
Alternativ
Relæmodul 12v | 8-kanals
75 kr.
Se dette alternativ
Sådan tilslutter du Relæmodul 12v til en Arduino UNO eller ESP32, med en eksempelsketch, du kan uploade med det samme.
Dette projekt viser, hvordan man styrer et 12V-relæmodul med en Arduino Uno. Sketchen tænder og slukker relæet periodisk hvert 2. sekund og viser den aktuelle tilstand i Serial Monitor. En indbygget LED-indikator på modulet lyser, når relæet er aktiveret.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : 12V Relay Module Control
* Board : Arduino UNO (arduino:avr:uno)
* Parts : Relais Module 12v AC250V 10A Relais 12v 1 relais LED indicator
* 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 RELAY_PIN = 7;
void setup() {
// Initialize serial communication
Serial.begin(115200);
while (!Serial) {
; // Wait for serial port to connect
}
// Configure relay control pin
pinMode(RELAY_PIN, OUTPUT);
digitalWrite(RELAY_PIN, HIGH); // Default off (active-low module)
Serial.println(F("12V Relay Module Demo Initialized"));
}
void loop() {
// Activate relay (Low-level trigger)
Serial.println(F("Relay: ON"));
digitalWrite(RELAY_PIN, LOW);
delay(2000);
// Deactivate relay
Serial.println(F("Relay: OFF"));
digitalWrite(RELAY_PIN, HIGH);
delay(2000);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Dette projekt viser, hvordan man styrer et 12V-relæmodul med én kanal ved hjælp af en ESP32. Relæspolen forsynes af en ekstern 12V DC-strømforsyning med fælles jord med ESP32, og GPIO 4 skifter relæet til og fra hvert andet sekund.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : 12V Relay Control with ESP32
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : Relais Module 12v AC250V 10A Relais 12v 1 relais LED indicator
* 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 control input
const int RELAY_PIN = 4;
void setup() {
Serial.begin(115200);
// Configure relay pin as output
pinMode(RELAY_PIN, OUTPUT);
digitalWrite(RELAY_PIN, LOW);
Serial.println("ESP32 12V Relay Demo Started");
}
void loop() {
// Turn relay ON
Serial.println("Relay ON");
digitalWrite(RELAY_PIN, HIGH);
delay(2000);
// Turn relay OFF
Serial.println("Relay OFF");
digitalWrite(RELAY_PIN, LOW);
delay(2000);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Søgeord: 12v relæ, relæ 12v, relay 12v, 12v relay
Afmetingen
Længde: 5,1cm
Bredde: 2,54cm
Højde: 1,9cm
| Bredde | 2,54 cm |
|---|---|
| Længde | 5,1 cm |
| Højde | 1,9 cm |
| Høj belastning mulig | AC250V 10A |
Godt produkt til en fair pris
Gør det, den skal
Godt produkt, men man skal selv finde ud af tilslutningerne ved at måle og så videre. Det bør være bedre.
Ikke tilfreds? Du har 30 dages fortrydelsesret efter modtagelsen til at sende produktet retur.
Alt om returnering
Relæmodul 12v