ESP32 Alexa Home Automation System with Manual & Voice Control Feedback | IoT Projects 2021

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hello friends, welcome to Tech StudyCell, in this video will make a very useful and practical home automation system using ESP32 to control 8 home appliances with Alexa and also from the manual switches. To make this project you just need an ESP32 and 8 channel relay module and you can use your existing switchboard so you don't need any custom design PCB. And also I have not used any third-party IoT platforms. So this project is very simple you can easily make it for your home. let me show you how it works. "Alexa, turn on outdoor light". "Alexa, turn on room light". "Alexa, turn on study lamp" . So thus you can easily control these lamps with your voice. and you can also use this Amazon Alexa app just go to device and in the light, you will find all the devices. so let me select the room light. let me turn it off. you can see the lamp turns off. now let me turn it on from the manual switch. you can see the real-time status. let me turn it off again, the status updated. now let me turn off all the lamps. "Alexa, turn off all the lamps". Thus, you can easily control these appliances with your voice command and also from the manual switch. now I will turn off the internet and show you how it works without internet. you can see the blue LED automatically turns off which indicate now ESP32 is not connected with the WiFi, so I can control is appliances only from the manual switches. let me show you. I can easily turn the lamp on from the manual switch let me turn it off. now I will turn on the WiFi again. you can see after turning on the WiFi blue LED automatically turns on. So I can again control these appliances with Alexa. "Alexa, turn on study lamp". "Alexa, turn on outdoor light". Alexa turn on kitchen light. so I can easily control it with Alexa and also from the manual switch. let me show you. thus this complete home automation system works and during the video, I will share the complete circuit diagram the code for this project so you can easily make this project after watching the complete video. So let get started. [music] to make this home automation project you need an ESP32, a relay module, you can use the existing switchboard or you can also use a push button and you need an Alexa device like echo dot. now, I will connect all these components as per the circuit diagram. as you can see the circuit is very simple. I have connected the switch across the ground and GPIO pins of ESP32. now if you want to use push buttons then you can refer to the circuit diagram you just have to connect the pushbuttons across the ground and GPIO instead of switches. as you can see there are a lot of connections so to make the circuit compact and give the project a professional look, I have designed a PCB for this project, and order it from the jlcpcb but as I said you can make this project without using any custom design PCB. But still, if you want to use the custom design PCB, you can download the Gerber file from the video description and order it from the jlcpcb. you can easily order any custom design PCB from JLCPCB with three simple steps. First, upload the Gerber file of the PCB, then select the parameter like quantity masking color. Then place the order. If you select a faster delivery service, then you will receive the PCB within a week. As you can see the quality of the PCB is very premium in this affordable price range. so you can always try out JLCPCB for any custom design PCB project. these are the components required to make the circuit on the PCB and after soldering all the components, the PCB will be looked like this. now I will connect the ESP32 with the PCB. this is the code for this project you can download this code from our website iotcircuithub.com. Just visit the link shared in the description. then you can download the code from this button. before uploading the code you are to copy these 2 URLs, then you have to go to File, Preference and here your to paste these 2 URLs. after that, you have to download and install the ESP32 board and for this project you need ESPAlexa and ACEbutton libraries to carry for this to link to download and install the libraries and if you use pushbuttons instead of manual switches then you have to refer to this code. and you just need Espalexa library. after installing all the libraries you have to go to Tools, and select the board as DOIT ESP32 DEVKIT V1 you can find this board under ESP32 Arduino. and this is the board. after that just compile the code, to make sure all the libraries installed successfully. you should not get any errors if you have installed the latest version of the libraries. now if I go down, here have to enter the WiFi credentials. I will enter the WiFi name and the WiFi password. now as we are controlling 8 devices with Alexa, so you have to give the device name for each device. you can give any name to these devices Alexa will identify that device with that name. so if you want you can change these names as per your requirement. now if you refer to the same circuit then after doing these changes you can directly upload the code to ESP32. for that, you have to go to Tools, select the board as DOIT ESP32 DEVKIT V1 and select the proper PORT. then hit the upload button. after uploading the code just connect the 5V supply to the ESP32 board and if the blue LED turns on, the ESP32 is connected with the WiFi. so we can configure the Amazon Alexa app. you have to download and install the Amazon Alexa app. Then tap on "open". first, I will go to "Devices" then I will tap on the "+" icon and tap on the "Add Device". Then here, I will select "Light". in the light, I will select "other". here I'll tap on "discover devices". now during this time the ESP32, Echo Dot and your smartphone should be connected with the same WiFi network. you can see 8 devices found. if you get "No new device found" error, then just restart the echo dot speaker and after that, tap on "Try discover again". then it will again discover the devices and accordingly you can connect the device. now I will go to next. then I will go to "Device". and under the "Light", you can see, these are the devices we have just added. Now I will connect the 8 home appliances with this relay module as per this circuit diagram. after giving the supply if blue LED turns on, then ESP32 is connected with the WiFi so it can control the relay module with Alexa. "Alexa, turn on all lamps". "Alexa, turn off all lamps". now let me turn off the internet, and show you how it works without the internet. after turning off the internet, you can see the blue LED automatically turns off. so we can control the relays from these manual switches. as you can see I can easily control the lamps from these switches. now let me turn on the internet again. after turning on the Internet you can see the ESP32 automatically connect with WiFi and the blue LED turns on. so now we can control the relay module with Alexa again. "Alexa, turn on outdoor light". "Alexa, turn on study lamp". but if you don't have any Alexa device, then you can refer to my previous videos where I have shown, how to control the relay module just by using the Amazon Alexa app. I will Share the link in the description. and can also join our Telegram channel "Tech StudyCell". I do upload different circuit diagrams of IoT projects in that channel. if you like this project in please hit the like button and share it with your friends. don't forget to subscribe for more such projects. thank you for watching have a great day.
Info
Channel: Tech StudyCell
Views: 89,332
Rating: undefined out of 5
Keywords: esp32, home automation, Alexa, Alexa App, esp32 projects, iot, esp32 alexa, esp32 alexa control, amazon alexa app, iot projects, internet of things, industrial iot, esp32 tutorial, esp32 home automation, iot devices, iotproject, esp32 wifi, home control, homeautomation, smart home, smart house, smart home automation, home automation system, amazon echo dot, amazon smart home, amazon alexa, iot technology, esp32 arduino, internet of everything, iot solutions, TechStudyCell
Id: iZWcyZDXMDc
Channel Id: undefined
Length: 9min 21sec (561 seconds)
Published: Tue Mar 09 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.