HRX Minor Project Report
HRX Minor Project Report
HRX Minor Project Report
BACHELOR OF ENGINEERING
In
Electrical Engineering
By
2014-2018
DECLARATION BY THESTUDENTS
We the undersigned solemnly declare that the project report titled MICROPROCESSOR
BASED MONITORED AND CONTROLLED LOAD VIA BLUETOOTH is based on our
own 0)work carried out during the course of our study under the supervision of Dr. A. K.
Shukla0
We assert that the statements made and conclusions drawn are an outcome of our work. We further
certify that
i. The work contained in the report is original and has been done by us under the general
supervision of our supervisor(s).
ii. The work has not been submitted to any other Institute for any other degree/diploma/certificate
in this university or any other University of India or abroad.
iii. We have followed the guidelines provided by the University in writing the report.
iv. Whenever we have used materials (data, theoretical analysis, and text) from other sources, we
have given due credit to them by citing them in the text of the report and giving their details in the
references.
Page | 2
C E R T I F I C A T E F R O M T H E S U P E R V I S O R/S
This is to certify that the work incorporated in the project report entitled
MICROPROCESSOR BASED MONITORED AND CONTROLLED LOAD VIA
BLUETOOTH is a record of work carried out by Chandrasen bearing Enrollment No.:
AO7671, Deepak Patel bearing Enrollment No.: AO7672, Deepti Ekka bearing Enrollment No
AO7673, Devvrat Kashyap bearing Enrollment No.: AO7674, Dheeraj Maurya bearing
Enrollment No.: AO7675, Fiza Parveen bearing Enrollment No.: AO7676 , Hariom Mehra
bearing Enrollment No.: AO7678, Harish Sahu bearing Enrollment No.: AO7679, Harshita
Bargah bearing Enrollment No.: AO7681 ,under my/our guidance and supervision for the award
of Degree of Bachelor of Engineering in the faculty of Department of Electrical Engineering of
Chhattisgarh Swami Vivekanand Technical University, Bhilai, Chhattisgarh, India.
_________________
Page | 3
C E R T I F I C A T E BY T H E EXAMINERS
This is to certify that the project report entitled MICROPROCESSOR BASED
MONITORED AND CONTROLLED LOAD VIA BLUETOOTHwhich is submitted by
has been examined by the undersigned as a part of the examination for the award of the degree
of Bachelor of Engineering in Electrical Engineering from Chhattisgarh Swami Vivekanand
Technical University, Bhilai.
___________________ __________________
Date: Date:
Designation: Designation:
Institute: Institute:
Page | 4
Acknowledgement
It is not possible to prepare a project report without the assistance and
encouragement of other people. This one is certainly no exception.
On the very outset of this report, I would like to extend my sincere and heartfelt
obligation towards all the personages who have helped me in this endeavor.
Without their active guidance, help, cooperation and encouragement.
At last but not least gratitude goes to all my friends who directly or indirectly
helped me to complete this project report.
Page | 5
TABLE OF CONTENT
ARDIUNO R3 17-21
Transformer 32
Project Flow 34
Page | 6
BLOCK DIAGRAM 35
Circuit diagram 38
Pin Connections 39
Working Principle 40
Conclusion 66-67
Page | 7
INTRODUCTION
Research Background:
Page | 8
INTRODUCTION
contained electric or gas powerd home appliances became viable in the
1990s with the introduction of electric power distribution .
Problem Statement:
Page | 9
INTRODUCTION
gets to control his entire house using a smart phone, from turning on a TV to
locking/unlocking doors; it also offers an efficient use of energy.
But to get or acquire such system installed will cost a lot of money and that
is the major reason of why home automation has not received much demand
and attention, adding to that also the complexity of installing it and
configuring it. Thus it is essential to make it cost effective and easy to
configure, if this is granted to people then they will be willing to acquire it in
their homes, offices and schools. In other words, a system modification for
the home automation is required in order to lower the price of applying it to
houses.
Page | 10
INTRODUCTION
Objective of the study:
Scope of study:
Page | 11
INTRODUCTION
Create a simple yet reliable commercial/home automation system
using Arduino-Uno as a microcontroller that will be the medium
between the android and the home appliances.
To find a suitable app that will work efficiently with the Arduino-Uno
board in order to control the home appliances.
Program the Arduino-Uno board in a way that will let it interact with
the android app.
Control refers to sending command messages to a device to operate
the instrumentation and control system devices.
Page | 12
INTRODUCTION
Literature Review and Theory
In our project we will design and implement an efficient load controlling and
monitoring system with an arduino board and Bluetooth. The system consist of
mainly three components i.e. a Bluetooth module ( HC05 ), arduino microcontroller
,and a relay circuit.
A switch is used to control the circuit operation and user may be able to activate or
deactivate the whole or certain parts of the connected circuit.
Page | 13
Literature Review and Theory
We will discuss about switching through electrical and electronics switches
as we use this in our project, because the mechanical switches are user
manually operated, and the electrical switches are faster in response &
accurate than mechanical switches and can be switched automatically by an
electrical and electronic circuit like microcontroller or
microprocessor. There are most widely used electronic switches
are TRANSISTOR, MOSFET, and RELAY.
Swithing through mosfet :mosfet can also be used for switching purpose at high
frequency (MHz). if we apply logic 1 by keeping in mindnthe maximum allowed
voltage for the base, then the resistance between drain and source become low and
current start flowing in this channel or vice versa.so lamp would not glow,i.e. it
would be off when the gate at logic 0.
Page | 14
Literature Review and Theory
When the base is at logic 1 lamp start glowing.
Page | 15
Literature Review and Theory
an electromagnet and this electromagnet can be used for switching purposes.
When, we energies the coil, lamp will glow.
Page | 16
Literature Review and Theory
What is monitoring??
Monitoring is the regular observation and recording of activities taking place in a
project.
Monitoring also involves giving feedback about the progress of the project to
implementers of project. Monitoring is vey important in project planning and
implementation.
Page | 17
Literature Review and Theory
Monitoring with LCD display: LCD (liquid crystal display ), display the
text that we have programmed into the Arduino. Interfacing a character LCD to an
Arduino adds a nice element of readability in our project. These LCDscan be used
to display information from the arduino or any sensor connected to it.for example,
we can make temperature monitoring system which display the temperature on
arduino. An LCD is highly useful output device for arduino that shows the output.
Page | 18
Literature Review and Theory
ARDIUNO R3:-
The ardiuno is a microcontroller board based on the Atmega328 . it has 14 digital
pin input/output (of which 6 can be as pwm) ,6 analog inputs ,a 16 Mhz crystal
oscillator ,a USB connection ,a jack , header ,and a reset button.It contains
everything needed to support the microcontroller,simply connect it to computer
with a USB cable or power it with a AC to AC adapter or battery to get started.
The UNO differs from all preceding boards in that it does not use the FTDI USB
to-serial driver chip. Instead,it features the atmega8u2 programmed as US
programmed as a to serial converter.
Uno means one in Italian and is named to mark the upcoming release to ardiuno
1.0.the uno and version 1.0 will be the reference version of ardiuno,moving
forward.the uno is the latest in a series of usb ardiuno
boards, and the reference modelfor the ardiuno platform ;for a comparision
versions.
Page | 19
Literature Review and Theory
TECHNICAL SPECIFICATION:-
Microcontroller Atmega328
Operating voltage 5v
SPRAM 2KB
EEPROM 1 KB
The ardiuno uno can be powered via the usb connection or with an external power
supply. The power source is selected automatically.
The external (non usb) power can come either from ac to dc adapter or battery. The
adapter can be connected by plugging a 2.1mm centre-positive plug into the
boards power jack.
The power can operate on external supply of 6 to 20 V. if supplied with less than 7
V, however the 5V pin may supply less than 5V and board may be unstable. If
using more than 12V, the voltage regulator may overheat and damage the board.
The recommended range is 7 to 12V.
Page | 20
Literature Review and Theory
The power pins are as follows:-
VIN. The input voltage to the Arduino board when it's using an external
power source (as opposed to 5 volts from the USB connection or other
regulated power source). You can supply voltage through this pin, or, if
supplying voltage via the power jack, access it through this pin.
5V. The regulated power supply used to power the microcontroller and other
components on the board. This can come either from VIN via an on-board
regulator, or be supplied by USB or another regulated 5V supply.
3V3. A 3.3 volt supply generated by the on-board regulator. Maximum
current draw is 50 mA.
GND. Ground pins.
Memory :-
The ATmega328 has 32 KB (with 0.5 KB used for the bootloader). It also has 2
KB of SRAM and 1 KB of EEPROM (which can be read and written with
the EEPROM library).
Page | 21
Literature Review and Theory
PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with
the analogWrite() function.
SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI
communication using the SPI library.
LED: 13. There is a built-in LED connected to digital pin 13. When the pin
is HIGH value, the LED is on, when the pin is LOW, it's off.
The Uno has 6 analog inputs, labeled A0 through A5, each of which provide 10
bits of resolution (i.e. 1024 different values). By default they measure from ground
to 5 volts, though is it possible to change the upper end of their range using the
AREF pin and the analogReference() function. Additionally, some pins have
specialized functionality:
TWI: A4 or SDA pin and A5 or SCL pin. Support TWI communication
using the Wire library.
ATmega328 :-
The high-performance Microchip 8-bit AVR RISC-based microcontroller
combines 32KB ISP flash memory with read-while-write capabilities, 1KB
EEPROM, 2KB SRAM, 23 general purpose I/O lines, 32 general purpose working
registers, three flexible timer/counters with compare modes, internal and external
interrupts,serial programmable USART, a byte-oriented 2-wire serial interface, SPI
serial port, 6-channel 10-bit A/D converter (8-channels in TQFP and QFN/MLF
packages), programmable watchdog timer with internal oscillator, and five
software selectable power saving modes. The device operates between 1.8-5.5
volts.
By executing powerful instructions in a single clock cycle, the device achieves
throughputs approaching 1 MIPS per MHz, balancing power consumption and
processing speed
Page | 22
Literature Review and Theory
Reset Button :-
The reset button does pretty much the same as unplugging the board and
plugging it back in. It restarts your program from the beginning.
The same thing happens when you program the board - the USB interface
presses the reset button for you. That then enters the bootloader for a second
or two so it can try and program it.
When you reset the board the LED on pin 13 should flash a couple of times
while it's in the bootloader before it runs whatever program you have
programmed in. If that LED doesn't flash when you press the reset button
then there is a serious fault with your board which will take further
diagnostic.
Introduction :-
Page | 23
Literature Review and Theory
External single chip Rluetooth system with CMOS technology and with AFH
(Adaptive Frequency Hopping Feature).
The Bluetooth module HC-05 is a MASTER/SLAVE module.By default the
factory setting is SLAVE.The Role of the module (Master or Slave) can be
configured only by AT COMMANDS.The slave modules cannot initiate a
connection to another Bluetooth device, but can accept connections.Master module
can initiate a connection to other devices.The user can use it simply for a serial
port replacement to establish connection between MCU and GPS.
Hardware Features :-
3.3 to 5 V I/O.
Software Features :-
Slave default Baud rate: 9600, Data bits:8, Stop bit:1,Parity:No parity.
Page | 24
Literature Review and Theory
Pin Description :-
TXD & RXD: These two pins acts as an UART interface for communication.
Page | 25
Literature Review and Theory
BUTTON SWITCH: This is used to switch the module into AT command
mode.To enable AT command mode,press the button switch for a second.With the
help of AT commands,the user can change the parameters of this module but only
when the module is not paired with any other BT device.If the module is connected
to any other bluetooth device, it starts to communicate with that device and fails to
work in AT command mode.
Hardware Connections :-
As we know that Vcc and Gnd of the module goes to Vcc and Gnd of Arduino.The
TXD pin goes to RXD pin of Arduino and RXD pin goes to TXD pin of Arduino
i.e(digital pin 0 and 1).The user can use the on board Led.But here,Led is
connected to digital pin 12 externally for betterment of the process.
Page | 26
Literature Review and Theory
16x2 LCD display:-
LCD (Liquid Crystal Display) screen is an electronic display module and find a wide
range of applications. A 16x2 LCD display is very basic module and is very
commonly used in various devices and circuits. These modules are preferred
over seven segments and other multi segment LEDs. The reasons being: LCDs are
economical; easily programmable; have no limitation of displaying special &
even custom characters (unlike in seven segments), animations and so on.
A 16x2 LCD means it can display 16 characters per line and there are 2 such lines.
In this LCD each character is displayed in 5x7 pixel matrix. This LCD has two
registers, namely, Command and Data.
The command register stores the command instructions given to the LCD. A
command is an instruction given to LCD to do a predefined task like initializing it,
clearing its screen, setting the cursor position, controlling display etc. The data
register stores the data to be displayed on the LCD. The data is the ASCII value of
the character to be displayed on the LCD. Click to learn more about internal structure
of a LCD.
Page | 27
Literature Review and Theory
Pin Diagram:-
Page | 28
Literature Review and Theory
Pin Description :-
Pin
Function Name
No
7 DB0
8 DB1
9 DB2
10 DB3
8-bit data pins
11 DB4
12 DB5
13 DB6
14 DB7
Page | 29
Literature Review and Theory
4 Channel 5V Relay :-
A relay is an electrically operated switch. Many relaysuse an electromagnet to
mechanically operate the switch and provide electrical isolation between two
circuits. We use arduino UNO to control the relay.
Description :-
This relay module consists of 4 relays. Each relay is connected to a current buffer
so that you can connect them directly to a Microcontroller or Arduino.
Using these relays you can easily control high power devices or appliances using
arduino or microcontrollers, the relay is rated for 230V 10Amps. The Module has 5
LEDs, one for power and 4 for indicating relay signals.
Page | 30
Literature Review and Theory
Specifications :-
IN1 set to HIGH to set the relay to its default state, set to LOW to switch
the relay to its alternate state.
IN2 same as IN1, but controls the second relay on the board.
IN3 same as IN1, but controls the second relay on the board.
IN4 same as IN1, but controls the second relay on the board.
GND ground.
Working :-
The red light on the relay board turns on when power is applied (via the Vcc pin).
When power is applied on one of the channel pins, the respective green light goes
on, plus the relevant relay will switch from NC to NO. When power is removed
from the channel pin, the relay will switch back to NC from NO.
Page | 31
Literature Review and Theory
Other components of relay :-
Optocoupler-
Optocoupler relays are relays in which the changeover of contacts is effected
by the switching on or off of a light source which is linked to a SCR or a TRIAC.
The SCR or the TRIAC is switched on or off when the LED is switched unlike
conventional relays, where it is done electromagnetically.
These relays are faster than electromagnetic relays. More importantly, the provide
isolation between the control and the power circuits.
Flyback Diode -
Since an inductor (the relay coil) cannot change it's current instantly, the flyback
diode provides a path for the current when the coil is switched off. Otherwise, a
voltage spike will occur causing arcing on switch contacts or possibly destroying
switching transistors.
Page | 32
Literature Review and Theory
Transformer :-
A transformer is an electrical device that transfers electrical energy between two or more
circuits through electromagnetic induction.
a step down transformer is one whose secondary voltage is less than its primary
voltage. It is designed to reduce the voltage from the primary winding to the
secondary winding. This kind of transformer steps down the voltage applied to
it.
Specification :-
voltage: 2 x 12V
current: 1 x 1000mA
7805 Voltage
Regulator IC :-
Voltage sources in a
circuit may have fluctuations resulting in not giving fixed voltage outputs. Voltage
regulator IC maintains the output voltage at a constant value. 7805 IC, a voltage
regulator integrated circuit (IC) is a member of 78xx series of fixed linear voltage
regulator ICs used to maintain such fluctuations. The xx in 78xx indicates the fixed
output voltage it provides. 7805 IC provides +5 volts regulated power supply with
provisions to add heat sink as well.
Page | 33
Literature Review and Theory
7805 IC Rating :-
Current rating Ic = 1A
Details of 7805 IC :-
Page | 34
Literature Review and Theory
METHDOLOGY
In this section we will explain the steps or path needed in order to achieve the goal of the project
MICROCONTROLLER CONTROLLED AND MONITERED LOAD THROUGH
BLUETOOTH.
Project Flow
Gathering the parts needed for the project
Page | 35
METHDOLOGY
D Display (16*2)
Android Application
Step down transformer
Voltage regulator (IC7805)
Jumper wires
Appliances
Resistors
BLOCK DIAGRAM
REGULATED
POWER
SUPPLY
APPLIANCES
BLUETOOTH RELAY
MODULE MODULE
HC-05
ARDUINO
UNO
R-3
ANDROID LCD
APPLICATION 16*2
Page | 36
METHDOLOGY
Block Diagram Description
Our project consist of major blocks such as
The regulated 5V supply is give to the Arduino board and to the Relay Module.Bluetooth
Module HC-05 gets supply from the Arduino board.
Android application:
In this project an android phone is used as the remote control for the user alongside with an App
called ArduDroid or with Bluetooth Terminal App .
These are simple Android App which will make controlling the pins of Arduino Uno from an
Android phone wirelessly.This Apps employs a simple Android user interface to control Arduino
Unos digital and PWM pins, send text commands to Arduino uno and receive data from
Arduino over Bluetooth module.
Arduino Uno:
Arduino is the main part of the project. Arduino is programmed according to the function
required to perform. In this project the digital pin function is only required to make the system
work, so Arduino Uno board is programmed to only support that feature.
Page | 37
METHDOLOGY
Relay Module:
Relay is an electrically operated switch.It is a device mostly used to control circuit automatically.
Basically, it is an automatic switch to control high current circuit using low current signal. It also
provide isolation between two circuit.In this project there is no real need to isolate one circuit
from other, but we will use an Arduino Uno to control the relay. It controls the 4 different loads.
Bluetooth module:
The Bluetooth Module used in this project is HC-05.This module has 4 pins vcc, Ground, TX
and RX. This Bluetooth Module can be used with Bluetooth enabled phone or tablet or laptop
and the range of this module is approx. 10 m. It is connected to Arduino to serially receive data
sent by Bluetooth terminal app.
LCD:
A 16*2 LCD is used to display the ON and OFF status of the Appliances.It has 16 pins
Appliances Used:
Bulb1
Bulb2
Bulb3
Bulb4
Page | 38
METHDOLOGY
CIRCUIT DIAGRAM
Page | 39
METHDOLOGY
Pin Connections:
Connecting the Arduino Uno board to the Bluetooth Module:
Pin 5(R/W) of LCD is ground and pin 3 is ground through a potentiometer in order to adjust
contrast.
VCC pin of Relay Module is connected to 5V supply and GND pin of it is grounded.Relay has
two contacts normally open (NO) and normally closed (NC) contacts along with a common
terminal (COM).Appliances are connected to this contacts.
Page | 40
METHDOLOGY
Working Principle:
A 230V AC supply is connected to the primary side of a step down transformer.tis transformer
step down the 230V AC to 12V AC. The output of transformer is then fed to a Bridge rectifier
along with a capacitor,this converts the 12V AC to 12V DC output.This output is then fed to a
5V volatage regulator(IC 7805).From this we get regulated 5V DC supply which is then fed to
5V pin of Arduino Uno board and to the VCC pin of of 4 Relay Module as shown in circuit
diagram.
Bluetooth Module is connected to Arduino Uno Board to serially receive the data sent Bluetooth
Terminal App through android.A 16*2 LCD is used to display the ON and OFF status of
electronics appliances.The electronics appliances are connected to relays.
Firstly we have to download and install the Bluetooth Terminal app on our phone which gives
the feature of operating the appliances by sending signals .When we power ON our project we
see that a LED on Bluetooth Module (HC 05) is blinking continuously.To operate it firstly we
have to pair the Bluetooth Module with our android phone.After pairing we notice that the LED
is now blinking with some delay this shows that the android phone has been paired up with the
Bluetooth Module.
Whenever we send data by our android phone, Arduino checks for the character send and puts
the appropriate pins high or low according to the program written on it.These pins control the
relays which in turns control the appliances.The LCD will display the status of appliances that
which is ON or OFF.Also on the app we get the status of ON and OFF.
Relay as two contacts normally open contact (NO) and normally closed contact (NC).When input
to relay goes high its NO contacts get open and NC contacts get closed.
Page | 41
METHDOLOGY
CODING AND PROGRAMMING:
The Arduino language is merely a set of C/C++ functions that can be called from
your code. sketch undergoes minor changes (e.g. automatic generation of function
prototypes) and then is passed directly to a C/C++ compiler.
STEP 1
Arduino microcontrollers come in a variety of types. The most common is
the Arduino UNO, but there are specialized variations. Before you begin building,
do a little research to figure out which version will be the most appropriate for your
project.
STEP 2
To begin, you'll need to install the Arduino Programmer, aka the integrated
development environment (IDE).
STEP 3
Connect your Arduino to the USB port of your computer. This may require a
specific USB cable. Every Arduino has a different virtual serial-port address, so
you 'll need to reconfigure the port if you're using different Arduinos.
STEP 4
Set the board type and the serial port in the Arduino Programmer.
Page | 42
METHDOLOGY
STEP 5
Test the microcontroller by using one of the preloaded programs, called sketches,
in the Arduino Programmer. Open one of the example sketches, and press the
upload button to load it. The Arduino should begin responding to the program: If
you've set it to blink an LED light, for example, the light should start blinking.
STEP 6
To upload new code to the Arduino, either you'll need to have access to code you
can paste into the programmer, or you'll have to write it yourself, using the
Arduino programming language to create your own sketch. An Arduino sketch
usually has five parts: a header describing the sketch and its author; a section
defining variables; a setup routine that sets the initial conditions of variables and
runs preliminary code; a loop routine, which is where you add the main code that
will execute repeatedly until you stop running the sketch; and a section where you
can list other functions that activate during the setup and loop routines. All
sketches must include the setup and loop routines.
STEP 7
Once you've uploaded the new sketch to your Arduino, disconnect it from your
computer and integrate it into your project as directed.
Like the setup line before it, this is another required Arduino-
sketch function. While the setup() function sets your Arduino
up, the loop() functionloops!
This is where the bulk of your Arduino sketch is executed. The
program starts directly after the opening curly bracket (}), runs
until it sees the closing curly bracket (}), and jumps back up to
the first line in loop() and starts all over.
Page | 43
METHDOLOGY
The loop() function will run over-and-over-and-over until the
Arduino is reset.
1. #include <LiquidCrystal.h>
include the liquid crystal display library code
initialize the library by associating any needed LCD interface pin with the
arduino pin number it is connected to.
3. pinMode(pin, mode)
pinMode(8, OUTPUT);
4. Serial.begin(speed)
Sets the data rate in bits per second (baud) for serial data transmission.
Serial.begin(9600);
5. lcd.print(data)
lcd.print("Arduino project");
6. lcd.begin(cols, rows)
Initializes the interface to the LCD screen, and specifies the dimensions
(width and height) of the display.
.begin() needs to be called before any other LCD library commands.
lcd.begin(16, 2);
Page | 44
METHDOLOGY
7. digitalWrite(pin, value)
digitalWrite(12,HIGH);
8. delay()
Pauses the program for the amount of time (in miliseconds) specified as
parameter.
delay(100);
9. Serial.print(val)
10.lcd.setCursor(col, row)
Position the LCD cursor; that is, set the location at which subsequent text
written to the LCD will be displayed.
lcd.setCursor(1, 1);
11.lcd.display()
Turns on the LCD display, after it's been turned off with noDisplay().
Page | 45
METHDOLOGY
Our Program:-
#include <LiquidCrystal.h>
void setup() {
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);
pinMode(9, OUTPUT);
pinMode(8, OUTPUT);
digitalWrite(11, HIGH);
digitalWrite(10, HIGH);
digitalWrite(9, HIGH);
digitalWrite(8, HIGH);
Serial.begin(9600);
lcd.begin(16, 2);
lcd.print("Arduino project");
digitalWrite(12,HIGH);
delay(100);
digitalWrite(12,LOW);
delay(100);
digitalWrite(12,HIGH);
delay(200);
Page | 46
METHDOLOGY
digitalWrite(12,LOW);
delay(100);
digitalWrite(12,HIGH);
delay(300);
digitalWrite(12,LOW);
void loop() {
if (Serial.available() > 0)
char c = Serial.read();
if(c=='1')
digitalWrite(11,LOW);
Serial.print("##PORT 1 ON##");
lcd.setCursor(0, 0);
delay(300);
lcd.setCursor(1, 1);
lcd.print("1");
digitalWrite(12,HIGH);
delay(200);
digitalWrite(12,LOW);
delay(100);
digitalWrite(12,HIGH)
Page | 47
METHDOLOGY
delay(100);
digitalWrite(12,LOW);
if (c == '2')
digitalWrite(10,LOW);
Serial.print("##PORT 2 ON##");
lcd.setCursor(0, 0);
delay(300);
lcd.setCursor(5, 1);
lcd.print("2");
digitalWrite(12,HIGH);
delay(200);
digitalWrite(12,LOW);
delay(100);
digitalWrite(12,HIGH);
delay(100);
digitalWrite(12,LOW);
if (c == '3')
digitalWrite(9,LOW);
Serial.print("##PORT 3 ON##");
Page | 48
METHDOLOGY
lcd.setCursor(0, 0);
delay(300);
lcd.setCursor(9, 1);
lcd.print("3");
digitalWrite(12,HIGH);
delay(200);
digitalWrite(12,LOW);
delay(100);
digitalWrite(12,HIGH);
delay(100);
digitalWrite(12,LOW);
if (c == '4')
digitalWrite(8,LOW);
Serial.print("##PORT 4 ON##");
lcd.setCursor(0, 0);
delay(300);
lcd.setCursor(13, 1);
lcd.print("4");
digitalWrite(12,HIGH);
delay(200);
Page | 49
METHDOLOGY
digitalWrite(12,LOW);
delay(100);
digitalWrite(12,HIGH);
delay(100);
digitalWrite(12,LOW);
if(c=='9')
digitalWrite(11,LOW);
digitalWrite(10,LOW);
digitalWrite(9,LOW);
digitalWrite(8,LOW);
lcd.setCursor(0, 0);
delay(300);
lcd.setCursor(1, 1);
lcd.print("1");
lcd.setCursor(5, 1);
lcd.print("2");
lcd.setCursor(9, 1);
lcd.print("3");
lcd.setCursor(13, 1);
lcd.print("4");
Page | 50
METHDOLOGY
digitalWrite(12,HIGH);
delay(200);
digitalWrite(12,LOW);
delay(200);
digitalWrite(12,HIGH);
delay(200);
digitalWrite(12,LOW);
digitalWrite(12,HIGH);
delay(200);
digitalWrite(12,LOW);
delay(200);
digitalWrite(12,HIGH);
delay(200);
digitalWrite(12,LOW);
if(c=='I')
digitalWrite(11,HIGH);
digitalWrite(10,HIGH);
digitalWrite(9,HIGH);
digitalWrite(8,HIGH);
lcd.setCursor(0, 0);
Page | 51
METHDOLOGY
delay(300);
lcd.setCursor(1, 1);
lcd.print(" ");
lcd.setCursor(5, 1);
lcd.print(" ");
lcd.setCursor(9, 1);
lcd.print(" ");
lcd.setCursor(13, 1);
lcd.print(" ");
digitalWrite(12,HIGH);
delay(200);
digitalWrite(12,LOW);
delay(500);
digitalWrite(12,HIGH);
delay(500);
digitalWrite(12,LOW);
if(c=='A')
digitalWrite(11,HIGH);
lcd.setCursor(0, 0);
delay(300);
Page | 52
METHDOLOGY
lcd.setCursor(1, 1);
lcd.print(" ");
digitalWrite(12,HIGH);
delay(300);
digitalWrite(12,LOW);
if(c=='B')
digitalWrite(10,HIGH );
lcd.setCursor(0, 0);
delay(300);
lcd.setCursor(5, 1);
lcd.print(" ");
digitalWrite(12,HIGH);
delay(200);
digitalWrite(12,LOW);
if(c=='C')
digitalWrite(9,HIGH );
lcd.setCursor(0, 0);
Page | 53
METHDOLOGY
lcd.print(" ##PORT 3 OFF## ");
delay(300);
lcd.setCursor(9, 1);
lcd.print(" ");
digitalWrite(12,HIGH);
delay(200);
digitalWrite(12,LOW);
if(c=='D')
digitalWrite(8,HIGH);
Serial.print("**PORT 4 OFF**");
lcd.setCursor(0, 0);
lcd.print("**PORT 4 OFF**");
delay(300);
lcd.setCursor(13, 1);
digitalWrite(12,HIGH);
lcd.print(" ");
digitalWrite(12,HIGH);
delay(200);
digitalWrite(12,LOW);
if (c == '7')
Page | 54
METHDOLOGY
lcd.noDisplay();
if (c == '8')
lcd.display();
Page | 55
METHDOLOGY
Results Analysis and Discussions
Page | 56
RESULT ANALYSIS AND DISCUSSION
Our project works as follows:-
At first arduino initialises every thing which is wrtien on void setup page then
enters to void loop section than fron serial communication port no. (0,1) in which
bluetooth module HC-05 is connected. We send a data from the adroid app with
the hep of these data arduino initiates certain action based on our program writen
on arduino.
Page | 57
RESULT ANALYSIS AND DISCUSSION
Problem faced with Arduino:
Page | 58
RESULT ANALYSIS AND DISCUSSION
to learn the basics of many things likes Serial communication, ADC,
I2C etc.
Arduino has many SMD equipments as well as many layer circuit
design . If any fault or circuitry damage occur, we cannot repair it. In
this case we have only an option to replace the arduino.
Program is not easy with arduino, for large project programming may
be difficult to program it.
Its operating range is very short , it has a few meter distance which is
unable to communicate at out range of Bluetooth hence we cannot
control device.
It has complicated design and complexity in circuit, if it damaged
anyway we cannot repair it.
It is very sensitive device with overvoltage that means it damages early
with a small increases in voltage and atmospheric humidity.
If any component of bluetooth module is damaged , we cannot find it
and resolve it.
Page | 59
RESULT ANALYSIS AND DISCUSSION
Bluetooth module HC-05 is easily connect with android plateform
application but pairing and controlling is difficult through other
OS/Plateform devices such as windows, IOS etc.
In our project using solid state relay which consist from semiconductor
devices like transistor, diode, optocoupler etc. so voltage and current
characteristic is not linear, distorting waveform to some extent. Single pole
single throw (spst) types are available , OFF state leakage currents flow
through the switching devices, and a high ON state voltage drop and
sometimes power dissipation resulting in additional heat sinking required.
Page | 60
RESULT ANALYSIS AND DISCUSSION
In our project, we use transformer fed power supply which output is AC so
required additional rectifier and voltage regulator circuit which convert to
AC into DC.
We cannot reduce the losses in transformer which dissipates in the form of
heat due to core and cupper losses. Sometimes transformer becomes noisy.
5 volt supply from voltage regulator fed to arduino, when we send a serial
data to arduino UNO through Bluetooth module during operation it takes
large current to operate. This is why more power loss in voltage regulator.
Using voltage regulation 7805 which provide stable 5volt, 1A supply which
does not sufficient some times to hungry arduino system, so we required
transistor to control output current.
Transformer makes bulky, heavy and takes more space in our project, as
long as we use capacitor fed power supply instead of transformer fed power
supply , it will become more portable .
Page | 61
RESULT ANALYSIS AND DISCUSSION
Conclusions and Future Scope
Future Scope
2. Loads can also controlled and monitored through GSM for long distance.
Page | 62
CONCLUSION AND FUTURE SCOPE
Working:
5. Like the Photon, the ESP8266 is a 3.3V device so you must use 3.3V to power it. DO
NOT use the Arduino 5V as this will damage the ESP8266 permanently. The 3.3V
supply in the standard Arduino also doesnt supply enough current to power the
ESP8266 during its peak transients. Use a 3.3V power supply with at least 500 mA
of current. I used the 3.3V supply in the Elegoo 37 Sensor kit. It was perfect because
it fits in a standard Breadboard, making one side rail 3.3V and the other side rail
5.0V.
6. You can use the ESP8266 in a couple ways. In this tutorial we will only demonstrate
that it is functioning by Serial mirroring the Arduino IDE Serial port to a Software
Serial port connected to the ESP8266. This will also allow us to change some of its
setting and get it connected to your Home WiFi. You could also buy a Serial USB to
TTL converter and use a command based serial program like Putty to send these
commands. I did not have a Serial USB to TTL converter so I opted to just use an
Arduino and Serial mirror the commands. If you use a Serial USB to TTL converter
please be sure to also use a level shifter so that you dont apply 5V to the ESP8266.
7. There is also a ESP8266wifi library and Arduino IDE addition you can add that
includes libraries for using the ESP8266 which you can use to directly program
instead of just sending commands with a prompt. Ultimately this will be the easiest
way to setup the ESP8266 for most IoT projects but this deserves a whole separate
article.
Connect the ESP8266 TX pin to pin 2 of the Arduino, RX pin to pin 3 of the Arduino
and make sure the 3.3V supplys GND and the Arduino GND are connected. Next
pull up the ESP8266 Enable pin to 3.3V using a high 2k resistor. You will be
powering the Arduino through its USB port, this will also be how you communicate
to the ESP8266 .
Page | 63
CONCLUSION AND FUTURE SCOPE
2.Modify explain with GSM:
Description:
The figure shown above is the simple block diagram of our project. It is a simple
illustration of how we have implemented our project and the various parts involved in it.
From the above representation, the first Mobile station is used as a transmitting section
from which the subscriber sends text messages that contain commands and instructions to
the second mobile station which is based on a specific area where our control system is
located. The mobile phone as indicated in the block diagram is a Nokia 3310 mobile set.
The received SMS message is stored in the SIM memory of the phone and then extracted
by the microcontroller and processed accordingly to carry out specific operations. The
relay driver (BUFFER ULN2003) is used to drive the relay circuits which switches the
different appliances connected to the interface. The LCD is used to indicate the status of
the operation performed by the microcontroller and also its inclusion makes the overall
Page | 64
CONCLUSION AND FUTURE SCOPE
system user-friendly. The input from different sensors are feed to micro-controller and
processed to operate respective task semi autonomously and autonomously.
Working:
The voltage supplied to a DC motor controls its speed.
Arduino cannot supply variable DC output
1. Arduino lacks a true analog output.
2. Use Pulse-width modulation (PWM) to simulate a variable DC supply
voltage.
3. PWM is a common technique for supplying variable power levels to slow
electrical devices such as resistive loads, LEDs, and DC motors.
4. Arduino Uno has 6 PWM pins: Digital I/O pins 3, 5, 6, 9,10, and 11
Page | 65
CONCLUSION AND FUTURE SCOPE
4.Temperature measurement for load:
Page | 66
CONCLUSION AND FUTURE SCOPE
Working:
1. Connect the circuit above figure.
2. Give power to the system .
3. Vary temperature across LM 35.
4. Working of LED and relay is observed .
Conclusion:
Also it can be concluded that the objectives of this project has been
successfully met and the-y are as follows:
Page | 67
CONCLUSION AND FUTURE SCOPE
Normally closed(NC) contact,
A common terminal whenever input to relays goes high its NC contact gets
open and its NO contact gets closed.
Page | 68
CONCLUSION AND FUTURE SCOPE
Reference
Books:-
Web sites: -
www.arduino.cc
www.adafruit.com
www.circuitdigest.com
www.electricaltechnology.org
www.electroschematics.com
www.diyhacking.com
www.hatis.techtarget.com
www.spakfun.com
www.fritzing.org
Page | 69
REFRENCE