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 thier customers from different industries in terms of quality, delivery, cost-effectiveness and any other demanding requests.

Introduction

 In this article we are going to make Android app bluetooth controlled homeautomation system.

For making of this homeautomation system I will use my 8 node SMT homeautomation pcb and coustom design android app.

  •  Best part of this project is that we don't need any internet connection or any local server to connect android application and esp32. 

App will directly communicate to the esp32 via bluetooth.

The only down side of this homeautomation system is , it will only work in local range.

If you want to purchase this 8 node SMT homeautomation pcb then connect me.

Email: technolabcreationindia@gmail.com

This

PCB

has inbuilt OTA button, that is, you can update the code wirelessly over the air.

And there is two Onbaord Led’s which you could use according to your need like testing your

code 

or something else.

We can give  input to control our devices via Manaul switch button. 

This pcb is compatible for all the smart speakers available in the market like Amazons Alexa , google home and Apples SIRI.

Designing the PCB.

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.

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.

Let's Make it...!
Now grab all the components whose list is mention below, and soldered on the PCB.

1.ESP32 Chip.

2.Highlink (HLK-5M05).

3.Relay (5volts).

4.Terminal connectors.

5.Optocoupler(PC817).

6.DPDT Switch.

After soldiering rest of components PCB look like this neat, clean and well arranged.

Android Application.

Click here to download the APK file of application.

Once you download the app; pair your smartphone with esp32 via bluetooth after installing the app in smartphone.

CODE

To flash the code into ESP32 chip, I will use ESP32 development board.

Make the connections according to below schematic.

Make the connections according to above schematic.

  • Download the code and open in arduino ide.
  • Now hit upload button after selecting right board and COM Port.

Circuit Diagram for connection of bulb and switches.

Connect all the switches and bulb  as shown in above figure.

... Read more »