Controlling Relay Boards from an ESP32

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 42

  • @DIYTechRush
    @DIYTechRush  2 роки тому +1

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

  • @TCHamilton56
    @TCHamilton56 4 місяці тому +2

    Thanks!

    • @DIYTechRush
      @DIYTechRush  4 місяці тому +2

      Your encouragement means the world to me and keeps me motivated to create more content. I truly appreciate each and every one of you!

  • @jumbo999614
    @jumbo999614 Рік тому +4

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

  • @makersfunduck
    @makersfunduck 2 роки тому +2

    There are also esp modules relays build in.

    • @0my
      @0my 9 місяців тому

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

  • @mohamedalouzi3690
    @mohamedalouzi3690 Рік тому +2

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

    • @DIYTechRush
      @DIYTechRush  Рік тому +1

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

  • @simplyihyan7251
    @simplyihyan7251 5 місяців тому +1

    can you make a video on how to switch it on and off using mobile phone, thank you.

  • @xiaorulez
    @xiaorulez 2 роки тому +2

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

    • @DIYTechRush
      @DIYTechRush  2 роки тому +3

      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.

  • @bkcganeshblogs
    @bkcganeshblogs 10 місяців тому +1

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

  • @VuongNamDuong
    @VuongNamDuong 8 місяців тому +1

    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?

  • @gabrielbianchi2246
    @gabrielbianchi2246 Рік тому +1

    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

  • @n.mariama9454
    @n.mariama9454 4 місяці тому +1

    When I upload for the first time, I get the error
    Wrong boot mode detected (0×b)! The chip needs to be in download mode.
    I manually pressed the boot button when I tried again, but got the same error

  • @sudarnosilaban5648
    @sudarnosilaban5648 Рік тому +1

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

    • @DIYTechRush
      @DIYTechRush  Рік тому +1

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

  • @varshabanasode4347
    @varshabanasode4347 Рік тому +3

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

    • @shukriazizi9516
      @shukriazizi9516 Рік тому +1

      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.

  • @fireeyes2242
    @fireeyes2242 Рік тому +1

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

  • @WaqarHussain-zl3rt
    @WaqarHussain-zl3rt Рік тому +2

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

    • @DIYTechRush
      @DIYTechRush  Рік тому +1

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

    • @shukriazizi9516
      @shukriazizi9516 Рік тому +1

      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.

    • @TagFul19
      @TagFul19 2 місяці тому

      @@shukriazizi9516

  • @chinmayagarnaik749
    @chinmayagarnaik749 5 місяців тому +1

    i dont know what i did wrong my red and green light is blinking but tic tic sound not coming

  • @w.s.n.nemindara9510
    @w.s.n.nemindara9510 8 місяців тому +6

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

    • @raahimkhan7210
      @raahimkhan7210 3 місяці тому

      Did you figure it out? I'm also having the same issue

    • @w.s.n.nemindara9510
      @w.s.n.nemindara9510 3 місяці тому

      ​@@raahimkhan7210 yes, u can use a transistor. But it is easy if you use a Solid State Relay. You can connect directly and it is more durable

    • @isciadmin
      @isciadmin 2 місяці тому

      You can find 3v relay module.

    • @MattMiskinnis
      @MattMiskinnis Місяць тому

      On the ESP32 there are two power pins and a USB that can give it power, one is the 3.3v and the other is vin which is 5v, both will run your ESP32 (the vin will reduce to 3.3v if you use that). if you are powering the board from the USB you can use the VIN to the relay which is 5v. Other wise you will need to power the relay from a seperate 5v power source. There are components that you can get that will can take a 9v (or higher) and tune it down to 5v ( I do this with a 12 volt battery ) simply connect the relay to that source - the relay doesn't care where it's getting it's power from, just that it is getting 5v. Hope this helps.

    • @aannuupp
      @aannuupp 7 днів тому

      ​@@MattMiskinnishey man, I tried connecting the vcc of the relay to the 5v pin on the esp32 as you said. The relay does turn on but it can't be controlled by the esp32. Any fixes that you may suggest?

  • @PangkoyPacamalan
    @PangkoyPacamalan Рік тому

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

    • @shukriazizi9516
      @shukriazizi9516 Рік тому +2

      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 Рік тому

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

    • @shola-j5j
      @shola-j5j 3 місяці тому

      How did you resolve this, I don't see 3.3v relay that can be use with this esp32

  • @solarchumboacido
    @solarchumboacido Рік тому +1

    Like