ESP32 Bluetooth Home Automation With Manual Switch
by iotcircuithub in Circuits > Microcontrollers
2168 Views, 11 Favorites, 0 Comments
ESP32 Bluetooth Home Automation With Manual Switch
In this ESP32 project, I have shown how to make an ESP32 Bluetooth smart home system with manual Switches to control an 8-channel relay module without internet.
With this home automation system, you can control 8 home appliances from your smartphone using Bluetooth and you can also control the appliances with manual switches or push buttons.
During the tutorial video, I have covered all the following topics:
- How to control 8 relays using ESP32 with Bluetooth and switches.
- Circuit diagram of this ESP32 Bluetooth Home Automation project.
- Programming the ESP32 with Arduino IDE
- Connect home appliances with the 8-channel relay module.
- Install and connect the Bluetooth App with ESP32
- Controlling 8 appliances with Bluetooth using the ESP32 control relays.
Supplies
1. ESP32 DEV KIT V1
2. 8-channel 5V SPDT Relay Module
3. Switches or Push Buttons
Circuit Diagram of the ESP32 Bluetooth Project
This is the complete circuit diagram for this home automation project. I have explained the circuit in the tutorial video.
The circuit is very simple, I have used the GPIO pins D23, D22, D21, D19, D18, D5, D25 & D26 to control the 8 relays.
And the GPIO pins D13, D12, D14, D27, D33, D32, D15 & D4 connected with push buttons to control the 8 relays manually.
I have used the INPUT_PULLUP function in Arduino IDE instead of using the pull-up resistors. I have used a 5V mobile charger to supply the smart relay module.
Control Relays From Mobile With Bluetooth
If the ESP32 module is connected with the Bluetooth App, then you can control the home appliances from mobile and switches.
Control Relays With Manual Switches
If the Bluetooth is not connected, still you can control the appliances with manual switches
Code for ESP32 Bluetooth Home Automation
In the Tutorial video, I have explained all the steps to program the ESP32 DEV KIT V1 using Arduino IDE.
Before uploading the code you have to install the ESP32 board.
Select the DOIT ESP32 DEVKIT V1 board and proper PORT. Then upload the code to ESP32 Board.
While uploading the code to ESP32, if you see the "Connecting....___" text, then press the BOOT button of the ESP32.
Download & Install the Bluetooth Switch App
I have designed the Bluetooth Switch App in MIT App Inventor for this ESP32 Bluetooth project.
First pair the ESP32, then connect this Bluetooth app with ESP32.
Downloads
Connect the Home Appliances
Connect the 8 home appliances as per the circuit diagram. Please take proper safety precautions while working with high voltage.
Connect 5-volt DC supply with the ESP32. (I have used my old mobile charger)
Connect the Bluetooth App With ESP32
After uploading the code to ESP32, you have to connect the Bluetooth App with ESP32.
- Turn ON mobile Bluetooth and Pair the ESP32.
- Open the Bluetooth Switch App and tap on "Tap to Connect".
- Select the "ESP32_BT" from the list.
- Now, you can control the relay from mobile with Bluetooth.
Finally!!
Now you can control your home appliances in a smart way. I hope you have liked this home automation project. I have shared all the required information for this project.
I will really appreciate it if you share your valuable feedback.
Also if you have any query please write in the comment section. Thank you & Happy Learning.