ESP8266 Project: How to control 4 AC bulb or load using 4 Relay with NodeMCU and D1 Mini over WiFi

Поделиться
HTML-код
  • Опубликовано: 3 ноя 2024

Комментарии • 70

  • @success1042
    @success1042 3 года назад +1

    We have no word to thank you sir!!!! You save us

  • @patrickmclaughlin6013
    @patrickmclaughlin6013 3 года назад +1

    So the 5V relay worked OK with the 3.3 8266 board?
    Good to see.
    Thanks for posting.
    I guess 'Light ON' actually tunring the light off is appropriate for 2020, it's been a crazy year. No doubt a easy fix.

    • @robojax
      @robojax  3 года назад +1

      I have explained it how it is reversed. either in code or in wiring.

    • @gamekyuubi42069
      @gamekyuubi42069 Год назад +1

      this is why I came here.

  • @ztiger09
    @ztiger09 2 года назад

    Hi your past videos have helped me a lot in my past projects. I think you should do a video with an arduino mega 2650 with wifi esp8266 built in with the same project.

    • @robojax
      @robojax  2 года назад

      Hi, thanks for the comment. how can I use Mega and ESP8266 both are microcontroller and it would be waste to use two of them? There is a WiFi module for Arduino Mega that I can use. Please clarify why you need Mega at all if ESP8266 can work for this project. Other than abundance of pins do you need it otherwise?

  • @Evilslayer73
    @Evilslayer73 3 года назад

    Hi im looking to build a mini balcony irrigation system ... my question is can it be possible to add capacitive moist sensor with that sketch?

  • @grimlord5654
    @grimlord5654 3 года назад

    thank you sir. salamat poh.

  • @bozidartanaskovic4754
    @bozidartanaskovic4754 4 года назад +1

    Thank you for your very usefull tutorials. I learnt a lot from them. Is it work only in local? Can it work if you are not connected at the same wifi ssid? Thanks

    • @robojax
      @robojax  4 года назад +1

      You are welcome. Because it works with WiFi, your device to control it must be on the same Wifi/SSID network.

  • @SatyaSubhajit
    @SatyaSubhajit 3 года назад

    Amazing video Ahmed. I had implemented and facing one problem, the IP/DNS is not working outside the same WiFi network. Could you please help why that's happening?

    • @robojax
      @robojax  3 года назад +1

      of course it will not work. search youtube "how to connect to my home network from outside" you will find solution. once you can connect to your home, then you can connect to ESP device.

  • @jamesgoacher1606
    @jamesgoacher1606 4 года назад

    Bets to put a socket in a box with cable/plug to socket outlet and install the relay wiring inside the box. Much safer that breaking the wire.

    • @robojax
      @robojax  4 года назад

      Yes. of course. this is just demonstration for learning purpose.

  • @petersmets2871
    @petersmets2871 3 года назад

    thank you for this useful information, but i have one question, wich app on your mobilephone do you use?

    • @robojax
      @robojax  3 года назад

      😂😂😂LOL : when you post a comment without watching video

  • @englishrupe01
    @englishrupe01 4 года назад

    Very useful tutorial; thankyou!

    • @robojax
      @robojax  4 года назад

      You are welcome.

  • @ahmedtiger3809
    @ahmedtiger3809 4 года назад +1

    Nice tutorial

  • @RajRaj-fh4mm
    @RajRaj-fh4mm 4 года назад

    very useful video
    thank you sir

    • @robojax
      @robojax  4 года назад +1

      Most welcome

    • @RajRaj-fh4mm
      @RajRaj-fh4mm 4 года назад

      hi sir i would like to ask something.
      is it possible the nodemcu can program on macbook?
      my nodemcu i connected on mac.
      but i can't upload the program i install already the ch340 usb drivers.
      but still have a problem.
      can i have a solution. for this problem please

  • @sangarmutusamy9801
    @sangarmutusamy9801 4 года назад

    Hi Robojax, can you pls guide me how to do the same project in Arduino mega2560? I mean NodeMCU talking to Mega 2560 for the same purpose.

    • @robojax
      @robojax  4 года назад

      Hi, I did not understand. if you use ESP8266 this is a complete microcontroller like MEA2560 +WiFi capability. yes it has fewer IN/OUT but. if you wan to use MEGA then you need the WiFi shield and with some tweaks it should work.

  • @smokino9387
    @smokino9387 3 года назад

    Hi, great work, how we can control this when connected to a different wifi network? , all point to do this is to be able to control from far

    • @robojax
      @robojax  3 года назад +1

      You are welcome. I wanted to make video for that, but people have different routers and it would be hard to make everyone happy. we needs specific settings in router to make it work. so search "how to connect to my home network from internet" I am sure you will find tones of videos. good luck and I hope you've subscribed as your subscription help my channel grow. Thanks

    • @smokino9387
      @smokino9387 3 года назад

      @@robojax Thanks

  • @Spence301981
    @Spence301981 2 года назад

    Hi Robo, Great vid! Im new at this and i tried to build this project. I got everything working only the buttons on my browser are not responding to the relay. I got only 1 channel relay, by the way. Relay 5V works fine. Do you know what is going wrong?

    • @robojax
      @robojax  2 года назад

      Hi, if I assume you have not changed the code then it is the wiring.

    • @Spence301981
      @Spence301981 2 года назад

      @@robojax Thanks for your quick response! That was it! Thanks a lot!! Your vids are very clear thorough. Great projects for a beginner. Hope you dont mind asking you some more questions in the future.

  • @auclpg8176
    @auclpg8176 4 года назад

    Hi
    And again a Great Video.
    But i have a question and Maybe you can help me.
    How i can Add a picture in the background and have the switch buttons on the picture?
    Cu Christian

    • @robojax
      @robojax  4 года назад +1

      Hi, your question is on HTML . Search google on that and you will get tones of examples. Then use that code with the code I have explained. Do not skip explanation of the code. Watch it more than one time to know how it work in order to customize it.

  • @yogeshitaliya473
    @yogeshitaliya473 4 года назад

    Nice one

  • @rafdtmtm7981
    @rafdtmtm7981 4 года назад

    شكرا لمجهودك نريد كلامك مترجم للعربيه لتعم الفائدة والاستفادة

    • @robojax
      @robojax  4 года назад

      مرحبا بك. لقد بدأت في ترجمة مقاطع الفيديو الخاصة بي إلى اللغات الرئيسية بما في ذلك اللغة العربية. إليك مثال على ذلك ruclips.net/video/Q9aBI4ELKC4/видео.html

  • @muratturel
    @muratturel 4 года назад

    The code causes a lot of missing terminating " character and stray \ error messages. Your code in the film is very different than the one we can copy and paste....

    • @robojax
      @robojax  4 года назад

      Thank you for letting me know. The page is not displayed. I have added link to the actual file. Just above the code.

  • @mvenkatesan9937
    @mvenkatesan9937 4 года назад

    Salaam alaikum sit, please make the video for lighting control system with schedule

    • @robojax
      @robojax  4 года назад +1

      Walaikum salaam, very interesting project. I will put on my list and perhaps write library for this.

    • @mvenkatesan9937
      @mvenkatesan9937 4 года назад

      @@robojax Thank you for your reply sir

    • @robojax
      @robojax  4 года назад

      you are welcome.

  • @joshitoshi9835
    @joshitoshi9835 4 года назад

    how many channel relays can be controlled with single nodemcu board?

    • @robojax
      @robojax  4 года назад +1

      just count the GPIO pins and that many. or you can use I/O expander to ad 16 more.

    • @joshitoshi9835
      @joshitoshi9835 4 года назад

      @@robojax Thanks for swift reply, but i asked bcoz i came to know that all GPIO pins cant be used for outputs. So generally how much GPIOs can be used? I have seen projects controlling 4ch relays directly from Nodemcu. Beyond this number i found people are using shift registers. So my qudestion remains the same how many relays can be controlled directly from nodemcu without using other tricks.

    • @robojax
      @robojax  4 года назад

      I don't remember how many GPIO can be used. I made video for that and the link is in the description.

  • @tonypagett7495
    @tonypagett7495 2 года назад

    When I try to compile the code I get the error: redefinition of 'const uint8_t D0' If I comment out this line then it fails on the next line and so on

    • @robojax
      @robojax  2 года назад

      so you are using a library that has those variable. just comment them out and the program should work. comment all of them at the top of the code.

    • @tonypagett7495
      @tonypagett7495 2 года назад

      @@robojax thank you

  • @abhi77998
    @abhi77998 3 года назад

    Can you put a video regarding control relay with mit app inventor app using Arduino Uno + esp8266 + 4 channel relay ??

    • @robojax
      @robojax  3 года назад +1

      never heard of "mit app". There are millions of apps.

    • @abhi77998
      @abhi77998 3 года назад +1

      Hello sir ..,I mean mobile application that making from MIT app inventor (block coding)

    • @abhi77998
      @abhi77998 3 года назад +1

      Because I want to make something with that. , But I don't know it's corresponding Arduino and esp codes ., As a subscriber / student I can make my dream things with the help of your lovely videos/teaching. Thank you..

    • @robojax
      @robojax  3 года назад +1

      I've never used any app with Arduino except Bluetooth serial. Somehow I feel it is waste of time to use external app. As you can see it works without any other appl.

    • @abhi77998
      @abhi77998 3 года назад

      Otherwise can you make a video with Arduino nano + esp 8266+ 4 channel relay control using a mobile ??

  • @augustosantos4332
    @augustosantos4332 4 года назад

    Shoooow

  • @Jiggiedeleon
    @Jiggiedeleon Год назад

    I will subscribe if you use MIT app inventor for this project!

    • @robojax
      @robojax  Год назад

      lol. Every day 100s of people subscribe and some unsubscribe. Never used that app.

  • @LP-yd4ww
    @LP-yd4ww 4 года назад

    Can you write a link to a real code from your site in your videos?

    • @robojax
      @robojax  4 года назад

      sorry did not understand. the code is "real". you can download (not copy) by clicking on "download" link at the top of the code and bottom of the page.

  • @bhootpurvmanusya
    @bhootpurvmanusya 8 месяцев назад

    where is its vin pin?

  • @EM-cd2sk
    @EM-cd2sk 3 года назад

    How in stall in my phone ?

    • @robojax
      @robojax  3 года назад

      Why install and make your phone to carry something extra? Just launched the browser and use it

  • @rodrigodagaz6323
    @rodrigodagaz6323 3 года назад

    the link is broken

    • @robojax
      @robojax  3 года назад

      we are sorry, today we are migrating to a new system and many links are dead. I've just fixed this link. try it and if you faced problem, try it later today or tomorrow. We do our best to fix this issue.

  • @صلوعالنبيالحمدلله
    @صلوعالنبيالحمدلله 2 года назад

    مرحبا لقد اشتركت بقناتك للتو
    انها مفيده جدا
    واريد منك مساعدتي ببرمجه اردرينو wifi