ESP 32 Connect 5V Relay via Logic Level Converter (ESP32)
ESP 32 is a wifi and bluetooth integrated very powerful chip manufactured by Espressif.
This video shows how to use a logic converter to use this chip with a 5v relay.
5V relay needs 5V input, sometimes it works with 3.3 but this is unstable and can not guarantee that it will work always. This video show a stable and proper way to drive 5V relay with ESP 32. ESP 32 has 3.3 v output from its pins.
Detailed information about ESP 32: https://www.espressif.com/en/products/modules/esp32
0:00:50 - Drawing / wrong way to connect relay (Common mistake)
0:01:45 - How to connect 5V relay in a wrong way
0:04:14 - Drawing / correct way to connect relay (with Logic Level Converter)
0:05:50 - How to connect 5V relay with logic level converter
To buy ESP32: https://www.amazon.com/ESP32/s?k=ESP32
To buy 5V relay: https://www.amazon.com/HiLetgo-Channel-optocoupler-Support-Trigger/dp/B00LW15A4W/ref=sr_1_4?dchild=1&keywords=5v+relay&qid=1595020630&sr=8-4
To buy Logic Level Converter: https://www.amazon.com/FTCBlock-3-3V-5V-Channels-Converter-Bi-Directional/dp/B07H2C6SJJ/ref=sr_1_1_sspa?crid=RAA9OAEW6CN2&dchild=1&keywords=logic+level+converter+3.3v+to+5v&qid=1595020667&sprefix=logic+level+converter%2Caps%2C277&sr=8-1-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEyR1Y5VThTMUs0UFBLJmVuY3J5cHRlZElkPUEwMjY2NDQxQ0VRVkRGRkxJT1BCJmVuY3J5cHRlZEFkSWQ9QTA5MDU4MTQxVTBKRVIwUVhVM0FBJndpZGdldE5hbWU9c3BfYXRmJmFjdGlvbj1jbGlja1JlZGlyZWN0JmRvTm90TG9nQ2xpY2s9dHJ1ZQ==
Here is the very basic blinking code for Arduino to program ESP32
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(26, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(26, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(26, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Видео ESP 32 Connect 5V Relay via Logic Level Converter (ESP32) канала Tech Info
This video shows how to use a logic converter to use this chip with a 5v relay.
5V relay needs 5V input, sometimes it works with 3.3 but this is unstable and can not guarantee that it will work always. This video show a stable and proper way to drive 5V relay with ESP 32. ESP 32 has 3.3 v output from its pins.
Detailed information about ESP 32: https://www.espressif.com/en/products/modules/esp32
0:00:50 - Drawing / wrong way to connect relay (Common mistake)
0:01:45 - How to connect 5V relay in a wrong way
0:04:14 - Drawing / correct way to connect relay (with Logic Level Converter)
0:05:50 - How to connect 5V relay with logic level converter
To buy ESP32: https://www.amazon.com/ESP32/s?k=ESP32
To buy 5V relay: https://www.amazon.com/HiLetgo-Channel-optocoupler-Support-Trigger/dp/B00LW15A4W/ref=sr_1_4?dchild=1&keywords=5v+relay&qid=1595020630&sr=8-4
To buy Logic Level Converter: https://www.amazon.com/FTCBlock-3-3V-5V-Channels-Converter-Bi-Directional/dp/B07H2C6SJJ/ref=sr_1_1_sspa?crid=RAA9OAEW6CN2&dchild=1&keywords=logic+level+converter+3.3v+to+5v&qid=1595020667&sprefix=logic+level+converter%2Caps%2C277&sr=8-1-spons&psc=1&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEyR1Y5VThTMUs0UFBLJmVuY3J5cHRlZElkPUEwMjY2NDQxQ0VRVkRGRkxJT1BCJmVuY3J5cHRlZEFkSWQ9QTA5MDU4MTQxVTBKRVIwUVhVM0FBJndpZGdldE5hbWU9c3BfYXRmJmFjdGlvbj1jbGlja1JlZGlyZWN0JmRvTm90TG9nQ2xpY2s9dHJ1ZQ==
Here is the very basic blinking code for Arduino to program ESP32
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(26, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(26, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(26, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Видео ESP 32 Connect 5V Relay via Logic Level Converter (ESP32) канала Tech Info
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
TUTORIAL: How to Setup & Code A Relay - Arduino, ESP32 & ESP8266 (Part 1) Quick + Simple!John Park's NeoPixel Level Shifter @adafruit @johnedgarpark #adafruit[TMT] Logic Level ShiftingThe best input and output pins on the NodeMCU ESP32 and ESP8266How An Automotive Relay Works and How to Wire 'Em upTranslating 3.3 V to 5 VRaspberry Pi: 8 Channel Relay step-by-step with software examples for automationDIY: 5V Relay switch motor controller - ArduinoESP32 CAM Getting Started | Face DetectionYou can learn Arduino in 15 minutes.Level Shifting Tutorial 5V-3.3V Quick and Dirty MethodsRepair ESP32 boards and serial testing with Raspberry PiHow to Use 5 Volt Relay Modules with Arduino and ESP8266Getting Started with LIDARESP32 Project: How to control AC bulb or load using Relay over WiFiTUTORIAL: Quickly getting started with ESP32 / ESP32S in 5 - 10 minutes! Beginner Friendly! Arduino!Arduino vs. Raspberry Pi - Which is best? | AddOhms #7Getting Started with ESPHome and Home AssistantEngineering - Relay Logic Circuits Part 1 (E.J. Daigle)IoT Switch