PROJECT
HOME AUTOMATION USING 8052
MICROCONTROLLER
PROJECT REPORT
B.N BANDODKAR COLLEGE OF SCIENCE(AUTONOMOUS) ,
THANE
DEPARTMENT OF PHYSICS
MSC PART II SEMESTER III
YEAR 2023 - 2024
Project By : Guide
Rutuja Deshmukh Prof Dr.U.B Gokhe
Seat No. 2017420370 Ms Suchitra Jena
ACKOWLEDGEMENT
I WOULD LIKE TO EXPRESS MY GRATITUDE AND APPRECIATION TO ALL THOSE
WHO GAVE ME THE POSSIBILITY TO COMPLETE MY PROJECT, I RESPECT AND
THANK MS. SUCHITRA JENA MAM OF B. N. BANDODKAR COLLEGE OF SCIENCE
FOR HER ENCOURAGEMENT AND MORE OVER FOR HER SUPPORT AND GUIDANCE
WHICH MADE MY PROJECT SUCCESSFUL.
I OWE MY DEEP GRATITUDE TO PROF. Dr. [Link] WHO TOOK KEEN INTEREST
ON OUR PROJECT WORK AND GUIDED US ALL ALONG TILL THE COMPLETION OF
OUR PROJECT WORK BY PROVIDING ALL THE NECESSARY INFORMMATION AND
MOTIVATION FOR DEVELOPING A GOOD SYSTEM.
WE WOULD LIKE TO EXPRESS OUR APPRECIATION FOR HOD [Link]
MESHRAM FOR REMARKABLE SUPPORT. THE CONTRIBUTIONS SHE MADE TO US
HAVE BEEN INVALUABLE TO US.
RUTUJA DESHMUKH SHUBHAM MASURKAR
INDEX
INTRODUCTION
BLOCK DIAGRAM
CIRCUIT DIAGRAM
COMPONENTS
WORKING
FLOW CHART
PROGRAM
ADVANTAGES AND APPLICATIONS
BIBLIOGRAPHY
CONCLUSION
UPGRADATION OF PROJECT
INTRODUCTION
The project name is home automation using 8052
microcontroller. The circuit in a home automation
system using an 8051 microcontroller serves as the
central control hub that connects various components
and devices within the household. The main purpose of
a home automation project using an 8052
microcontroller is to create an intelligent system that
enables remote control and automation of various
devices and systems within a household. This project
aims to enhance convenience, energy efficiency,
safety, and overall comfort by integrating smart
technology into the home environment.
BLOCK DIAGRAM
Bluetooth
module
(HC-05)
2- Channel Relay Light
8051
driver module
µController
CIRCUIT DIAGRAM
Circuit connections of this project are been made.
Bluetooth module’s RXD and TXD pins are directly
connected to the TXD and RXD pins of Microcontroller.
Two Channel relay module is used as a switch for
turning On and Off the home appliances running on AC
mains. Light is connected at P2.2 via relay with 8052
microcontroller. An 11.0592 MHz Crystal oscillator is
used in this circuit for generating clock signal for
microcontroller.
COMPONENTS
8052 microcontroller
Bluetooth Module HC05
Relay
Bulb
Holder
Wire
Android phone
Bluetooth controller app Android app
33Pf capacitor
10K resistor
1k resistor
Power Supply
WORKING
In this project we have used 8051 microcontroller for
controlling the whole process of this project. And a
Bluetooth module is used for controlling the home
appliances wirelessly. Home appliances will turned ON
and OFF when user will touch button in the Bluetooth
mobile app in Android mobile phone. To run this project,
first we need to download Bluetooth app form Google
play store.
System Design and Workflow:
1. Hardware Setup:
1. Connect the 8051 microcontroller to
relays/actuators for controlling appliances.
2. Interface the Bluetooth module with the
microcontroller for wireless communication.
3. Optionally, connect sensors to monitor
environmental conditions or trigger automated
actions.
2. Bluetooth Communication:
1. Set up the Bluetooth module for
communication with the mobile device using
serial communication protocols (like UART).
2. Establish a connection between the mobile
app and the Bluetooth module of the system.
3. Microcontroller Code:
1. Write code for the 8051 microcontroller to
handle Bluetooth communication protocols.
2. Implement logic to receive commands from
the mobile device and control the connected
appliances accordingly (turn on/off, adjust
settings, etc.).
4. Mobile App Development:
1. Develop a mobile app (for Android/iOS) to send
control signals to the Bluetooth module.
2. Design a user-friendly interface with buttons,
sliders, or other controls to interact with the
system.
5. User Interaction:
1. Users can pair their mobile device with the
Bluetooth module of the home automation
system.
2. Using the mobile app, users can send
commands (like turning on lights, controlling
temperature, etc.) to the system via Bluetooth.
6. Testing and Debugging:
1. Test the entire system to ensure proper
communication and functionality.
2. Debug any issues encountered during testing,
such as connectivity or control problems.
FLOWCHART
Start
First initialize the given
project
`
Connect the 8051 microcontroller to relays
Interface the Bluetooth module with the
microcontroller for wireless
communication
Establish a connection between the mobile app and
the Bluetooth module of the system
Implement logic to receive commands from the
mobile device and control the connected appliances
accordingly
Debug any issues encountered during testing, such
as connectivity or control problems
Stop
WORKING PROJECT
Before :
After :
PROGRAM CODE
#include<reg51.h>
sbit Fan=P2^0;
sbit Light=P2^1;
char str;
char Charin=0;
void delay(int time)
{
unsigned int i,j;
for(i=0;i<time;i++)
for(j=0;j<1275;j++);
}
void Serialwrite(char byte)
{
SBUF=byte;
while(!TI);
TI=0;
}
void Serialprintln(char *p)
{
while(*p)
{
Serialwrite(*p);
p++;
}
Serialwrite(0x0d);
}
void Serialbegin()
{
TMOD=0x20;
SCON=0x50
TH1=0xfd;
TR1=1;
}
void main()
{
P2=0x00;
Serialbegin();
Serialprintln("System Ready...");
delay(50);
while(1)
{
while(!RI);
Charin=SBUF;
str=Charin;
RI=0;
if(str=='1')
{
Fan=1;
Serialprintln(" Fan ON");
delay(50);
}
else if(str=='2')
{
Fan=0;
Serialprintln(" Fan OFF");
delay(50);
}
else if(str=='3')
{
Light=1;
Serialprintln(" Light ON");
delay(50);
}
else if(str=='4')
{
Light=0;
Serialprintln(" Light OFF");
delay(50);
}
str=0;
}
}
ADVANTAGES AND APPLICATIONS
Advantages of home automation with 8051
microcontroller:
1. Increased convenience: Users can control various
devices remotely, enhancing comfort and ease of use.
2. Energy efficiency: Automation allows for better
management of power consumption, reducing energy
waste.
3. Enhanced security: Integrated security features like
motion sensors and door locks can improve home
safety.
4. Cost-effectiveness: Automation can lead to long-term
cost savings by optimizing resource usage.
Applications of home automation with 8051
microcontroller:
1. Lighting control: Automatic switching on/off based on
occupancy or ambient light levels.
2. Temperature control: Regulating heating, ventilation,
and air conditioning systems for energy efficiency.
3. Home security: Monitoring and controlling security
devices like cameras, alarms, and access control
systems.
4. Appliance control: Remote operation and scheduling
of appliances such as washing machines, ovens, or
coffee makers.
BIBLIOGRAPHY
[Link]
[Link]
Referred to books –
1. Ajay Deshmukh : Microprocessors & Microcontollers
2. M. Hazidi : The 8051 Microcontrollers & Embedded
Systems
3. Springer : 8051 Microcontrollers: Fundamental
Concepts, Hardware, Software and Applications in
Electronics
CONCLUSION
Home automation using an 8051 microcontroller offers
a practical and efficient solution for controlling various
aspects of a household. It provides convenience,
energy savings, improved security, and cost-
effectiveness. With advancements in technology, this
field continues to evolve, offering even more
possibilities for home automation.
UPGRADATION OF PROJECT
To upgrade the project, consider the following
enhancements:
1. Integration with voice assistants: Enable control
through voice commands using popular voice assistants
like Amazon Alexa or Google Assistant.
2. Internet of Things (IoT) integration: Connect the
system to the internet to control and monitor devices
remotely from anywhere.
3. Mobile application: Develop a dedicated mobile app
for enhanced user interface and control options.
4. Expand sensor network: Add more sensors to
monitor additional parameters like air quality, humidity,
or water leakage.