ESP 32 Connect 5V Relay via Logic Level Converter (ESP32)
Автор: Tech Info
Загружено: 2020-07-18
Просмотров: 43040
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...
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-Channe...
To buy Logic Level Converter: https://www.amazon.com/FTCBlock-3-3V-...
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
}
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: