Home Automation using NodeMCU ESP8266 and Blynk 2.0 with real-time feedback | IoT Projects 2021

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • In this IoT project, I have shown how to make the Home Automation using NodeMCU ESP8266 and Blynk 2.0 to control 4 relays with real-time feedback. For this smart home project, I have used the FREE plan of the new Blynk IoT platform, so you can easily make this simple IoT-based home automation system to control the appliances with WiFi and manual switches.
    $2 for 1-4 Layer PCBs, Get SMT Coupons: jlcpcb.com/RHS
    Download PCB Gerber file for this NodeMCU IoT based home automation project
    drive.google.com/uc?export=do...
    Visit the following website to get electronics components, modules at a very reasonable price
    utsource.net?source=RUclips
    During the Blynk tutorial video, I have covered the following topics:
    00:33 How to control NodeMCU ESP8266 from the New Blynk IoT app.
    01:16 Required Components for this Blynk NodeMCU project.
    01:33 Circuit of the NodeMCU ESP8266 control relay.
    02:54 How to set up NEW Blynk 2.0 Web dashboard for ESP8266.
    06:00 How to set up NEW Blynk IoT App.
    07:26 Program NodeMCU with Arduino IDE.
    08:02 Install New Blynk library in Arduino IDE.
    09:20 Adding WiFi credentials Over Air (OTA)
    10:24 Controlling appliances from Blynk App and switches.
    Required Components for this NodeMCU home automation project
    1. NodeMCU
    2. 4-channel 5V SPDT Relay Module
    3. Push Buttons or Switch
    Amazon India Affiliate links:
    NodeMCU : amzn.to/3fJA4EG
    4-channel 5V Relay Module : amzn.to/2BQ5Y3o
    Amazon United States Affiliate links:
    NodeMCU : amzn.to/2WoR2A2
    4-channel 5V Relay Module : amzn.to/3r2HuJ4
    Required Components for the NodeMCU control Relay Module PCB:
    1. Relays 5v (SPDT) (4 no)
    2. BC547 Transistors (4 no)
    3. PC817 Optocuplors (4 no)
    4. 510-ohm 0.25-watt Resistor (4 no) (R1 -- R4)
    5. 1k 0.25-watt Resistors (5 no) (R5 -- R9)
    6. LED 5-mm (5 no)
    7. 1N4007 Diodes (5 no) (D1 -- D5)
    8. Push Buttons (4 no)
    9. Terminal Connectors
    10. 5V DC supply
    ---------------------------
    ⚠️ This video took a long time to make if you would like to buy me a coffee to say thanks, link below: ☕
    PayPal: paypal.me/sdaspay
    Patreon: / techstudycell
    ---------------------------
    Project on NEW Blynk + ESP8266 + IR + Sensor: • ESP8266 Project using ...
    Download Code for this NodeMCU Blynk smart house automation project from the following article
    iotcircuithub.com/home-automa...
    Create an Account in Blynk Cloud
    blynk.cloud/dashboard/login
    For the ESP32 Blynk 2.0, please refer to the following video
    • Home Automation using ...
    Important points:
    **In code, you have to update only the BLYNK_TEMPLATE_ID & BLYNK_DEVICE_NAME as shown in the video.
    **Keep all the 9 files (.ino & .h) in the same folder.
    **You can only control the appliances if the WiFi is connected.
    **Please take proper safety precautions while working with high voltages.
    During this internet of things tutorial video, I have explained all the steps to configure the new Blynk 2.0 platform for any ESP8266 home automation system. Also explained how to create templates, and add Datastreams (Virtual Pin) in the Blynk IoT cloud account. If the NodeMCU connected with WiFi then you can control the relays from anywhere in the world. And you can also monitor the real-time feedback in the Blynk IoT applications. So with this smart house project, you can convert any appliance to IoT devices and control them through the internet.
    #homeautomation #esp8266 #blynk
    -------------------------------------------------------
    Thanks For Watching...
    ✅ SUBSCRIBE ✅LIKE ✅SHARE ✅ COMMENTS
    Find out more such projects: iotcircuithub.com/
    Facebook: / techstudycell
    Instagram: / techstudycell
    Telegram: t.me/techstudycell/
    -------------------------------------------------------
    -------------------------------------------------------
    WARNING:
    This video is for demonstration and educational purposes only.
    Each demonstration presents risks and hazards that must be fully understood before attempting.
    And should be performed only by professionals
    ------------------------------------------------------
    Other useful IoT projects:
    Latest NodeMCU projects playlist:
    • NodeMCU Projects
    Latest ESP32 projects playlist:
    • ESP32 Projects
    ESP32 Smart Home System with Amazon Alexa app & Manual Switches
    • ESP32 Smart Home Syste...
    WiFi Door Lock using ESP32 CAM & Blynk
    • WiFi Door Lock using E...
  • НаукаНаука

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

  • @TechStudyCell
    @TechStudyCell  2 года назад +11

    ⚠ This video took a long time to make if you would like to buy me a coffee to say thanks, link below: ☕
    PayPal: paypal.me/sdaspay
    Patreon: www.patreon.com/techstudycell

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

      bro agar switch use hi nhi karta hu me to ground ko ground se aur code me kya change karna he fir uspar kuchh video he kya

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

      @@noelinx did it even work ?

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

      @@Shreyassheshu yes

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

      @@noelinx bhai mereko switch nahi chahiye and which things i have to remove in code. My code uploaded correctly and it's showing in alexa and everything but this switch is sick.
      Tell me switch i need to remove. i want it just work online

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

      @@Shreyassheshu to without switch wla code likh Lena bro usme bhi ho jaaega

  • @ArunKumar-ue3jn
    @ArunKumar-ue3jn 2 года назад +2

    You code was amazing just tried with my esp and i really loved it. it was also saved the last state of the relay when power goes down, when the power is back the relay was turned back on. Very Helpful Thank you so much.😍😍

    • @RishiRaj-yy2ye
      @RishiRaj-yy2ye 5 месяцев назад

      Apko code khase mila mere phone me code nahi khul Raha hai can you send it by pasting in this reply

  • @mr.bianchirider8126
    @mr.bianchirider8126 3 года назад +5

    Looking forward to more Blynk 2.0 videos.

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

    Thanks a lot, I met success but had to struggle a bit because the App now has got updated. Moreover I don't have to use the switches/buttons so modified the on value to zero and off value to one and it worked! Looking forward to more such videos from you.

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

    Great video I will build it :-) THX from Hungary

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

    Excellent demo and has me fired up to try.

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

      You can also try latest project with Blynk ESP32

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

    bro i saw several video for making home automation , but after seeing this video i was very happy thank you so much , iam your new subscriber

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

    Nice tutorial and project.you explained almost everything is necessary.thanks for sharing.

  • @CharwinAmper
    @CharwinAmper 3 года назад +2

    Thanks for giving free lessons! helpful as always!

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

    Thanks, it was very usefull for me. Very well exlained.

  • @rameshniroj2225
    @rameshniroj2225 3 года назад +2

    Really nice project

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

    Sir, tech studycell must be among the awarded learning platform in the world, by God's grace it will become one of among 10 in the. I love this platform. If I should have the opportunity to support or contribute to your platform I will, because you deserve a wonderful kudos from the people or Engineering students...

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

    Amazing anh thanks for this video Sir, have a nice day

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

    You are a wonderful guy

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

    Thanks mine is ready.

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

    Thanks for the knowledge sir..

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

    Thank you very much teacher, I was researching for a project like this, and with you I found what I needed, you know how to explain very well and share without egoism, I congratulate you and you have just gained one more subscriber.
    greetings.

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

    Thanks a Ton!

  • @user-xu9rz7he2i
    @user-xu9rz7he2i 3 года назад +1

    Thanks for sharing!

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

    Big thank you.

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

    Very useful. Thanks for sharing

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

    excelent
    grate vedio
    love you bro
    love you

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

    Thanks a lot bro.There is a request to you, please make every video in Hindi also.

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

    thanks bro... thats awsome

  • @pablovillanuevag.9622
    @pablovillanuevag.9622 3 года назад

    Thanks for your useful video

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

    AMAZING SIR 🔥🔥🔥🔥

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

    Thanks Bro It's Working 😘😘

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

    Thank you sir

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

    Thanks a lot for this video sir😄 ! Please make next video on arduino iot cloud with esp32

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

      Okay.

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

      @@TechStudyCell Is it possible to replace NodeMCU ESP8266 with ESP32 for this project ? I want to automate 4 channel using both wifi and bluetooth . Please make a Video regarding this.

  • @electronic7979
    @electronic7979 3 года назад +2

    Nice project

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

    9:17 im getting a problem on the part where you connected the Esp. my Esp is blinking led and is not connecting to the mobile wifi, if says ip configuration failed.

  • @MohamedKamal-ef7nz
    @MohamedKamal-ef7nz 3 года назад +1

    Thank you for video I hope you make a video about esp8266-12E and how to use it instead of node mcu in projects of iot

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

      Try the same code, let me know if you face any issues. You can use D4 instead of SD3 in circuit

    • @MohamedKamal-ef7nz
      @MohamedKamal-ef7nz 3 года назад

      @@TechStudyCell thank you for your interest what I intend that how to connect esp 8266-12e with computer and transfer code to it and use it in iot projects
      Thank you for your patience

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

    Thanks for sharing this video. I would suggest one point here as feedback in real time problem. if we connect the components as per this circuit diagram which cause relay failure and getting application damage because of spontaneously changing the ON/OFF in the relay via mobile app . Better we can have 2 way switches in that having 3 pins for connect power signal and not control signal cables. This is suggestion if we are going this real time scenario at home.

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

      Noted

    • @Jay-ut8li
      @Jay-ut8li 3 года назад

      @@TechStudyCell sir this problem will occur when we use daily at home??

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

    How reset Wi-Fi credentials

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

    Thanks Bro It Work, Keep Making Video🥰🥰
    Btw, How I change the connection of wifi??
    Please tell me😊😊

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

    hi
    i have a 12 volt rely and want to use it for the same project but it needs 12-volt power supply but i don't know how to connect that to rely . its connect to right bottom pin or Center pin. and it still needs GDN or 3-volt pin from esp 8266 or not
    thanks to useant to use

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

    Sir can we use these as smart switch modules?
    I mean I wish to make one to be used as automatic timmer etc
    Like it turns on and off daily at its given time.

  • @ambergupta3323
    @ambergupta3323 11 месяцев назад

    Your video is amazing but I have one doubt.
    Are we supposed to use two way switch or the normal ones?

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

    Your videos are very usefull thanks
    I have two questions
    Is it possible to use blynk notification for more than one sensor alert and
    Second one how can add more than one E-mail to my code and for receiption?
    Thanks for your help

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

    Nice project can I do that without push buttons. If yes then please tell me how. Do I need to skip the switch and connect ground directly to GPIO pins.

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

    Sir , it worked and facing a issue that on turning on the loads from manual switches , relay is turning on and off and the manual control isn’t working properly, so its due to 1 way switch?
    If we use 2 way switch then it will be resolved? And also tell how to connect two way switch with it

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

    Why the relay chatters if i power the circuit by 5v adapter and when I touch the input gpio pins by my hand ?

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

    Hello sir, i have wemos d1 r1 board and i upload your code to it, only two relays are working... i think digital pins defference?

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

    My project is working well until i connectd the switch , Esp8266 kept restarting while i use the switch , do i need to give additional 230 v supply to switch, if i have to give 230 v then can i directly give it to switch or do i need to give through relay

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

    your given code contain the blynk console part but in this video there is no console part, and when i try to program esp8266 board it's looking for no such file or directory blynk/blynkconsole.h..............why, please give solution.....

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

    Sir please make a video on blynk home automation with one slider for fan speed with real time feedback pls add eeprom , ir remote , bluetooth and google assistant thank you sir

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

    error showing
    exit status 1
    BlynkEdgent.h: No such file or directory what should do for it ....plse tel me blynk library i have allready installed

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

    suppose we are not using relays then can we skip the datastream adding part in blynk dashboard?

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

    Hi, can I replace the press button with ttp223 touch sensor and How?

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

    I tried to upload the code and it's start the compile and get a error message..
    'D3' was not declared in this scope,did you mean 'V3'?
    What to do?

  • @eliyaskhan9315
    @eliyaskhan9315 3 года назад +2

    Super Bro...

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

    How much DC input power do you use? Because the relay I used didn't work

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

    sir ill get error compiling for board nodemcu 1.0 (esp-12e module)

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

    Good bro

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

    Hello sir can you please tell me how to add a timer code into this same this code and to add different times for each relay

  • @sha-jh9se
    @sha-jh9se 2 года назад

    Does blynk send reminders like fertilizing date reminder annually?

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

    Hi,
    I am using Wemos R1 D1 board for this,
    What will be different in this case?

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

    when wifi connection is lost. Can't reconnect with blynk. offline. It is fixed by pressing the reset button on nodemcu. what can be done.

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

    Bro please help me when i was compiling "variable or field button1handler declared void" these problem iam getting

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

    I have tried this code and have a problem, when I turn off all the switch in off then all indication light of IN1 to IN4 gets on like they are receiving reverse and if I turn switch anyone on all the switches to on state. Please help

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

    what if the 3 Relay if pressed the 3 bulb not function. what problem? you can only pressed once to turn on the bulb

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

    Bro please help me when i was compiling variable or field (button1handler) declared void is comming

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

    Why does it say blynkconsole has no member named print while compiling

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

    Hello sir i m facing some major problem while uploading the program ...actually i m getting compiling error of nodemcu 1.0. Will help me to figure out this problem

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

    sir I did everything as you said
    but in blynk app I am not getting data streams as v1 v2 sir, it's showing no supported datastreams..
    please anybody can help me, tomorrow my project phase2 exam is there

  • @AmanSharma-up5jl
    @AmanSharma-up5jl 3 месяца назад

    Hii I can get my blynk edgent.h no such file or directory error correct

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

    Please am working on an home automation project need your assistance on how to go about it

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

    Hi!this was a great tutorial and was able to control the lights, I watched an older method of this by codemetry and that guy as integreted with ifttt and google assistant
    He used google assistant in this and used webhooks in that and he configured with blynks server ip adress but he used digital pin whereas you used digital pin so can you make a tutorial on how to connect ifttt and webhooks?

    • @TechStudyCell
      @TechStudyCell  2 года назад +2

      Ifttt is not free anymore. And I try to use available free platforms in my project

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

      @@TechStudyCell that is true, so what can be done to link to Google assistant?

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

    Hello, I am facing a problem while I am trying to connect the NodeMCU by wifi, it connected but not giving me any place for SSID and PASSWORD, what should I do?

  • @Village_event
    @Village_event 10 месяцев назад

    Amazing sir...but suppose esp is failure due to some technical issue how to switch on/off the device??? If have any manual operation.....

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

    Thanks for sharing your knowledge. is it possible to add a timer to control on off led or relay?

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

    The switch 1 is not manualy turning but all other are working properly

  • @Technicalsujan.
    @Technicalsujan. 2 года назад

    Please 🙏 help me
    I face a problem
    When I upload code in nodemcu
    Than show
    [error compiling for board nodemcu 1.0 (esp-12e module)]
    Please help me please 😭😭

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

    Blynk app showing error like as : led was't online yet pls give suggestion

  • @Pendu_music_2.0
    @Pendu_music_2.0 Год назад +1

    Bro I have esp8266 but Cp2102 can it work with this

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

    Bro where is the links of the nodmcu program bro can not find description

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

    While compiling the I have an error shown that ('BlynkEdgent.h' file not found) what to do now plsss help

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

    light/ appliance turns automatically on when power is restored after failure any solution for it

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

    How to I connect ir sensor and dht11 sensor without manual switch

  • @Yini-vr7yk
    @Yini-vr7yk 2 месяца назад

    Hiii i have problem compiling the code to my nodemcu

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

    hello bro am facing some problem while compile programme in nord mcu,

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

    Hey how is everything! How to integrate with Alexa Amazon?

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

    You have said make sure that the jumper is s connected to relay, which jumper do you mean ???

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

    Hello, as usual a wonderful project.
    Does the new blynk app have access to Google Assistant ?
    If yes, then how to integrate it

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

    Hi sir,
    I am facing "Compilation error: Blynk/BlynkConsole.h: No such file or directory" please resolve this issue as soon possible.
    Thank you

  • @bharathn.9525
    @bharathn.9525 Год назад

    sir i have a question who will esp8266 know the real time status of Switch whether its ON/OFF which sensor is used to analysis the real time status please do guide us

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

    Very helpful video, but i want to add blynkEdgent in this project so that I can change my wifi configuration without pc.....how to solve this issue....
    Please help

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

    Can you provide the PDF of this pcb please

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

    hello, good morning, I'm talking about Colombia, I'm talking to see who can help me, I do everything as explained in the video, but my app can't find the ESP network at any time, thanks.

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

    when I upload ino file to esp esp isn't blinking and working. Blynk app couldn't find my device. Help pls

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

    Please help for this: Compilation error: too many decimal points in number

  • @NextGen_automation
    @NextGen_automation 11 месяцев назад

    Sir use WiFi manager in next blynk project

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

    Nordmcu Wifi no show in blynk app plishe help to answer this question

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

    Bro when I connect to nodemcu my mobile get connected to wifi and when I try to add device it says can't connect device

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

    I have uploaded the code but it says hard resetting Via RTS pin and doesn't work what should i do

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

    Which comm should i select

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

    How do i connect this with alexa or google assistance ?

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

    Nice project bro please I tried the project and everything works perfect but when I switched off my wifi the board reset pins ( like on and off relays)

  • @golumaurya8178
    @golumaurya8178 9 месяцев назад +1

    What should be the code and circuit diagram for esp8366 with 8 channel relays
    Please reply 🙏💓

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

    Sir pls make with blynk eeprom and ir remote for relay last state after powercut or reboot nodemcu thank you