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

Поділитися
Вставка
  • Опубліковано 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/
    UA-cam:
    ua-cam.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.

КОМЕНТАРІ • 163

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

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

    Super weiter so damit hab ich es auch geschaft.

  •  2 роки тому

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

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

    Thanks very much, this is the best !

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

  • @praveendehari
    @praveendehari 28 днів тому

    thanks

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

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

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

  • @venkatrockzz9587
    @venkatrockzz9587 7 місяців тому +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

  • @user-ic3wm3pb2m
    @user-ic3wm3pb2m Рік тому

    Thank you very much.

  • @ducducdientu
    @ducducdientu 2 роки тому

    Thank you 🥰

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

    Nice tutorial bro👌

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

    Superb 👍

  • @emilcost8613
    @emilcost8613 4 місяці тому

    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

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

    how ohm resistor shld we use?

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

  • @BFAO_Vishnusai-uz3be
    @BFAO_Vishnusai-uz3be Рік тому

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

  • @gamewithz.k
    @gamewithz.k 4 місяці тому

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

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

    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.

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

    What power supply did you used?

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

    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.

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

    what you use for the power supply plug 3pin?

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

      which connector you are talking about?

  • @basiceducation1131
    @basiceducation1131 Місяць тому +1

    thank you working code

    • @Abidali-qi3xj
      @Abidali-qi3xj Місяць тому +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

  • @jayanthjayan3498
    @jayanthjayan3498 7 місяців тому

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

  • @subarutan3862
    @subarutan3862 2 роки тому

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

  • @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 роки тому

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

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

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

  • @swabiromar1243
    @swabiromar1243 4 місяці тому

    Where can i find the program

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

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

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

  • @ashwinibalichakra6065
    @ashwinibalichakra6065 2 роки тому

    Including PCB board print

  • @pewpew_02
    @pewpew_02 Місяць тому +1

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

    • @Abidali-qi3xj
      @Abidali-qi3xj Місяць тому

      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

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

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

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

    what about resistor you have connected

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

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

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

  • @PP-yg6ll
    @PP-yg6ll 2 роки тому

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

    • @AhmadLogs
      @AhmadLogs  2 роки тому

      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 ?

  • @wcrwukatni
    @wcrwukatni 8 місяців тому

    Text section exceeds available space in board

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

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

    you know the relays is OFF when lights is ON?

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

  • @nilabnath6318
    @nilabnath6318 27 днів тому

    whhere is the code

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

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

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

    Gives an error message signal killed.

  • @ashwinibalichakra6065
    @ashwinibalichakra6065 2 роки тому

    How much it will cost for full module sir?

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

  • @BFAO_Vishnusai-uz3be
    @BFAO_Vishnusai-uz3be Рік тому

    Hii sir

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

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

  • @akhtar.kamran.auto-electrician
    @akhtar.kamran.auto-electrician 2 роки тому

    Sir. 8 channel relay home automation on video. Plz

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

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

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

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

    Sir ji add fan speed

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

  • @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 6 місяців тому

    Not working

  • @rujhannalsor3638
    @rujhannalsor3638 21 день тому

    not so details that step

  • @rheey88
    @rheey88 10 місяців тому

    blinktimer does not name a type

  • @trisaiyan8sv145
    @trisaiyan8sv145 2 місяці тому +1

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

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

    My esp offline, whats wrong?

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

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

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

    help me bro 😊😊

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

    Offline no working only working online

    • @Abidali-qi3xj
      @Abidali-qi3xj Місяць тому

      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 2 роки тому

    Relay isn't working with blynk

    • @AhmadLogs
      @AhmadLogs  2 роки тому

      look at the serial monitor to find the issue

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