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

  • @jumbo999614
    @jumbo99961410 ай бұрын

    Please also teach how to create webpage from esp32 and user can turn ON/OFF relay by clicking on ICONs.

  • @w.s.n.nemindara9510
    @w.s.n.nemindara9510Ай бұрын

    USUALLY ESP32 GIVES 3.3V , BUT THE RELAY NEEDS 5V TO CONTROL. HOW DID YOU FIX THIS ISSUE

  • @fireeyes2242
    @fireeyes22428 ай бұрын

    While powering on the circuit the relay get automatically triggered from esp32

  • @makersfunduck
    @makersfunduck Жыл бұрын

    There are also esp modules relays build in.

  • @0my

    @0my

    3 ай бұрын

    Where? Any that plug in to the esp32 dev board headers?

  • @gabrielbianchi2246
    @gabrielbianchi2246 Жыл бұрын

    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

    @Noughtta

    Жыл бұрын

    yes

  • @xiaorulez
    @xiaorulez Жыл бұрын

    Can I power 3 relays from this 5v pin? What would be the max current?

  • @EnjoyMechatronics

    @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.

  • @EnjoyMechatronics
    @EnjoyMechatronics Жыл бұрын

    ♥ Don't Click This! : bit.ly/3jvI8g6

  • @mohamedalouzi3690
    @mohamedalouzi36909 ай бұрын

    what is the advantage of Relly if we use high voltage to make the ligthbulb ON?

  • @EnjoyMechatronics

    @EnjoyMechatronics

    9 ай бұрын

    Because we can't turn on a light bulb using microcontrollers without a relay.

  • @sudarnosilaban5648
    @sudarnosilaban5648 Жыл бұрын

    For the serial can we get the status where relay turn on the lamp dan turn off the lamp?

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

    Yeah, create a state variable and a toggle function to reverse the status of the lamp.

  • @bkcganeshblogs
    @bkcganeshblogs3 ай бұрын

    Sir Thanq for wonderful video.Can i integrate web sever video2 with this relay system. Pl advice

  • @EnjoyMechatronics

    @EnjoyMechatronics

    3 ай бұрын

    Yes, sure

  • @DacNganhk
    @DacNganhk2 ай бұрын

    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

    @EnjoyMechatronics

    2 ай бұрын

    Use firebase

  • @varshabanasode4347
    @varshabanasode4347 Жыл бұрын

    I wrote the same code but bulb is on mode only not able to off plz give some suggestions

  • @shukriazizi9516

    @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

    @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

    @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.

  • @PangkoyPacamalan
    @PangkoyPacamalan Жыл бұрын

    i am using using esp32 DevKitV1,., its not working,., can u help?

  • @shukriazizi9516

    @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

    @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

  • @WaqarHussain-zl3rt
    @WaqarHussain-zl3rt Жыл бұрын

    module is working blue light on and off but relay are not on and off plz help

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

    I guess we can solve this by using an external power supply to power up the relay module.

  • @shukriazizi9516

    @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.

  • @solarchumboacido
    @solarchumboacido Жыл бұрын

    Like

Келесі