Home Automation System using ESP32 and Blynk 2.0 | Blynk ESP32 Relay Control

Поделиться
HTML-код
  • Опубликовано: 29 сен 2021
  • #ESP32 #Blynk #HomeAutomation
    In this video, I am going to make a Smart home automation project, using ESP32 and new Blynk 2.0. By using this project, you can control the home appliances using Blynk Web Dashbaord. As well as, you can also control the relays using Blynk IOT App. I have also added the Push Buttons feature, to control the relay module manually. You can also check the real time status of each relay, on Blynk App, and Blynk web dashboard.
    Parts:
    1. ESP32 - amzn.to/3YCq2dS
    2. Relay Module 4 channel - amzn.to/3YJXa3w
    3. Breadboard - amzn.to/3ysOvHX
    4. Jumper Wires - amzn.to/3YRafs5
    --------------------------------------------------------------------------------------------------------------------
    Useful Video Links
    --------------------------------------------------------------------------------------------------------------------
    Part 2: ESP32 Blynk 2.0
    • ESP32 Blynk 2.0 | ESP3...
    ESP32 GSM GPRS Based GPS Tracker
    • ESP32 SIM800L Blynk | ...
    GPS Tracker With NodeMCU Esp8266
    • GPS Tracker With NodeM...
    --------------------------------------------------------------------------------------------------------------------
    Social Media Links
    --------------------------------------------------------------------------------------------------------------------
    GitHub:
    github.com/ahmadlogs/
    RUclips:
    ruclips.net/user/ahmadlogs?sub...
    --------------------------------------------------------------------------------------------------------------------
    Download Code
    --------------------------------------------------------------------------------------------------------------------
    github.com/ahmadlogs/esp32/tr...
    --------------------------------------------------------------------------------------------------------------------
    Disclaimer
    --------------------------------------------------------------------------------------------------------------------
    Disclaimer: All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.
    Warning: I will use High Voltages which if incorrectly or improperly used could result in serious injuries or death. So be careful of what you are doing because I will take no responsibility for any of your actions.

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

  • @venkataramanac5983
    @venkataramanac5983 2 года назад +1

    Is it work in offline mode?

    • @AhmadLogs
      @AhmadLogs  2 года назад +1

      yes, by using push buttons you can control it without internet.

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

      @@AhmadLogs , Good morning boss, u are very great for the great tutorial... Help ! I used this same method for nodemcu, but the blynk app takes 5 seconds to turn the relay or off ... What can I do plz...?

    • @AhmadLogs
      @AhmadLogs  2 года назад +1

      @@commandolee3608 have you used pull-up resistor with the push buttons?
      pull-up resistors are required if you made the project on breadboard.

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

      Yes boss, it's working perfectly with the push button... But sometimes it will work perfectly online with the blynk app, while after some minutes... It starts delaying for 6 seconds before turning on , also takes 6 or 8 seconds to turn off too.. But Ahmad Logs(Boss) said I should try put pull-up resistor, which I never try... But I will...& get back to the platform ..

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

      @@AhmadLogs I didn't make it on breadboard, I connected it directly according to the implementation in the tutorial....

  • @praveendehari
    @praveendehari День назад

    thanks

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

    Super weiter so damit hab ich es auch geschaft.

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

    Gracias por enseñar como se realiza el proyecto en Blink!! Había probado algo similar con Arduino IOT pero mi Esp32 se traba, no se conecta o se cuelga

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

    Thanks very much, this is the best !

  • @venkatrockzz9587
    @venkatrockzz9587 6 месяцев назад +1

    Thanks 🙏 ur warming instructions,
    Now i have issue with relay intial works that means when i switch on the module relay on and NO turn to NC , but i need initially should not relay on .kindly reply me

  •  2 года назад

    Thank you friend for sharing, congrats! You have gained a new subscriber to your channel

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

    Thank you 🥰

  • @user-ic3wm3pb2m
    @user-ic3wm3pb2m Год назад

    Thank you very much.

  • @varadwavare9694
    @varadwavare9694 9 месяцев назад

    Which board and port should we choose? Esp32 dev module or esp32 fm devkit

  • @emilcost8613
    @emilcost8613 3 месяца назад

    How do I connect the power to the the esp32 if I use the 5 volt pin as VCC? Currently, I am using the Vin pin as 5 volt power to the esp32. If I use the 3.3V pin as power input, then I think I will not get the 5 volts to be present on the Vin pin? Where do I supply power to the esp32 once I disconnect the USB from the computer? Thanks!

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

    thank you very much

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

    Nice tutorial bro👌

  • @basiceducation1131
    @basiceducation1131 23 дня назад +1

    thank you working code

    • @Abidali-qi3xj
      @Abidali-qi3xj 18 дней назад +1

      I have this project with complete documentation.
      Features are
      1. Door lock and unlock through fingerprint.
      2. Water pump control system
      3. Pir motion with lighting
      4. Gas detection and exhaust system.
      5. All status are shown on blynk iot app

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

    Superb 👍

  • @BFAO_Vishnusai-uz3be
    @BFAO_Vishnusai-uz3be Год назад

    Hi sir in esp32 doest glow the blue flash button in esp32 board

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

    Very nice video. If you have the time, I’d like to see a video showing how to enter WiFi credentials via the mobile app, instead of embedding them in the ESP32 firmware. If I understand it correctly, the new Blynk 2.0 allows you to do this. Thank you!

    • @AhmadLogs
      @AhmadLogs  2 года назад +1

      yes, I know about this feature very well. I have also created the code for OTA with blynk 2.0. I have stuck and trying to figure out the issue

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

      @@AhmadLogs yes! OTA is another nice feature. If you can figure out the issues, and make a step by step video, I think it would be very popular. I have not found a good video about these features yet.

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

      @@tzampini you are right. I have also tried different tutorials on blynk 2.0 OTA but unfortunately no success. I have also reached blynk forum for this. but did not find the solution. that's why my videos does not have this great feature.
      I afraid if I will get the solution in the future.

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

    while choosing data stream in the mobile app, it is saying there is no supported datastream. It is also saying that i dont have pemission to access this product. please help

  • @gamewithz.k
    @gamewithz.k 3 месяца назад

    nice video my question is can we add more relay modules to the same esp 32 and how many let me know

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

    Isir I have a new esp32 wroom-32 board,in the backside it's written ESP32S.i will try to program on arduinodroid but error is on board selection.i don't understand which board i select.kindly help me I have no computer 🖥️.I try it my vivo yo2t mobile phone.

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

    how ohm resistor shld we use?

  • @yashwobantasinghnongmaithe5292
    @yashwobantasinghnongmaithe5292 7 месяцев назад

    Sir I make the same project using esp32 and 4 channel relay. The project works fine after uploading but after power interruption or when reset button is press it doesn't work and there is a single led glowing in dim light on the relay. Please help me how to solve this problem.

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

    Including PCB board print

  • @rayven1737
    @rayven1737 2 месяца назад

    What power supply did you used?

  • @jayanthjayan3498
    @jayanthjayan3498 6 месяцев назад

    Sir in my case the relay 1 gets toggling ON and OFF automatically with delay 0.5 sec can U plz help

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

    i have to turn on my mobile hots pot wifi? to control from mobile
    and if i have only 2 channel relay by removing all other extra 2 channel code will it run?

  • @pewpew_02
    @pewpew_02 18 дней назад +1

    Hello. May I know what software you using to design circuit diagram as shown in this video thumbnail?

    • @Abidali-qi3xj
      @Abidali-qi3xj 18 дней назад

      I have this project with complete documentation.
      Features are
      1. Door lock and unlock through fingerprint.
      2. Water pump control system
      3. Pir motion with lighting
      4. Gas detection and exhaust system.
      5. All status are shown on blynk iot app

  • @Kai-dg4go
    @Kai-dg4go 2 года назад

    もメンタルSwitchはregisterを入れるのですか?
    いれるのなら抵抗値を教えてください。

  • @swabiromar1243
    @swabiromar1243 3 месяца назад

    Where can i find the program

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

    i used your but with switch in hardware but it is mall operate in both offline and online mode so my question is internet speed is effect the operation of project?

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

      yes, internet speed effect the operation. slow internet gives you slow response.
      which switch you are using?
      I have tested it and it is working fine.
      please give me some more details. so, I could figure out the issue.

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

    Sir do your ESP32 auto connect to wifi when for example there is power interruption?

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

    what you use for the power supply plug 3pin?

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

      which connector you are talking about?

  • @wcrwukatni
    @wcrwukatni 7 месяцев назад

    Text section exceeds available space in board

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

    I can't understand the button conation.how do you understand which pin connect the button line that part i am unclear. Plz help me sir to understand how is that connection.
    Thank you😇

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

    Sum time server problem den sistem is not working what will do

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

    can i make this project usinh app blynk version 1? what should i need to change if i use app blynk version 1

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

      yes. but this project is not compatible with blynk version 1 app.
      I think, you need to re write all the code.

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

    i am ameen from pakistan i have seen your NODE MCU ESP32 video. In which you have controlled the electric power. I have a problem. I would like to have a 3 stepper motor. clock and anti clock ways. Can you please tell me the circuit?

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

      you can rotate stepper motor in any direction and speed using code.

  • @Charles-lt9rr
    @Charles-lt9rr 2 года назад

    Thanks My dearest brother for this toturial. I am very grateful. Please, I want to ask you one thing. Can you make another tutorial where the data from the MySQL database will be displaying in the AR. I mean that MySQL data will be displaying instead of the temperature and humidity data. Please, I will like you to help me on this project. I have searched everywhere in the internet and I didn't see such toturial. Thanks My dearest brother

    • @Charles-lt9rr
      @Charles-lt9rr 2 года назад

      My dearest brother,I appreciate your understanding, concern and love. The MySQL database I will like you to make is the one that can store people's name and their phone numbers. It Will run in a local MySQL database server ( e.g: Awebserver ) which we can install in Android phone and the data will be fetch in a given interval and the data will be posted to mqtt topic and from mqtt to the AR. Please, I will be very happy if you can help us to accomplish this project. Thanks once again for your effort in teaching us many things. I am very grateful. Please, I am waiting for your reply.

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

      thanks you so much. the project you are talking about is very complex because it required knowledge about database programming, android programming, mqtt, communication. it is not an easy project. It will take lot of to complete.
      the main issue with this project is. it might be used illegally, for stealing someone's phone data.

  • @Kai-dg4go
    @Kai-dg4go 2 года назад

    hello.
    I get an error with char ssid.
    Do you enter your smartphone's Bluetooth ID / password for char ssid and char pass?

    • @AhmadLogs
      @AhmadLogs  2 года назад +1

      these are wifi credentials. you will have to enter your wifi router or mobile wifi hotspot ssid and pass here.

  • @karanjadhav8617
    @karanjadhav8617 2 года назад +1

    What we have to add in this code to control 8 relays ?

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

      there are so many changes are required in the code. but unfortunately, I am unable to discus here.

  • @s.husain6125
    @s.husain6125 2 года назад

    Very gud project sir please make my requested video on multiple sensors using sim800 with firebase. Thanx in advance

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

      google has updated its security certificate to (SSL/TLS 1.2). The main issue is that the sim800l has (SSL/TLS 1.0) and it is not supports by Firebase. Thats why the firebase sensors project is pending.

    • @s.husain6125
      @s.husain6125 2 года назад

      @@AhmadLogs ohh.....what will be solution sir

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

      @@s.husain6125 I think, I need to test it with 4g gsm module. but unfortunately, I don't have 4g module. and It will take some time to buy 4g gsm module. that's why you need to wait

    • @s.husain6125
      @s.husain6125 2 года назад

      @@AhmadLogs ok sir thank you so much

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

      @@s.husain6125 so nice of you

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

    what about resistor you have connected

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

      just for noise reduction.

  • @PP-yg6ll
    @PP-yg6ll Год назад

    why when i power on esp32 my all relay on, after connect to blynk its off and work correct

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

      this is due to I have connected the AC bulbs to the Normally Close and COM pins of the relay. if you change it Normally Close to Normally Open then the issue will be solved

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

    sir instead of push button i want to use switch than this code is ok or not?

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

      this code will not work with ON OFF switch.
      you need some library for your switch. please check AceButton library.

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

    Can i use esp32 cam model instead of esp32 dev kit ?

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

      yes, just give it a try.

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

    When I turn on my relay led is on and off but the bulb continuously on and i m also not getting any switching sound from relay why pls help me

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

      Your project might not be working properly because the power supply you are using is not providing enough power to the relays. You can try connecting the 5V power source directly to the relays to fix the problem.

  • @s.v9748
    @s.v9748 2 года назад

    Brother... it's giving error
    BlynkSimpleEsp32.h :no such file or directory
    How to resolve it

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

      install blynk library.

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

    you know the relays is OFF when lights is ON?

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

    I want to use 8 channel relay module please guide me

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

      it required to update both the code as well as blynk setup

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

      @@AhmadLogs how can I do that please guide me?

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

      @@rabeeusman520 define four more relay pins in the top of the setup function. then set these pins to output in the setup function. then in the loop function you will have to turn on or off using digitalWrite() function. you also need to add four push buttons also define the pins for the pushbuttons in the code. you need 16 gpio for your project. 8 gpio for relay and 8 gpio for push buttons

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

    how can i find #include and #include

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

      just install the esp8266 board package from Tools menu of arduino ide

  • @akhtar.kamran.auto-electrician
    @akhtar.kamran.auto-electrician 2 года назад

    Sir. 8 channel relay home automation on video. Plz

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

    Gives an error message signal killed.

  • @BFAO_Vishnusai-uz3be
    @BFAO_Vishnusai-uz3be Год назад

    Hii sir

  • @BelialVicky
    @BelialVicky Месяц назад

    sab thik he par agar is project ko apply kare to manual switch jo ghar ke board pe laga he usko disable rakhna padega yaafir Relay ko , kyunki dono eksath kaam nehi karta... kyunki agar karta to koyi 1 youtuber uspe vi video banata... sabke sab bas table pe lamp lake use bluetooth se on off karke dikha rahehe...r a vai table pe rakhke ph se nehi calana he..... diwar pe ,ceiling pe jo fan he use bed se baithe baithe ph se calana he, to is pure setup ko ghar ke switch board se kaise jode taki bluetooth wala system vi work kare or manual switch board vi....

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

    Can i make with the esp8266

    • @AhmadLogs
      @AhmadLogs  2 года назад +1

      yes, but as I know, you need to made some changes in the code. try to compile it using esp8266.

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

      @@AhmadLogs i will make

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

      @@ponnalasandeep5389 good

  • @ezeoluchukwu5104
    @ezeoluchukwu5104 2 года назад +1

    good job bro, But no link for the code, pls can u provide link for download

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

      I have added it in the description now. please check

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

      Thanks for ur quick reply. I hope the resistors are pull-ups.
      Can i use other pins of ESP32 gpio as inputs or outputs without problems.

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

      @@ezeoluchukwu5104 yes, you can use

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

    Sir ji add fan speed

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

    How much it will cost for full module sir?

  • @nilabnath6318
    @nilabnath6318 15 часов назад

    whhere is the code

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

    We are doing same project in our college and we gave outside for module but he is cheating us by telling 20000 cost for this module? Is this true?

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

    Bhaiya mera Manual switch bina hotspot connect kiye kaam nhi kr raha hai ek baar hotspot connect krne ke baad switch kaam kr raha or hotspot band kr raha phir bhi switch kaam kr raha lekin stating me mujhe ek baar hotspot connect krna pad raha phir switch kaam kr raha , Mtlb switch ko Initialise krne ke liye hotspot connect krna pad raha jo ki acha nhi hai if phone nhi raha to switch kaam nhi krega PLZZ SOLVE THIS PROBLEM..🙏🙏

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

      isko kaam karna chahiye. I will check in the code.

  • @SabirHussain-yy9zi
    @SabirHussain-yy9zi 2 года назад

    Sir my esp32 blue led is blinking but not create wifi plz help??

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

      then you flash your esp32

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

      @@AhmadLogs sir how to flash ESP32? And can you help me also to turn on the built in blue led in ESP32 if it is connected in wifi thank you sir

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

      @@subarutan3862 I will make a video on it soon

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

      @@AhmadLogs thanks sir🙂

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

      @@subarutan3862 so nice of you

  • @rheey88
    @rheey88 9 месяцев назад

    blinktimer does not name a type

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

    Brother plz reply dain facebook py moje 1 code main changes required hai.payment k liye datail b dain jahan send karni hai

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

      Bro, unfortunately, I have very little time now a days. that's why I am unable to reply on other platforms. You might try freelancer web portal for your code.

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

      @@AhmadLogs ap k e code main kuch changes chye freelancer py search kiya but koi ni milaa

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

      @@arsalsolutions I have also stopped providing freelancer services, a long time ago due to shortage of time.
      by the way, what change you are required and in which code?

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

      @@AhmadLogs brother main ne project ko battery py on rakha hoya but moje sath main input py kuch lgna hai agar bijli ho to relays control hon agar bijli na ho to kuch b control na aur har sms k reply main msg received ho "Electricity unavailable" aur koi b relay operate na ho
      Light ane aur jane ka b msg aye

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

      @@arsalsolutions hmmmm. voltage sensor is required.
      this project is possible to make.
      How much project is done. and what do you want from me.
      I think meri ap sy pehly b baat hoi thi. "tube well control with electricity status" k topic par?

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

    My esp offline, whats wrong?

  • @trisaiyan8sv145
    @trisaiyan8sv145 Месяц назад +1

    mấy thằng vô xem vì làm đồ án 😂👈

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

    Not conecting esp to blynk

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

      have you made any change in the code?
      have you enter the blynk credentials in the code?

  • @coolshah12345
    @coolshah12345 5 месяцев назад

    Not working

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

    This single code is not working perfectly it is mall operated

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

      just tell me the issue. so that I can solve it

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

    help me bro 😊😊

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

    Relay isn't working with blynk

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

      look at the serial monitor to find the issue

  • @prashanthkulal3037
    @prashanthkulal3037 29 дней назад

    Offline no working only working online

    • @Abidali-qi3xj
      @Abidali-qi3xj 18 дней назад

      I have this project with complete documentation.
      Features are
      1. Door lock and unlock through fingerprint.
      2. Water pump control system
      3. Pir motion with lighting
      4. Gas detection and exhaust system.
      5. All status are shown on blynk iot app

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

    Bro can i have your circuit picture on real life because the switch is not useful . U can email me if u dont mind