Project Proposal: Microprocessor and Microcontrollers
Project Proposal: Microprocessor and Microcontrollers
Session:
2K16
Group Members:
Rana Noman (16-TE-107)
M Wajid Zulfiqar (16-TE-37)
M Shehriyar (16-TE-105)
Section:
(Alpha)
In this project, we will design a home automation project using simple components using which
different electrical appliances can switched on or off. The project is based on Arduino and we
have used Arduino UNO for the project.
Circuit Diagram:
Components
The list of components mentioned here are specifically for controlling 4 different loads.
Arduino UNO
HC – 05 Bluetooth Module
10 KΩ Resistor
20 KΩ Resistor
1 KΩ Resistor X 4
2N2222 NPN Transistor X 4
1N4007 Diode X 4
12 V Relay X 4
Prototyping board (Bread board)
Connecting wires
12 V Power supply
Smartphone or tablet (Bluetooth enabled)
Component Description
Arduino UNO:
The 8 – bit ATmega 328P microcontroller based Arduino UNO is used in the project to control
different components like Bluetooth module and relay network.
Bluetooth Module:
The Bluetooth Module used in this project is HC- 05. As seen in the image below, this Bluetooth
module has 4 – pins for VCC (5V), ground, TX and RX. This Bluetooth can be used with
Bluetooth enabled phone (or tablet or laptop) and the range of this module is approximately 10
meters.
A 4 – channel relay board is used in this project to control four different loads. It has all the
necessary components and connections like base current limiting resistor, flyback diode, LED
indicators and header for connecting it to other devices.
Working Process
A simple home automation project using Arduino UNO, Bluetooth module and a smartphone.
The aim of this project is to control different home appliances using a smartphone. The working
of the project is explained here.
When the power is turned on, the connection LED on the Bluetooth module starts blinking. We
need to start the “Bluetooth Controller” app in our smartphone and get connected to the
Bluetooth module. If the pairing is successful, the LED becomes stable.
Now, in the app, we need to set different keys for different loads and their corresponding value
that must be transmitted when that key is pressed. The following image shows a set of keys to
control 4 loads and an additional key to turn off all the loads.
Applications:
Using this project, we can turn on or off appliances remotely i.e. using a phone or tablet.
The project can be further expanded to a smart home automation system by including
some sensors like light sensors, temperature sensors, safety sensors etc. and automatically
adjust different parameters like room lighting, air conditioning (room temperature), door
locks etc. and transmit the information to our phone.
Additionally, we can connect to internet and control the home from remote location over
internet and also monitor the safety.
Limitations
The system needs a continuous power supply to be practical or else we might not be able
to control the appliances.
Hence, best way to design the system efficiently would be to implement both the
automated control and manual control through switches at a time.
Code for Ardunio
#include <SoftwareSerial.h>
int state = 0;
int flag = 0;
void setup()
pinMode(Loads[i], OUTPUT);
}
mySerial.begin(9600);
digitalWrite(Loads[i], LOW);
void loop()
if(mySerial.available() > 0)
state = mySerial.read();
flag=0;
switch(state)
flag=1;
break;
flag=1;
break;
flag=1;
break;
flag=1;
break;
flag=1;
break;
flag=1;
break;
flag=1;
break;
flag=1;
break;
digitalWrite(Loads[1], LOW);
digitalWrite(Loads[2], LOW);
digitalWrite(Loads[3], LOW);
flag=1;
break;
}