ESP32 Bluetooth Home Automation With Manual Switch

by iotcircuithub in Circuits > Microcontrollers

1989 Views, 11 Favorites, 0 Comments

ESP32 Bluetooth Home Automation With Manual Switch

vlcsnap-2021-01-29-10h59m29s588.png
vlcsnap-2021-01-29-10h51m33s269.png
ESP32 Bluetooth Home Automation System with Manual Switch | ESP32 Projects 2021
ESP32 Bluetooth control relay.jpg

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

dffffffffffffffff.jpg

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

vlcsnap-2021-01-29-10h51m20s329.png
vlcsnap-2021-01-29-10h53m45s572.png

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

vlcsnap-2021-01-29-10h54m40s729.png

If the Bluetooth is not connected, still you can control the appliances with manual switches

Code for ESP32 Bluetooth Home Automation

vlcsnap-2021-01-29-10h52m23s950.png
vlcsnap-2021-01-29-10h52m09s053.png

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

vlcsnap-2021-01-29-10h52m35s628.png
vlcsnap-2021-01-29-10h52m42s450.png
vlcsnap-2021-01-29-10h53m13s160.png

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.

Connect the Home Appliances

ddddddddd.jpg

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

ESP32 Bluetooth control Relays Pic 1.jpg

After uploading the code to ESP32, you have to connect the Bluetooth App with ESP32.

  1. Turn ON mobile Bluetooth and Pair the ESP32.
  2. Open the Bluetooth Switch App and tap on "Tap to Connect".
  3. Select the "ESP32_BT" from the list.
  4. Now, you can control the relay from mobile with Bluetooth.

Finally!!

vlcsnap-2021-01-29-10h51m08s186.png

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.