Controlling Relay Boards from an ESP32
Ғылым және технология
Relays are electronic switches that allow a low voltage output from an ESP32 or an Arduino to control a much more powerful circuit like a 12V Solenoid lock, a 24V motor, or even your home 220V AC mains supply.
⚠️ WARNING ► We will use High Voltage which if incorrectly or improperly used could lead to injuries or even death. So, be very very careful.
● Playlist Link: bit.ly/3TdXiq5
● Introduction to ESP32: • Introduction to ESP32 ...
● Serial Monitor( NEW Arduino IDE ): • ESP32 Tutorial - How t...
♥ Don't Click This! : bit.ly/3jvI8g6
--------------------------------------------------------------------
FOLLOW ME:
● TikTok :
/ enjoy_mechatronics
● Facebook: / enjoymechatronics
● Github: github.com/Enjoy-Mechatronics
--------------------------------------------------------------------
► All content by Enjoy Mechatronics is 100% free. I believe that education should be freely available to everyone.
Пікірлер: 30
Please also teach how to create webpage from esp32 and user can turn ON/OFF relay by clicking on ICONs.
USUALLY ESP32 GIVES 3.3V , BUT THE RELAY NEEDS 5V TO CONTROL. HOW DID YOU FIX THIS ISSUE
While powering on the circuit the relay get automatically triggered from esp32
There are also esp modules relays build in.
@0my
3 ай бұрын
Where? Any that plug in to the esp32 dev board headers?
Can I use this to actuacte a solenoid for an exact period of time? For example, if I send 0.3002 from my phone, it actuates on the solenoid for exactly, (or very close to) 0.3002 seconds
@Noughtta
Жыл бұрын
yes
Can I power 3 relays from this 5v pin? What would be the max current?
@EnjoyMechatronics
Жыл бұрын
Yeah, and if it doesn't work, you could use an external power supply(5v) And connect its ground to the gnd of the esp32 board.
♥ Don't Click This! : bit.ly/3jvI8g6
what is the advantage of Relly if we use high voltage to make the ligthbulb ON?
@EnjoyMechatronics
9 ай бұрын
Because we can't turn on a light bulb using microcontrollers without a relay.
For the serial can we get the status where relay turn on the lamp dan turn off the lamp?
@EnjoyMechatronics
Жыл бұрын
Yeah, create a state variable and a toggle function to reverse the status of the lamp.
Sir Thanq for wonderful video.Can i integrate web sever video2 with this relay system. Pl advice
@EnjoyMechatronics
3 ай бұрын
Yes, sure
Please also teach how to After loading the code for the esp32, do I need to plug the micro USB into the esp32? If you unplug the micro USB into the esp32, does the light come on?
@EnjoyMechatronics
2 ай бұрын
Use firebase
I wrote the same code but bulb is on mode only not able to off plz give some suggestions
@shukriazizi9516
Жыл бұрын
please check the relay that u utilized. generally, there are 2 variation of relay which are 5V relay and 3.3V relay. ESP microcontroller just support 3.3V relay since the output signal is 3.3V. if u used 5V relay, it will not trigger the relay to switch the open and close circuit.
@nataliaballesteros7997
Жыл бұрын
@@shukriazizi9516 Does this depend on the ESP32 that is used? I´m having the same problem and I´m using the ESP32 Devkit V1, If i changed it for the ESP32 WROOM 32D would it work?
@shukriazizi9516
Жыл бұрын
@@nataliaballesteros7997 no, it dosnt works. you can still use ESP32 dev kit with logic level converter (LLC). LLC will convert output signal from 3.3v to 5V which compatible with 5Vrelay.
i am using using esp32 DevKitV1,., its not working,., can u help?
@shukriazizi9516
Жыл бұрын
please check the relay that u utilized. generally, there are 2 variation of relay which are 5V relay and 3.3V relay. ESP microcontroller just support 3.3V relay since the output signal is 3.3V. if u used 5V relay, it will not trigger the relay to switch the open and close circuit.
@sayaorang6655
6 ай бұрын
@@shukriazizi9516I use a 5vdc relay, but it can't be controlled at the vin pin, while at the 3v3 pin, the relay works normally, what should I do?, I need the 3v3 pin for other things
module is working blue light on and off but relay are not on and off plz help
@EnjoyMechatronics
Жыл бұрын
I guess we can solve this by using an external power supply to power up the relay module.
@shukriazizi9516
Жыл бұрын
please check the relay that u utilized. generally, there are 2 variation of relay which are 5V relay and 3.3V relay. ESP microcontroller just support 3.3V relay since the output signal is 3.3V. if u used 5V relay, it will not trigger the relay to switch the open and close circuit.
Like