1-relemoduuli piirilevylle Arduinoa, ESP32:ta ja ESP8266:ta varten, helppo liittää DuPont-johdoilla.
SKU: OT961-C105 Tuotenumero: YP924 EAN: 4639867568390 Sijainti: C10.05
Vaihtoehto
Relemoduuli 5v | 4-kanavainen punainen
€ 4,50
Katso tämä vaihtoehto
Näin kytket Relemoduuli 5v Arduinoa varten:n Arduino UNOon tai ESP32:een, mukana esimerkkisketsi, jonka voit ladata heti.
Tämä projekti näyttää, miten 5V-relemoduulia ohjataan Arduino UNO:lla. Sketch kytkee releen ON ja OFF kahden sekunnin välein ja tulostaa tilan Serial Monitoriin. Kuulet releestä kuuluvan naksahduksen joka kerta, kun se vaihtaa tilaansa.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : Control a 5V Relay with Arduino UNO
* Board : Arduino UNO (arduino:avr:uno)
* Parts : Relay Module 5V
* 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.
* ==================================================================
*/
// 5V Relay Module Example
const int RELAY_PIN = 7;
void setup() {
pinMode(RELAY_PIN, OUTPUT);
Serial.begin(115200);
Serial.println(F("Relay module demo started."));
}
void loop() {
// Turn relay ON
digitalWrite(RELAY_PIN, HIGH);
Serial.println(F("Relay: ON"));
delay(2000);
// Turn relay OFF
digitalWrite(RELAY_PIN, LOW);
Serial.println(F("Relay: OFF"));
delay(2000);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Tämä projekti näyttää, miten 5V-relemoduulia ohjataan ESP32:lla. Rele kytkeytyy PÄÄLLE ja POIS kahden sekunnin välein samalla kun sen tila tulostetaan Serial Monitoriin. Rele saa virtansa suoraan ESP32:n VIN-pinnistä (5V USB:stä) ja sitä ohjataan GPIO 4:n kautta.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : 5V Relay Control with ESP32
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : Relay Module 5V
* 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.
* ==================================================================
*/
// 5V Relay Control Example for ESP32
const int RELAY_PIN = 4;
void setup() {
Serial.begin(115200);
pinMode(RELAY_PIN, OUTPUT);
digitalWrite(RELAY_PIN, LOW);
Serial.println("Relay control initialized.");
}
void loop() {
// Turn relay ON (Active HIGH for standard modules)
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
Hakusanat: rele 5v, 5v rele, relay 5v, 5v relay, rele korkea, rele high, relay high, sininen rele, rele sininen, rele 250v, rele 220v, rele Arduinoa varten, Arduino rele, rele breadboard
Mitat
Pituus: 3,3cm
Leveys: 2,6cm
Korkeus: 1,7cm
| Leveys | 2,6 cm |
|---|---|
| Sopii | Arduino / ESP32 / ESP8266 |
| Pituus | 3,3 cm |
| Tyyppi | 1 rele |
| Korkeus | 1,7 cm |
| Suuri kuormitus mahdollinen | AC250V 10A / DC30V 10 A |
| Ohjaus | 5 V |
Kaunis muotoilu
toimii täydellisesti
Jämäkkä tuote.
Hyvä rele. Toimii myös 3,3 V ohjaussignaalilla (ESP32)
Etkö ole tyytyväinen? Sinulla on 30 päivää aikaa vastaanotosta palauttaa tuote.
Kaikki palautuksista
Relemoduuli 5v Arduinoa varten