Thursday, March 26, 2020

Light control with smart phone using Arduino UNO

Abstract 

Technology is a process that can never end. Being able to design a product using current technology that will be beneficial to the lives of others is a major contribution to the community. This paper presents the design and implementation of a low cost yet flexible and secure cell phone based home automation system. The design is based on a stand alone Arduino UNO and BT board and home.
The devices are connected to the input / output ports of this board via a relay.  The  communication  between  the  cell  phone and the Arduino UNO board and bluetooth is wireless. The system is low cost and scalable allowing various types of devices to be controlled with minimal changes to its core.
Password protection is being used only to allow authorized users to use the devices at home.

Introduction

Wireless technology is becoming popular worldwide and consumers appreciate this wireless
The lift is well known as "cable their chaos". Which gives them the confidenceNow to develop with built-in Bluetooth technology, digital devices form a network in which devices and devices can communicate with each other. Today, home automation is one of the major applications of Bluetooth technology.
Operating at a globally available frequency, without license
2.4GHz, it can depend on speeds of digital devices in the range of 10M to 100m, up to 3Mbps.
Bluetooth device class. With this Bluetooth capability; We propose a home automation system based on Bluetooth technology.

There are some problems involved when designing a home automation system. The system must be scalable so that
New devices can be easily integrated into it. It should provide a user-friendly interface on the host side, so that devices can be easily setup, monitored and controlled.
This interface should also provide some diagnostic services so that if there is a problem with the system, it can be tracked down. Also the overall system must be fast enough to realize the true power of wireless
Technology. In the end the system needs to be effective to justify its application in home automation.
We introduced the architecture for home automation and where the system was based on a dedicated network.
This system only shows how to solve the problems of home automation




Hardware (components) used
1. Bluetooth module HC-05 
2.  Relay module 
3.  Jumper wire 
4. Arduino uno board 
5.  Led bulb 
6. 9v battery 
7.  Smart Phone

Bluetooth module HC-05


  • It is used for many applications like wireless headset, game controllers, wireless mouse, wireless keyboard and many more consumer applications.
  • It has range up to <100m which depends upon transmitter and receiver, atmosphere, geographic & urban conditions. 
  • It is IEEE 802.15.1 standardized protocol, through which one can build wireless Personal Area Network (PAN). It uses frequency-hopping spread spectrum (FHSS) radio technology to send data over air.
  • It uses serial communication to communicate with devices. It communicates with microcontroller using serial port (USART).

HC-05 Bluetooth Module

  • HC-05 is a Bluetooth module which is designed for wireless comunication. This module can be used in a master or slave configuration.
HC-05 Bluetooth Module

Pin Description

Bluetooth serial modules allow all serial enabled devices to communicate with each other using Bluetooth.
It has 6 pins,
1.  Key/EN: It is used to bring Bluetooth module in AT commands mode. If Key/EN pin is set to high, then this module will work in command mode. Otherwise by default it is in data mode. The default baud rate of HC-05 in command mode is 38400bps and 9600 in data mode.
HC-05 module has two modes,
          1.  Data mode: Exchange of data between devices.
          2.  Command mode: It uses AT commands which are used to change setting of HC-05. To send these commands to module serial (USART) port is used.
2.  VCC: Connect 5 V or 3.3 V to this Pin.
3.  GND: Ground Pin of module.
4.  TXD: Transmit Serial data (wirelessly received data by Bluetooth module transmitted out serially on TXD pin)
5.  RXD: Receive data serially (received data will be transmitted wirelessly by Bluetooth module).
6.  State: It tells whether module is connected or not


Relay Module

The Arduino relay module has total of six pins: three on one side and three on other side.On the bottom side, there are three pins which are signal, 5V and ground. We will connect these pins with the Arduino. While on the other side, there are NC (Normally close), C (Common) and the NO (normally open) which are the output pins of the 5V relay. There, we will connect the output device.

Arduino Uno 

The Arduino Uno R3 is a microcontroller board based on a removable, dual-inline-package (DIP) ATmega328 AVR microcontroller. It has 20 digital input/output pins (of which 6 can be used as PWM outputs and 6 can be used as analog inputs). Programs can be loaded on to it from the easy-to-use Arduino computer program. The Arduino has an extensive support community, which makes it a very easy way to get started working with embedded electronics. The R3 is the third, and latest, revision of the Arduino Uno.

Adavantage 

  • Easy to use light customization
  • Increase Security