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

Sdílet
Vložit
  • čas přidán 29. 09. 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/
    CZcams:
    czcams.com/users/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.

Komentáře • 162

  • @venkataramanac5983
    @venkataramanac5983 Před 2 lety +1

    Is it work in offline mode?

    • @AhmadLogs
      @AhmadLogs  Před 2 lety +1

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

    • @commandolee3608
      @commandolee3608 Před 2 lety

      @@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  Před 2 lety +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 Před 2 lety

      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 Před 2 lety

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

  • @andreasteibtner8161
    @andreasteibtner8161 Před rokem

    Super weiter so damit hab ich es auch geschaft.

  • @draganmihai4897
    @draganmihai4897 Před rokem

    Thanks very much, this is the best !

  • @praveendehari
    @praveendehari Před 3 dny

    thanks

  •  Před 2 lety

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

  • @venkatrockzz9587
    @venkatrockzz9587 Před 6 měsíci +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

  • @emilcost8613
    @emilcost8613 Před 3 měsíci

    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!

  • @varadwavare9694
    @varadwavare9694 Před 9 měsíci

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

  • @ducducdientu
    @ducducdientu Před 2 lety

    Thank you 🥰

  • @davydbar
    @davydbar Před 2 lety

    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

  • @user-ic3wm3pb2m
    @user-ic3wm3pb2m Před rokem

    Thank you very much.

  • @BFAO_Vishnusai-uz3be
    @BFAO_Vishnusai-uz3be Před rokem

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

  • @phonksr
    @phonksr Před rokem

    thank you very much

  • @RandoniumTJ
    @RandoniumTJ Před rokem

    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

  • @learnpoint9490
    @learnpoint9490 Před 8 měsíci

    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.

  • @alaswdi
    @alaswdi Před rokem

    Nice tutorial bro👌

  • @yashwobantasinghnongmaithe5292

    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.

  • @jayanthjayan3498
    @jayanthjayan3498 Před 6 měsíci

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

  • @nithingowda295
    @nithingowda295 Před rokem

    how ohm resistor shld we use?

  • @harsha8157
    @harsha8157 Před rokem

    Superb 👍

  • @basiceducation1131
    @basiceducation1131 Před 24 dny +1

    thank you working code

    • @Abidali-qi3xj
      @Abidali-qi3xj Před 20 dny +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

  • @rayven1737
    @rayven1737 Před 2 měsíci

    What power supply did you used?

  • @pewpew_02
    @pewpew_02 Před 20 dny +1

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

    • @Abidali-qi3xj
      @Abidali-qi3xj Před 20 dny

      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

  • @tzampini
    @tzampini Před 2 lety

    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  Před 2 lety +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 Před 2 lety

      @@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  Před 2 lety

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

  • @gamewithz.k
    @gamewithz.k Před 3 měsíci

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

  • @Kai-dg4go
    @Kai-dg4go Před 2 lety

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

  • @janakpatel137
    @janakpatel137 Před 2 lety

    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  Před 2 lety

      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.

  • @akramhadi6644
    @akramhadi6644 Před rokem

    what you use for the power supply plug 3pin?

    • @AhmadLogs
      @AhmadLogs  Před rokem

      which connector you are talking about?

  • @cartoonanime8894
    @cartoonanime8894 Před rokem

    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?

  • @mdseraj317
    @mdseraj317 Před rokem

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

  • @subarutan3862
    @subarutan3862 Před 2 lety

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

  • @ashwinibalichakra6065
    @ashwinibalichakra6065 Před 2 lety

    Including PCB board print

  • @karanjadhav8617
    @karanjadhav8617 Před 2 lety +1

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

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

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

  • @swabiromar1243
    @swabiromar1243 Před 3 měsíci

    Where can i find the program

  • @cartoonanime8894
    @cartoonanime8894 Před rokem +1

    what about resistor you have connected

  • @sondiphalder6414
    @sondiphalder6414 Před rokem

    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😇

  • @harnowowiasto1381
    @harnowowiasto1381 Před 2 lety

    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  Před 2 lety

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

  • @PP-yg6ll
    @PP-yg6ll Před rokem

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

    • @AhmadLogs
      @AhmadLogs  Před rokem

      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

  • @Kai-dg4go
    @Kai-dg4go Před 2 lety

    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  Před 2 lety +1

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

  • @wcrwukatni
    @wcrwukatni Před 8 měsíci

    Text section exceeds available space in board

  • @s.husain6125
    @s.husain6125 Před 2 lety

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

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      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 Před 2 lety

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

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      @@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 Před 2 lety

      @@AhmadLogs ok sir thank you so much

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      @@s.husain6125 so nice of you

  • @ameenenterprise5869
    @ameenenterprise5869 Před 2 lety

    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  Před 2 lety

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

  • @janakpatel137
    @janakpatel137 Před 2 lety

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

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

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

  • @Charles-lt9rr
    @Charles-lt9rr Před 2 lety

    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 Před 2 lety

      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  Před 2 lety

      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.

  • @varunraghuwanshi3177
    @varunraghuwanshi3177 Před rokem

    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  Před rokem

      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.

  • @pqrst931
    @pqrst931 Před rokem

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

  • @nilabnath6318
    @nilabnath6318 Před 2 dny

    whhere is the code

  • @hassanahmad9597
    @hassanahmad9597 Před rokem

    you know the relays is OFF when lights is ON?

  • @s.v9748
    @s.v9748 Před 2 lety

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

  • @danishbhat5858
    @danishbhat5858 Před rokem

    Gives an error message signal killed.

  • @rabeeusman520
    @rabeeusman520 Před rokem

    I want to use 8 channel relay module please guide me

    • @AhmadLogs
      @AhmadLogs  Před rokem

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

    • @rabeeusman520
      @rabeeusman520 Před rokem

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

    • @AhmadLogs
      @AhmadLogs  Před rokem

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

  • @trisaiyan8sv145
    @trisaiyan8sv145 Před měsícem +1

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

  • @mohammax2
    @mohammax2 Před 2 lety

    how can i find #include and #include

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

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

  • @ponnalasandeep5389
    @ponnalasandeep5389 Před 2 lety

    Can i make with the esp8266

    • @AhmadLogs
      @AhmadLogs  Před 2 lety +1

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

    • @ponnalasandeep5389
      @ponnalasandeep5389 Před 2 lety

      @@AhmadLogs i will make

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      @@ponnalasandeep5389 good

  • @BelialVicky
    @BelialVicky Před měsícem

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

  • @ezeoluchukwu5104
    @ezeoluchukwu5104 Před 2 lety +1

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

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      I have added it in the description now. please check

    • @ezeoluchukwu5104
      @ezeoluchukwu5104 Před 2 lety

      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  Před 2 lety

      @@ezeoluchukwu5104 yes, you can use

  • @BFAO_Vishnusai-uz3be
    @BFAO_Vishnusai-uz3be Před rokem

    Hii sir

  • @akhtar.kamran.auto-electrician

    Sir. 8 channel relay home automation on video. Plz

  • @unbreakabledesire14
    @unbreakabledesire14 Před 2 lety

    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  Před 2 lety

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

  • @ashwinibalichakra6065
    @ashwinibalichakra6065 Před 2 lety

    How much it will cost for full module sir?

  • @HomeAutomationTECH
    @HomeAutomationTECH Před rokem

    Sir ji add fan speed

  • @coolshah12345
    @coolshah12345 Před 5 měsíci

    Not working

  • @SabirHussain-yy9zi
    @SabirHussain-yy9zi Před 2 lety

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

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      then you flash your esp32

    • @subarutan3862
      @subarutan3862 Před 2 lety

      @@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  Před 2 lety

      @@subarutan3862 I will make a video on it soon

    • @subarutan3862
      @subarutan3862 Před 2 lety

      @@AhmadLogs thanks sir🙂

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      @@subarutan3862 so nice of you

  • @arsalsolutions
    @arsalsolutions Před 2 lety

    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  Před 2 lety

      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 Před 2 lety

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

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      @@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 Před 2 lety

      @@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  Před 2 lety

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

  • @loke50076
    @loke50076 Před 2 lety

    Not conecting esp to blynk

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

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

  • @ashwinibalichakra6065
    @ashwinibalichakra6065 Před 2 lety

    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?

  • @rheey88
    @rheey88 Před 9 měsíci

    blinktimer does not name a type

  • @catursubagyo360
    @catursubagyo360 Před rokem

    My esp offline, whats wrong?

  • @janakpatel137
    @janakpatel137 Před 2 lety

    This single code is not working perfectly it is mall operated

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

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

  • @tanvirahmed6223
    @tanvirahmed6223 Před 8 měsíci

    help me bro 😊😊

  • @prashanthkulal3037
    @prashanthkulal3037 Před měsícem

    Offline no working only working online

    • @Abidali-qi3xj
      @Abidali-qi3xj Před 20 dny

      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

  • @Electroxadict
    @Electroxadict Před 2 lety

    Relay isn't working with blynk

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      look at the serial monitor to find the issue

  • @muhdnajhan886
    @muhdnajhan886 Před rokem

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