Controlling our home-appliances from Alexa and google assistant is fun. And these smart speakers are very popular nowadays and almost everyone has in their houses.
Controlling home-appliances from these smart speakers is pretty amazing and also very convenient.
I am going to make a home-automation system in which, we will control our home appliances from these smart speakers.
And apart from these smart speakers, we can also control our appliances from smartphone application. And also with the regular manual switches
And the best part of this home automation is that, You can easily make this home automation system even if you don't know anything about coding... this project is as simple as that.
In this home-automation project I am going to use ESP rain maker app. Which is free and available for iOS as well as for android.
We will control two relays... as this PCB has only two relays.
And Apart from this 2 node, I also have 8 node and 4 node home automation PCBs.
These PCBs are fully tested and works very well.
If you purchase this PCB you will get a QR code along with this PCB, Just scan the QR code with the ESP Rain maker app and easily Integrate the Alexa smart speaker and google assistant to it.
And make your devices smart.
PCB Design.
This is the Schematic of PCBs. If you want Your own custom designed PCBs, Then you can download this schematic.
After making the Schematic, Convert it into PCB, Arrange and place all the components in desirable places, Once the layout is ready route the wiring and complete the design of PCB.
After The completion of PCB design, You need to download three files which will required during PCB order. These files are BOM, Gerber and CPL that is pick and place file.
Ordering the PCBs at JLCPCB.This project is sponsored by JLCPCB. JLCPCB is a full feature Printed Circuit Board manufacturing service.
Turn your DIY breadboard circuits into professional PCBs– get 10 boards for approximately $5 + shipping (which will vary depending on your country).
Once you have your Gerber files, you can order the PCB. Follow the next steps.
1. Download the Gerber files –click here to download the.zip file.
2. Go to JLCPCB website and Click on Quote Now button under PCB assembly.
3.Upload the Gerber file you downloaded in the last step. Upload the.zip file or you can also drag and drop the Gerber files.
After uploading the zip file, you’ll see a success message at the bottom if the file is successfully uploaded. You can review the PCB in the Gerber viewer to make sure everything is good.
JLCPCB can grab all the PCB details and automatically fills them for you.
Select the PCB quantity and color masking of PCB by your self. I am selecting white color.
Scroll down below and select for PCB assembly.
Here you have to select on which Side you want to PCB assembly top side or bottom side or on both side. In my case I want only on top sides. After that click on confirm button.
Here you have to select on which Side you want to PCB assembly top side or bottom side or on both side. In my case I want only on top sides. After that click on confirm button.
For PCB assembly we need two more files, One is BOM that is bill of material and the second one is CPL that is pick and place file, Upload these two files one by one.
After that click on next button.
All the components were shown here that are to be assembled.
In case if you want to not assemble any particular component then you can de-select that components.
After checking all the components click on next button.
Here you will see a computer version of components placement which seems not accurate. This is only for reference purpose.
Now click on save to cart to complete your order.
After seven days, PCBs arrived at my place. As usual the quality of PCB is very premium, and the Components are soldered very well.
Traces are perfect, silkscreen is fine, Green color PCB masking looks very beautiful and PCBs look pretty professional.
=============================Connections==============================
Connect all the bulb and switches as the circuit diagram below.
This is the code for our todays home automation project, before you upload the code first you need to update the esp32 boards library in your Arduino ide
Copy the link provided in the code.
Open Arduino preference and paste the copied link.
Now go-to tools and then click on board manager,
Search for esp32, here you have to install this latest esp32 boards in your Arduino IDE, Close this window after Installation
Now in the code, I have define the names of devices....light 1, light 2 like that.....you can give any name you want.
I have define the pins for relays and switches, If you are using my PCB then no need to change anything. Just upload the code as it is.....
Now Go-to tools and select the right board, that is esp32 dev module.
Now click on partition scheme and select rainmaker.
Select the right port & click upload button.
To upload the code into ESP32 chip I will use esp32 development board,
Connect the PCB to esp32 board as per this Circuit diagram.
Once the code is successfully uploaded, Open Serial monitor.
Now press the reset button on the PCB for five seconds.
A QR code is printed on the Serial monitor. I have to scan this QR code
But this QR code is not clearly visible.
To view this QR code clearly, Copy this link and open in your browser.
Now with this QR code, we can easily enter the WI-FI Credentials to the esp32 chip using the ESP Rain-maker app.
And this ESP Rain- maker app is available for android as well as iOS.
Now open this app and Click on add Device, Scan the QR code. It will take few seconds to connect with the esp32 chip.
Now select your WI-FI network and enter the password of your WI-FI. Here it will take few seconds to configure the WI-FI Credentials in esp32.
Here as you can see all the device is successful added,
Now we can easily control the relays from this app.
Let's connect Amazon Alexa and google assistant to this rainmaker app.
For this Go-to settings then tap on voice services, then click on Amazon Alexa....
then tap on link with Amazon Alexa on the bottom of the app....It will take few seconds to connect.....
Now open Amazon Alexa app.....and go-to all Devices.....
Here you can see all the four Devices are connected to Amazon Alexa.
Now we can easily control the Devices from this Amazon Alexa app as well...
Lets connect google assistant to ESP Rain maker app, for this again go-to settings and open voice services.
This time click on google assistant....
here it shows the steps how to connect the google home to ESP Rain maker app which is very easy.
Now open google home app.....here you can see all the four Devices that we have created is successfully connected to the google home app.
Again we can easily control the Device from this google home app as well.
And apart from this manual tapping we can also give voice command.
We have successfully connected the Alexa and google assistant to the ESP Rain maker.
As you see I am able to control the Devices from the manual switch buttons, from giving voice command to Alexa and google assistant.
And apart from this we can also control it through the ESP Rain maker app.
This is the most simple and best home automation project I have ever made...
You can install this PCB in your home or office to make your Device smart.
If you purchase this PCB you will get a QR code along with this PCB, Just scan this QR code with the ESP Rain-maker app and easily Integrate the Alexa smart speaker and google assistant to it. & make your device smart.
Thank you so much for watching this article.
I hope you like this home-automation project.
Please consider subscribing my YouTube channel.
I will keep making this type of projects, till then stay healthy and stay safe.
Video Tutorial.
Comments