Bluetooth Home Automation System Using Arduino And HC-05

These days, home automation become very popular. It provides comfort in a private home. On the other side, a home automation system allows centralized controls of heating, ventilation, air-conditioning, and lighting. It also contributes to an overall cost reduction and saves energy. Energy saving is the main issue at the present time.

Existing and well-established systems are based on wire communication. This system has not faced any problems as long as it plans before the physical construction of those buildings. But in a complete building when there is a requirement for extension, the wiring system requires much effort and cost.

Then the concept of wireless or automation systems comes. In recent years, wireless systems reached their breakthrough. Wireless systems are used everywhere. Examples are wireless security cameras, wireless alarms, wireless home appliances, etc.

In this project, we are going to build a Bluetooth Home Automation System using Arduino and HC-05 module. With the help of this project, we can operate up to four home appliances (Which can be modified according to your needs) through our smartphone. Internet issue is very common in rural areas. So we designed this using Bluetooth. If there is no internet you can operate those appliances using Bluetooth communication.

You just need to follow all the steps carefully. After this, you can easily make a Bluetooth Home Automation System.

Check Out Home Automation System Projects

Project

Bluetooth Home Automation System

Circuit Diagram

Bluetooth Home Automation System Circuit Diagram
Bluetooth Home Automation System Circuit Diagram

Components Required

  • Arduino Nano
  • HC-05 Bluetooth Module
  • 4 Channel Relay Module
  • 5 Volt DC Power Supply
  • 4 Loads
  • 4-Channel AC Socket
  • Connection Wires

About Parts

Arduino

For the compact build, I choose Arduino Nano despite Arduino UNO. Arduino Nano is a small, flexible microcontroller board using an atmega 328p chip. It can also use as a substitute for UNO. All the functions are the same in these two boards. The size of its PCB is 18×45 mm. The clock speed is 16Mhz. Its input voltage is 5-12V. There are 30 pins including power pins, data pins, analog pins, and serial pins on this board.

HC-05 Bluetooth Module

The HC-05 Bluetooth Module is liable for empowering Bluetooth communication among Arduino and android phone. It has already a default baud rate of 9600 bps. We just need to connect RX and TX with a serial converter of the Arduino and that’s it.

HC-05 Bluetooth module has two modes that are one in master mode and another one in slave mode. We can set any mode by using some AT commands. Even we can set module’s settings by using AT command. First, we need to enter AT mode with a 38400 bps baud rate by pressing Enable button at the Bluetooth module or by giving the HIGH level at Enable pin.

PCB Design

For removing messy wiring and give a clean look, I designed a PCB prototype for this project. It is also helpful for troubleshooting that runs great without any errors. To design this PCB board, I used EasyEDA as it is too easy to use. For ordering PCB for this, I prefer PCBWay.

Gerber file for Bluetooth Home Automation System Gerber.

You can view the Gerber file here Gerber File Viewer.

PCB View

Bluetooth Home Automation System 2D View
2D View
Bluetooth Home Automation System 3D View
3D View

The 8th Anniversary of PCBWay Has Begun! Enjoy Heavy Discount

PCBWay 8th Anniversary Promotion

PCBWay has come with an amazing discount. PCBWay is here to celebrate its 8th Anniversary and offer free coupons worth $200, Anniversary sales and lucky draws that are available while supplies last. So please hurry up. You can get upto 92% off on PCB prototypes and 65% off on PCB assembly and 30% off on FPC/Rigid-Flex during the anniversary sale. Log in with your account and claim exciting coupon codes and you may end up as the lucky winner of one of two Raspberry Pi 4 Model B boards.

PCBWay 8th Anniversary Free Coupon

This giveaway is especially for those who had ever purchased their products before and share with them the joys of DIY electronics. During the promotion time, each customer (who had made one or more orders) will have two chances to draw the lucy draw and one extra chance will be given if you place an order during the promotion time.
So just go to their website and grab these offers as fast as possible.

PCBWay 8th Anniversary Lucy Draw

Order PCB From PCBWay

There are so many forums or communities for electronics online in today’s technical world, and one of the famous ones for PCB manufacturing is the PCBWay. PCBWay is a place that brings manufacturers and customers together. They have more than a decade of experience in this field of fabrication, prototyping and assembling PCBs. PCBWay has proved its focus on its customers’ needs in terms of cost-effectiveness, delivery, and quality.

How PCB Manufacturing Process Done in PCBWay

Standard quality for any product needs to be maintained using some parameters. PCBWay gives that opportunity through quality control in designing and manufacturing. At first, they ensure the accuracy, clarity, and validity of the PCB files that we sent to them.

Then all the boards will go through the most stringent tests other than the basic visual check. They adopt most of the testing and inspecting equipment used in the industry, such as Flying Probe Tester, X-Ray Inspection Machine, and Automated Optical Inspection (AOI) Machine. PCBWay are having 50+ new engineers on the daily basis around the world using PCBs for their work, who trust for their reliable quality. They produce high-quality pink, orange, grey, and even transparent solder mask. Moreover, according to people’s needs, they can also provide Black core PCB. Check it out for a High-Quality PCB solder mask. There are some pictures below of the new colours of solder musks.

Features of PCBWay

PCB Prototyping & Manufacturing: PCBWay produces FR-4 and Aluminum boards and advanced PCBs like Rogers, HDI, Flexible and Rigid-Flex boards, at a very reasonable price. Just check this Instant Quote to order premium PCBs for your hobby projects.

PCB Assembly: It not only offers PCB Prototyping but also offers PCB Assembly service. You can order a full PCB board with attached components by uploading your file. SMT & THT assembly starts from only 30$ including free stencil and worldwide shipping. The components can be sourced and provided by PCBWay, or by clients themselves.

Open Source Community: It not only offers PCB Prototype & Assembly service but also gives opportunities to students for sponsorships. I think this is so great. They feature their projects on the website also.

3D Printing & CNC: It also produces Rapid Prototyping like 3D printing, CNC Machining, Sheet Metal Fabrication, and Injection Molding. The quality of the product is too premium and reliable. And also the best part is that you will receive your order within a minimum of 3 days.

PCBWay Store: More boutique gift modules are waiting for you to discover, giving your creativity wings. You can order all types of electronic equipment, components and many more with exciting offers. Go with the link and buy your needs, PCBWay Store.

Services: PCBWay offers great servicing of their products. It takes only 3 to 15 days according to courier service to deliver your products. Also, it has a live support facility. Whenever you have any problems, you can always reach a live customer service person to respond to you.

Guide for Ordering PCB from PCBWay

Circuit Connection and Working of Bluetooth Home Automation System

The circuit connection is very easy. You just need to follow the steps carefully and your home automation project will be ready. You can see all the connections in the circuit diagram above but also explain it shortly. At first, take the HC-05 module and Arduino Nano and connect the RX, TX, GND and VCC pins of the HC-05 module with the TX, RX, GND and VIN of Arduino Nano respectively.

Then take the 4-Channel relay module and connect the VCC with the 5V supply from the Arduino board. Then connect the IN1, IN2, IN3 and IN4 with the D6, D5, D4 and D3 pins of the Arduino. The four output channels of the relay module consist of four loads. Now connect a 5V power supply to the VIN of the Arduino.

The working principle is that when the HC-05 module sends a signal to the Arduino, it triggers the particular relay and the relay starts conducting voltage. By this process, four loads can be operated. The HC-05 module is connected to our mobile via Bluetooth communication.

How to Connect Application With Bluetooth Home Automation System?

First, need to download the “Arduino Bluetooth Home Automation” application from Playstore. After that go to smartphone Bluetooth settings and search for the HC-05 device and pair with it. Then back to that application which is downloaded and press the “Connect to Bluetooth” option and connect with the already paired HC-05 device.

Arduino Bluetooth Home Automation App Homescreen

After connecting to the Bluetooth, simply click on the below four ON/OFF buttons and that’s it. You have access to controlling the load appliances according to your needs.

Arduino Bluetooth Home Automation Control Panel

Arduino Code for Bluetooth Home Automation System

Output Video

Leave a Comment