Nowadays, people have smartphones with them all the time. So it makes sense to use these to control home appliances. Presented here is a home automation system using a simple Android app, which you can use to control electrical appliances with clicks and voice command. Commands are sent via Bluetooth(HC05) to Arduino Uno, Which controls the relay operation( ON or OFF). So you need not get up to switch on or switch off the device while watching a movie or doing some work and other reasons.
Step 1: Components
2.4channel relay board(5v)
4.LCD display 20x4
5.7805 voltage regulator
6.9v smps adaptor(for power supply).
Step 2: Arduino Uno
Arduino is an open-source prototyping platform in electronics based on easy-to-use hardware and software. Subtly speaking, Arduino is a microcontroller based prototyping board which can be used in developing digital devices that can read inputs like finger on a button, touch on a screen, light on a sensor etc. and turning it in to output like switching on an LED, rotating a motor, playing songs through a speaker etc.
Arduino boards are generally based on microcontrollers from Atmel Corporation like 8, 16 or 32 bit AVR architecture based microcontrollers.
The important feature of the Arduino boards is the standard connectors. Using these connectors, we can connect the Arduino board to other devices like LEDs or add-on modules called Shields. The Arduino boards also consists of on board voltage regulator and crystal oscillator. They also consist of USB to serial adapter using which the Arduino board can be programmed using USB connection. In order to program the Arduino board, we need to use IDE provided by Arduino. The Arduino IDE is based on Processing programming language and supports C and C++
Step 3: 4 Channel Relay Board
Here iam using 5v 4channel relay module.
It has 6 pins VCC,GND,IN1,IN2,IN3,IN4.
VCC We can apply 5v,and ground(GND) to ground.
IN1 to IN4 is connected to the arduino that is controll signal.
Step 4: BLUEETOOTH MODULE HC05/06
Here iam using HC05 bluetooth module for reaceiving commands from the andriod phone.
Step 5: LCD DISPLAY
In this project iam using 20x4 lcd display.Go through connection as per the picture.
Step 6: Voltage Regulator Ic 7805
input-9v from adaptor connected to the input pin of the ic7805. second pin to the ground. Third pin is the output pin.Output is 5v.This 5v is used as vcc of lcd display,bluetooth module and relay board.
Step 7: Relay Connections
The video shows how to AC load connect in relay.
now connect arduino pin D6,D7,D8,D9 to IN1,IN2,1N3,1N4 OF RELAY BOARD.
VCC 5v(o/p of voltage regulator(7805))
Step 8: BLUETOOTH MODULE CONNECTIONS
RX Of bluetooth module connected to TX of arduino board(Digital pin1 of arduino)
TX of bluetooth module connected to RX of arduino board(Digital pin 0of arduino).
VCC-5v (using olp voltage regulator)
Step 9: LCD Connections
* LCD RS pin to digital pin 12
* LCD Enable pin to digital pin 11
* LCD D4 pin to digital pin 5
* LCD D5 pin to digital pin 4
* LCD D6 pin to digital pin 3
*LCD D7 pin to digital pin 2
* LCD R/W pin to ground
* LCD VSS pin to ground
* LCD VCC pin to 5V
*15 pin of lcd display backlight led + connected to 5v.
*16 pin to ground.
*V0 iam just grounded, you can use 10k pot for adjusting contrast of display.
REFER THE CIRCUIT DIAGRAM
Step 10: ANDROID APPLICATION AND ITS CONFIGRATIONS
DOWNLOAD THIS APPLICATION IN PLAYSTORE
Step 11: CODE
SOFTWARE REQUIRED: ARDUINO IDE
ARDUINO IDE SOFTWARE DOWNLOAD LINK - windows
USING ON/OFF BUTTON IN THE APP I SET
Light-'1 'Using for turn on the device and 'A' using for turn off the device.Using voice control the command is "light on" for turn on and "light of" to turn off.
Fan-'2 'Using for turn on the device and 'B' using for turn off the device.Using voice control the command is "fan on" for turn on and "fan of" to turn off.
AC-'3 'Using for turn on the device and 'C' using for turn off the device.Using voice control the command is "AC on" for turn on and "AC of" to turn off.
TV-'4 'Using for turn on the device and 'D' using for turn off the device.Using voice control the command is "TV on" for turn on and "TV of" to turn off.
turn on all devices-'9'. voice command-"all on".
turn off all devices-'I'. voice command-"all of"
connect your arduino board to the pc.
Download the code and open in arduino software.
select arduino board click Tools>Board>select your board.
Set port--Tools>port>select the port.
Upload the code.
Step 12: Connect All the Components
after connecting all components check all connections using a multimeter.
now the connections good ,then power on.
Step 13: Working Video
Participated in the
Electronics Tips & Tricks Challenge