Voice and Button Control Smart Home Automation Project using Bluetooth and Arduino

Share This

Hello friends! Welcome back to ElectroDuino. This blog is base on Voice and Button Control Smart Home Automation Project using Bluetooth and Arduino. Here we will discuss Introduction to Voice and Button control Smart Home Automation Project, Project Concept, Block Diagram, Components Required, Circuit Diagram, Working Principle, and Arduino Code.

Introduction

The home automation system is one of the trending products that is reduced human effort. In these modern days, everyone wants their smart home where all electronic or electrical devices and home appliances can be controlled remotely. In the previous blog tutorial, we are design different types of home automation systems, like IR remote control, RF Based, GSM-based, IoT-based, Bluetooth Voice Control, and Bluetooth control home automation in Home Automation Series. In this project, we will make a new type of Bluetooth control Home Automation system, where we can control home appliances wirelessly through Bluetooth communication technology. In this smart home automation system, we will control home appliances using the Voice command and button command.

Project Concept

This is the combined project of the Button and voice control home automation. Here we need the same components that are used in the previous Bluetooth home automation projects. But here we will use another App (Application). This App (Application) can read our voice command as well as button command in a single dashboard. The key components of the Voice and switch control smart home automation are the Bluetooth module, Arduino board, relay module, LCD Display, Android Phone, and a Bluetooth App. This App (Application) can read our voice command as well as button command in a single dashboard. This app sends our command (voice or button) to the Bluetooth module. Then the Bluetooth module receives this data and passes it to the Arduino. Then Arduino sends commands to the relay module to control the home appliances. Here we will also use a display module that shows the home appliances status (ON or OFF)

Block Diagram of Voice and Button Control Smart Home Automation Project 

Voice and Button Control Smart Home Automation Project using Bluetooth Module and Arduino
Voice and Button Control Smart Home Automation Block diagram

Components Required

Components NameQuantity
Arduino NANO1
HC-05 Bluetooth Module1
4 Channel Relay Module1
AC Bulb with Holder and Wire4
PCB Prototyping board1
12V DC Power supply1
220V AC Power supply 
Connecting wiresAs required in the circuit diagram
Smart Phone (Bluetooth supported)1
Bluetooth Controller AppAvailable in Google Play Store

Tools Required

Tools NameQuantity
Soldering Iron1
Soldering wire1
Soldering flux1
Soldering stand1
Multimeter1
Desoldering pump1
Wirecutter1
Screwdriver1

Circuit Diagram of Voice and Button Control Smart Home Automation Project

Voice and Button Control Smart Home Automation Project using Bluetooth Module and Arduino Circuit Diagram
Voice and Button Control Smart Home Automation Circuit diagram

Bluetooth App configure

First of all, open the Play Store of your Android Smartphone and search for “Control Arduino With Bluetooth-BlueUnio”. Then you will get this App. Now install this app.

Control Arduino With Bluetooth-BlueUnio App install, Bluetooth Home Automation App install step 1
Bluetooth Home Automation App install, step 1

After completing the installation process, open the app. Make sure the circuit is connected to the power supply and the Bluetooth module is on. Also, make sure the Bluetooth module pair with your smartphone. You can pair your phone with the HC-05 Bluetooth Module like we normally pair the phone with Bluetooth earphones or speakers. Then you will come on the App dashboard. Here you can see the Buttons and a mic symbol for the Voice command. Also, you will see two Settings buttons on the top right corner of the app.

Control Arduino With Bluetooth-BlueUnio App setup, Bluetooth Home Automation App install step 2
Bluetooth Home Automation App Setup, step 2

Settings button 1

At first, Click on the Settings button 1,if your smartphone pair with the HC-05 Bluetooth module, then you can see the “HC-05 Bluetooth” name on this page. Now click on it and select it. If your app is successfully connected to the Bluetooth module, then you can see the LED on the Bluetooth is start blinking with a delay.

 

Control Arduino With Bluetooth-BlueUnio App setup, Bluetooth Home Automation App install step 3
Bluetooth Home Automation App install, step 3

 

Settings button 2

After complete the App setup/configuration, now we need to Set the load values (Code) of the App buttons. When we click a Button or send a particular voice command, then the App sends a particular load value (Code) to the Arduino. Using this Settings button 2 we can change the button name, Voice commands, and load value (Code). So, click on the Settings button 2, then you will get this interface.

Control Arduino With Bluetooth-BlueUnio App setup, Code set, Bluetooth Home Automation App install step 3
Bluetooth Home Automation App Setup step 4

Here we will change the button name, Voice commands, and load value (Code). The list is below

App Button No.App Button NameApp Button StatusVoice CommandsLoad Values (CODE)Device statusControl Relay (Relay Pin)
1Light

ONturn on Light1Light OnRelay-1 (IN1)
OFFturn off LightALight Off
2Fan

ONturn on Fan2Fan OnRelay-2 (IN2)
OFFturn off FanBFan Off
3Television

ONturn on Television3Television OnRelay-3 (IN3)
OFFturn off TelevisionCTelevision Off
4Pump

ONturn on Pump4Pump OnRelay-4 (IN4)
OFFturn off PumpDPump Off
5

All DeviceONturn on All9All Devices (1, 2, 3 & 4) OnRelay-1, Relay-2 Relay-3, Relay-4 (IN1, IN2, IN3, IN4)
OFFturn off AllI All Devices (1, 2, 3 & 4) Off

Working Principle of Voice and Button Control Smart Home Automation Project

When we pressed any button or say a voice command in the App, the App sends a unique load value according to the button Settings. The HC-05 Bluetooth Module received this unique load value and send it to the Arduino. Then, the Arduino compares the value with the predefined load value in the Arduino code. If this value is matching, then  the Arduino sends operating voltage to the relay module. also, we can see the Device status (on or off) on the 16×2 LCD Display.

For example, when we Press the “Light” button or say “turn on Light” voice command, then the app sends Load value “1” to the Bluetooth module. Then the Arduino gets this value through the Bluetooth module. Then the Arduino sends Low(0)  voltage to the Input-1 (IN1) pin of the relay module. Now the relay is in On mode. So, the Light will also turn on, which is connected to the relay-1 of the relay module. At the same time, the “D1 (Device 1) is ON” status print on the 16×2 LCD Display Module.

when we again Press the App “Light” button or say “turn off Light” voice command, then the app sends Load value “A” to the Bluetooth module. Again the Arduino gets this value through the Bluetooth module. But this time the Arduino sends a High(5v) input voltage to the Input-1 (IN1) pin of the relay module. Now the relay is in Off mode. So the Light will also turn off, which is connected to the relay-1 of the relay module. At the same time, the “D1 (Device 1) is Off” status print on the 16×2 LCD Display Module.

In this way, we can control all relays of the 4 channel Relay module through the App using Button and Voice Command.

Arduino Code

 

Share This

Leave a Reply

Your email address will not be published. Required fields are marked *