Bluetooth Based Home Automation using Arduino: This project is the part of my Home Automation series. Before this, I posted Home Automation using PC and IR-based home automation system. I hope you will learn something from this series of projects. In future, I will also post it with using GSM module based home automation system. In this project, Bluetooth is used to communicate with Arduino using an Android Application know as S2 Terminal. There are also other apps but this is free and easy to use. We use HC-05 Bluetooth module. I have also posted a project on a voice controlled home automation using Android app.
- 1 Block Diagram of Bluetooth Based Home Automation using Arduino
- 2 Components Required for Bluetooth Based Home Automation using Arduino
- 3 Circuit Diagram of Bluetooth Based Home Automation using Arduino
- 4 Working of Bluetooth Based Home Automation using Arduino
- 5 Code for Bluetooth based home automation system
Components Required for Bluetooth Based Home Automation using Arduino
- Arduino Uno: We use Arduino due to its simplicity and it also provides a much digital pin to interface with LCD and relay module at the same time. It is very useful when you prototyping a project.
- HC-05 Bluetooth Module: Bluetooth is very easy to interface with Arduino. If you are not familiar with it search it on our website.
- 4 Channel Relay Modules: The module we use in this project is HL-54S. It switches on and off using 5v logical signal from Arduino. It can bear up to 250VAC and 10A. These modules have 4 channels so we can control 4 AC devices at a time.
- 16×2 LCD: LCD is used to display project name, a list of commands which can be entered then it asks to give any command and show the status of the command which is entered. We use 16×2 LCD because it is easy to interface with Arduino and very cheap in price. 10k potentiometer is used to control the contrast of display
- AC bulbs with holders: AC bulbs are used to represent devices and appliances. Because it is easy to handle and very useful when you are prototyping any AC project. In final product just replace with AC socket to control.
- AC wire with plug: I advise you to use good quality wire when working with higher voltages. It is always good to use electrical tape to protect connections.
- External 5 volt supply: 5-volt dc supply is required to switch a relay on and off. Otherwise, it did not work. Also do not supply 5v from Arduino.
Bluetooth Module HC-05
- HC-05 Rx to Arduino Tx.
- HC-05 Tx to Arduino Rx.
- Vcc to 5v
- Ground to ground.
- VSS to a ground.
- VDD to supply voltage.
- VO to adjust pin of 10k potentiometer.
- RS to Pin 8.
- RW to a ground.
- Enable to Pin 9.
- LCD D4 to Pin 10.
- LCD D5 to Pin 11.
- LCD D6 to Pin 12.
- LCD D7 to Pin 13.
- Ground one end of a potentiometer.
- 5v to other ends of a potentiometer.
4 Channel Relay modules:
- External 5 volts to JD-VCC.
- Ground to ground.
- Ini1 to Pin 3.
- Ini2 to Pin 4.
- Ini3 to Pin5.
- Vcc to Arduino 5v.
- Connect one end of all bulbs to normally open terminal of relays.
- One end of 220VAC to all common terminals of a relay and another end with another terminal of bulbs.
Working of Bluetooth Based Home Automation using Arduino
First of all download S2 Terminal app from Google play store. Open the application connects to the Bluetooth module. Write the specified commands and send it. Bluetooth module receives it and Arduino performs the describe operation, display status and send a message to mobile.
|Command sent by mobile||Message receives by mobile|
|all on||All ON|
|all off||All OFF|
|white on||White ON|
|white off||White OFF|
|blue on||Blue ON|
|blue off||Blue OFF|
|green on||Green ON|
Code for Bluetooth based home automation system