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/
    TH-cam:
    th-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.

ความคิดเห็น • 152

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

  • @davydbar
    @davydbar ปีที่แล้ว

    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

  • @venkatrockzz9587
    @venkatrockzz9587 4 หลายเดือนก่อน

    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

  • @varadwavare9694
    @varadwavare9694 7 หลายเดือนก่อน

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

  • @andreasteibtner8161
    @andreasteibtner8161 ปีที่แล้ว

    Super weiter so damit hab ich es auch geschaft.

  • @gamewithz.k
    @gamewithz.k หลายเดือนก่อน

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

  • @BFAO_Vishnusai-uz3be
    @BFAO_Vishnusai-uz3be ปีที่แล้ว

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

  • @rayven1737
    @rayven1737 26 วันที่ผ่านมา

    What power supply did you used?

  •  2 ปีที่แล้ว

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

    • @AhmadLogs
      @AhmadLogs  2 ปีที่แล้ว

      Thanks and welcome

  • @emilcost8613
    @emilcost8613 หลายเดือนก่อน

    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!

  • @draganmihai4897
    @draganmihai4897 11 หลายเดือนก่อน

    Thanks very much, this is the best !

    • @AhmadLogs
      @AhmadLogs  11 หลายเดือนก่อน

      thanks

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

  • @yashwobantasinghnongmaithe5292
    @yashwobantasinghnongmaithe5292 5 หลายเดือนก่อน

    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 4 หลายเดือนก่อน

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

  • @learnpoint9490
    @learnpoint9490 6 หลายเดือนก่อน

    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.

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

  • @Kai-dg4go
    @Kai-dg4go 2 ปีที่แล้ว

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

  • @alaswdi
    @alaswdi ปีที่แล้ว

    Nice tutorial bro👌

    • @AhmadLogs
      @AhmadLogs  ปีที่แล้ว

      Glad you liked it

  • @swabiromar1243
    @swabiromar1243 หลายเดือนก่อน

    Where can i find the program

  • @ducducdientu
    @ducducdientu 2 ปีที่แล้ว

    Thank you 🥰

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

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

    • @AhmadLogs
      @AhmadLogs  2 ปีที่แล้ว

      ok. I will try

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

    • @AhmadLogs
      @AhmadLogs  ปีที่แล้ว

      yes the code will run

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

  • @user-ic3wm3pb2m
    @user-ic3wm3pb2m ปีที่แล้ว

    Thank you very much.

  • @akramhadi6644
    @akramhadi6644 ปีที่แล้ว

    what you use for the power supply plug 3pin?

    • @AhmadLogs
      @AhmadLogs  ปีที่แล้ว

      which connector you are talking about?

  • @mdseraj317
    @mdseraj317 10 หลายเดือนก่อน

    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.

  • @phonksr
    @phonksr ปีที่แล้ว

    thank you very much

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

  • @Kai-dg4go
    @Kai-dg4go ปีที่แล้ว

    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  ปีที่แล้ว +1

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

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

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

  • @harsha8157
    @harsha8157 10 หลายเดือนก่อน

    Superb 👍

    • @AhmadLogs
      @AhmadLogs  10 หลายเดือนก่อน

      Thanks 🤗

  • @ashwinibalichakra6065
    @ashwinibalichakra6065 ปีที่แล้ว

    Including PCB board print

  • @cartoonanime8894
    @cartoonanime8894 ปีที่แล้ว +1

    what about resistor you have connected

    • @AhmadLogs
      @AhmadLogs  ปีที่แล้ว

      just for noise reduction.

  • @wcrwukatni
    @wcrwukatni 6 หลายเดือนก่อน

    Text section exceeds available space in board

  • @pqrst931
    @pqrst931 10 หลายเดือนก่อน

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

    • @AhmadLogs
      @AhmadLogs  10 หลายเดือนก่อน

      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.

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

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

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

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

  • @rheey88
    @rheey88 7 หลายเดือนก่อน

    blinktimer does not name a type

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

  • @danishbhat5858
    @danishbhat5858 ปีที่แล้ว

    Gives an error message signal killed.

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

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

  • @ashwinibalichakra6065
    @ashwinibalichakra6065 ปีที่แล้ว

    How much it will cost for full module sir?

    • @AhmadLogs
      @AhmadLogs  ปีที่แล้ว

      3000 to 5000 PKR

  • @ashwinibalichakra6065
    @ashwinibalichakra6065 ปีที่แล้ว

    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?

  • @akhtar.kamran.auto-electrician
    @akhtar.kamran.auto-electrician ปีที่แล้ว

    Sir. 8 channel relay home automation on video. Plz

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

  • @catursubagyo360
    @catursubagyo360 10 หลายเดือนก่อน

    My esp offline, whats wrong?

    • @AhmadLogs
      @AhmadLogs  10 หลายเดือนก่อน

      not sure. give me some more detail

    • @catursubagyo360
      @catursubagyo360 10 หลายเดือนก่อน

      How to get device online?

    • @catursubagyo360
      @catursubagyo360 10 หลายเดือนก่อน

      @@AhmadLogs not conect to cloud

    • @catursubagyo360
      @catursubagyo360 10 หลายเดือนก่อน

      @@AhmadLogs thanks you sir this problem is solved, ssid is wrong.

  • @coolshah12345
    @coolshah12345 3 หลายเดือนก่อน

    Not working

  • @HomeAutomationTECH
    @HomeAutomationTECH ปีที่แล้ว

    Sir ji add fan speed

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

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

  • @BFAO_Vishnusai-uz3be
    @BFAO_Vishnusai-uz3be ปีที่แล้ว

    Hii sir

  • @tanvirahmed6223
    @tanvirahmed6223 6 หลายเดือนก่อน

    help me bro 😊😊

  • @Electroxadict
    @Electroxadict 2 ปีที่แล้ว

    Relay isn't working with blynk

    • @AhmadLogs
      @AhmadLogs  2 ปีที่แล้ว

      look at the serial monitor to find the issue

  • @muhdnajhan886
    @muhdnajhan886 11 หลายเดือนก่อน

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