The article is being published in collaboration with JLCPCB. It is one of the most experienced PCB manufacturers with more than a decade in the field of PCB prototype and fabrication, they are committed to meeting the needs of their customers from different industries in terms of quality, delivery, cost-effectiveness and any other demanding requests.
IntroductionHey hello friends, welcome to another article, Now-days almost everyone has smart speakers in their house like Amazon Alexa or google assistant.
I have Amazon Alexa in my house, the quality of voice assistant is amazing. You can ask anything to Alexa and Alexa will give response in no-time. Talking to Alexa is always a fun.
Apart from this we can also use Alexa to automate our home appliances.
That means we can control our home-appliances just giving voice command to Alexa.
And apart from this we can also able to control our home appliances from the manual switch buttons that we traditionally do.
And also we can control these appliances using Alexa smartphone application.
To make this project I will use my 4 node SMT smart home automation PCB.
Apart from this 4 node, I also have 8 node and 2 node home automation PCBs. These PCBs are fully tested and works very well.
These PCBs have all the safety features like ac Electrical isolation.
To design the circuit and PCB, we used EasyEDA which is a browser based software to design PCBs.
Designing the circuit works like in any other circuit software tool, you place some components and you wire them together.
Then, you assign each component to a footprint.
Having the parts assigned, place each component. When you’re happy with the layout, make all the connections and route your PCB.
Save your project and export the Gerber files.
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.
To place the order, click on “SAVE TO CART” button.
Now select the shipping method, the one you prefer and has cost efficient.
Before finalizing your order you can use the promotional code JLC-REBE to get a discount and then click pay.
After seven days, PCBs arrived at my place. As usual the quality of PCB is very premium.
And the SMT Components are soldered very well.
To upload the code in ESP32 chip I will use USB to TTL Convertor.
Connect the PCB to USB to TTL converter as per this Circuit diagram.
In case if you don't have USB to TTL convertor even then you can upload the code using ESP32 development board.
Just make the connection as per this Circuit diagram.
And rest of the process is same.
Download this code and open it in Arduino ide.
Before you upload the code you need to make some changes in the code., first of all you need to add the esp32 boards in your Arduino IDE.
And also you need to add ESP-Alexa and ace button Library in your Arduino IDE to run this code.
For this go to tools then manage libraries, a popup will come, In the search box type espalexa.
Install the first library that has come, after selecting latest version of it.
In same install the acebutton library.
In this section of code you have to enter the SSID and Password of your router or hotspot.
And here we define the total 4 devices, also we give the name of each devices.
These names will appear in the Alexa App when we will connect esp32 with Alexa.
More truly these are the names of devices. You can give any name you want according to your choice.
After that code will remain same no need to change anything just download this code from the video description and make the changes that I just told and straight forward upload this code after selecting right board and COM port.
While uploading the code press and hold the boot button and press the reset button once to make this module go inside boot Mode.
Amazon Alexa App Configuration.Download Amazon Alexa app in your smartphone, this app is available for both iOS as well as for Android.
In the app tap on devices.
then tap on plus icon on the right top corner of the app, then add devices.
Scroll down and select other...
Click on discover devices.
Alexa speaker will search for the devices....it will take few seconds to find the devices.
Make all the connection of bulb and switches as per the schematic shown below.
Our home-automation project is ready, you can install this home-automation system in your home or in office to automate the devices.
I f you have any query or any question please comment below.
I will definitely try to solve.
For now thank you so much for reading my article.
Video tutorial.
Comments