You are on page 1of 9

Term Paper of Microcontroller

PRAVEEN

Roll No. : 40

B.Tech MBA ECE (Integrated)

Topic: Application of microcontroller in home automation

Abstract: In this term paper I have discuss about


microcontroller and some device control
The topic of term paper is to which we can use for home automation
use the microcontroller for home purposes.
automation. The term home automation
means automation of house hold appliance Introduction:
particularly through electronics means so
that work can we done simply and Microcontroller:
A few years ago, system control functions
perfectly without much efforts. There is a were implemented using logic components
long range of both analog and digital and were usually large, heavy boxes. Later
devices that serve a wide variety of on, microprocessors were used and the
purposes. Devices like pushbuttons, entire controller could fit onto a small
switches, keypads, temperature and circuit board. As the process of
humidity sensors, lights, buzzers, speakers, miniaturization continued, all of the
components needed for a controller were
LCD displays, servo motors and stepper
built right onto one chip. By only
motors and some complex devices include including the features specific to the task,
motion sensors, accelerometers, infrared cost is relatively low. A typical
and sonar rangefinders, electronic microcontroller has bit manipulation
compasses, and GPS units. instructions, easy7 and direct access to I/O,
Microcontrollers can even used to send and quick and efficient interrupt
the data and receive data from other processing. Therefore, a microcontroller is
a highly integrated device which includes,
systems like your personal computer,
on one chip, all or most of the parts needed
home automation systems, lighting and to perform an application control function.
environment controllers, industrial control Microcontrollers come in many varieties.
systems, laboratory control systems, etc. Depending on the power and features that
There are varieties of microcontroller are needed, customers might choose a 4, 8,
devices that can be used for home 16, or 32 bit microcontroller.
purposes.
Figure1. Typical Micro Controller Unit
Block Diagram
2) Microcontrollers are dedicated to one
task and run one specific program. The
program is stored in ROM (read-only
memory) and generally does not change.

3) Microcontrollers are often low-power


devices. A desktop computer is almost
always plugged into a wall socket and
might consume 50 watts of electricity. A
battery-operated microcontroller might
consume 50 milli-watts.

4) A microcontroller has a dedicated input


device and often (but not always) has a
small LED or LCD display for output. A
microcontroller also takes input from the
device it is controlling and controls the
device by sending signals to different
Microcontroller also called components in the device.
microcomputer or MCU or µC is a small
computer on a single integrated circuit For example, the microcontroller inside a
consisting internally of a relatively simple TV takes input from the remote control
CPU, clock, timers, I/O ports, and and displays output on the TV screen. The
memory. The program memory in the form controller controls the channel selector, the
of NOR flash or OTP ROM is also often speaker system and certain adjustments on
included on chip, as well as a typically the picture tube electronics such as tint and
small amount of RAM. Microcontrollers brightness. The engine controller in a car
are designed for small or dedicated takes input from sensors such as the
applications. oxygen and knock sensors and controls
things like fuel mix and spark plug timing.
Microcontrollers are "special purpose A microwave oven controller takes input
computers." There are a number of other from a keypad, displays output on an LCD
common characteristics that define display and controls a relay that turns the
microcontrollers in better way. If a microwave generator on and off. A
computer matches a majority of these microcontroller is often small and low
characteristics, then we can call it a cost. The components are chosen to
"microcontroller": minimize size and to be as inexpensive as
possible.
1) Microcontrollers are "embedded" inside
some other device (often a consumer A microcontroller is often, but not always,
product) so that they can control the ruggedized in some way. The
features or actions of the product. Another microcontroller controlling a car's engine,
name for a microcontroller, therefore, is for example, has to work in temperature
"embedded controller." extremes that a normal computer generally
cannot handle. A car's microcontroller in
Alaska has to work fine in -30 degree F (- electronic means that allow for things
34 C) weather, while the same impracticable, overly expensive or simply
microcontroller in Nevada might be not possible in recent past decades. The
term may be used in contrast to the more
operating at 120 degrees F (49 C). When
mainstream "building automation", which
we add the heat naturally generated by the refers to industrial uses of similar
engine, the temperature can go as high as technology, particularly the automatic or
150 or 180 degrees F (65-80 C) in the semi-automatic control of lighting, doors
engine compartment. and windows, Heating, Ventilation and Air
Conditioning, and security and
In many products, such as microwave surveillance systems.
ovens, the demand on the CPU is fairly The techniques employed in home
low and price is an important automation include those in building
consideration. In these cases, automation as well as the control of home
manufacturers turn to dedicated entertainment systems, houseplant
microcontroller chips -- chips that were watering, pet feeding, changing the
ambiance "scenes" for different events
originally designed to be low-cost, small,
(such as dinners or parties), and the use of
low-power, embedded CPUs. The domestic robots.
Motorola 6811 and Intel 8051 are both
good examples of such chips. There is also 1) Old time home wiring:
a line of popular controllers called "PIC
microcontrollers" created by a company Traditionally, homes have been wired for
called Microchip. By today's standards, four systems: electrical power, telephones,
these CPUs are incredibly minimalistic; TV outlets (cable or antenna), and a
doorbell. Typically, components and
but they are extremely inexpensive when
wiring for these are kept within a closet,
purchased in large quantities and can often power metering box or a patch panel.
meet the needs of a device's designer with
A television remote control was first
just one chip. patented in 1950, and a remote control
device was first used by the Germans in
A typical low-end microcontroller chip World War I to control motorboats. With
might have 1,000 bytes of ROM and 20 the invention of the electronic micro (auto)
bytes of RAM on the chip, along with controller and the widespread uptake of
eight I/0 pins. In large quantities, the cost digital communication technology, the cost
of these chips can sometimes be just of electronic control fell rapidly and
pennies. You certainly are never going to reliability improved. Remote and
intelligent control technologies were
run Microsoft Word on such a chip --
adopted by the building services industry
Microsoft Word requires perhaps 30 and appliance manufacturers worldwide,
megabytes of RAM and a processor that as they offer the end user easily accessible
can run millions of instructions per second. and/or greater control of their products
But then, you don't need Microsoft Word
to control a microwave oven, either.

Home automation designates an


emerging practice of increased automation
of household appliances and features in
residential dwellings, particularly through
Home automation can also provide a
remote interface to home appliances or the
automation system itself, via telephone
line, wireless transmission or the internet,
to provide control and monitoring via a
Smart Phone or Web browser
An example of a remote monitoring
implementation of home automation could
be when a smoke detector detects a fire or
smoke condition, and then all lights in the
house will blink to alert any occupants of
the house to the possible fire. If the house
is equipped with a home theatre, a home
automation system can shut down all audio
and video components to display the alert
or make an audible announcement. The
system could also call the home owner on
A typical domestic patch panel.
their mobile phone to alert them, or call
the fire brigade or alarm monitoring
2) Benefits of home automation: company to bring it to their attention.

As the amount of controllable fittings and 3) Works in home automation:


domestic appliances in the home rises, the
ability of these devices to interconnect and
communicate with each other digitally
becomes a useful and desirable feature.
The consolidation of control or monitoring
signals from appliances, fittings or basic
services is an aim of Home automation.
In simple installations this may be as
straightforward as turning on the lights
when a person enters the room. In
advanced installations, rooms can sense
not only the presence of a person inside
but know who that person is and perhaps
set appropriate lighting, temperature,
music levels or television channels, taking
into account the day of the week, the time
of day, and other factors.
Other automated tasks may include setting
the air conditioning to an energy saving 3.1) HVAC
setting when the house is unoccupied, and
Heating, Ventilation and Air Conditioning
restoring the normal setting when an
(HVAC) solutions include temperature and
occupant is about to return. More
humidity control. This is generally one of
sophisticated systems can maintain an
the most important aspects to a
inventory of products, recording their
homeowner. An Internet-controlled
usage through an RFID tag, and prepare a
thermostat, for example, can both save
shopping list or even automatically order
money and help the environment, by
replacements.
allowing the homeowner to control the
building's heating and air conditioning 3.6) Security system:
systems remotely.
With Home Automation, the consumer can
select and watch cameras live from an
3.2) Lighting:
Internet source to their home or business.
Lighting control systems can be used to Security cameras can be controlled,
control household electric lights in a allowing the user to observe activity
variety of ways like when sun rises the around a house or business right from a
lights automatically off and when sun set Monitor or touch panel. Security systems
then lights automatically on. There are can include motion sensors that will detect
some others ways like: any kind of unauthorized movement and
notify the user through the security system
• Extinguish all the lights of the house or via cell phone.
• Replace manual switching with
Automation of on and off signals for This category also includes control and
any or all lights distribution of security cameras.
• Regulation of electric illumination
levels according to the level of • Detection of possible intrusion
ambient light available o sensors of detection of
• Change the ambient color of lighting movement
via control of LEDs or electronic o sensors of magnetic contact of
dimmers door/window
o sensors of glass breaking
3.4) Natural lighting: o sensors of pressure changes
• Simulation of presence.
Natural lighting control involves • Detection of fire, gas leaks, water
controlling window shades, LCD shades, leaks.
draperies and awnings. Recent advances • Medical alert. Tele assistance.
include use of RF technology to avoid
wiring to switches and integration with 3.7) Intercoms:
third party home automation systems for
An intercom system allows
centralized control.
communication via a microphone and loud
speaker between multiple rooms.
3.5) Audio and Video:
This category includes audio switching • Ubiquity in the external control as
and distribution. Audio switching much internal, remote control from the
determines the selection of an audio Internet, PC, wireless controls (p.ej.
source. Audio distribution allows an audio PDA with Wi-Fi), electrical
source to be heard in one or more rooms. equipment.
This feature is often referred to as 'multi- • Transmission of alarms.
• Intercommunications.
zone' audio.
This includes video switching and 3.8) Robotics:
distribution, allowing a video source to be
viewed on multiple TVs. This feature is
• Control of home robots, using if
often referred to as 'multi-zone' video.
necessary domestic electric beacon.
Integration of the intercom to the • Home robot communication (i.e. using
telephone or of the video door entry Wi-Fi) with the domestic network and
system to the television set, allowing the other home robots.
residents to view the door camera
automatically.
3.9) Example:
reliable circuit that takes over the task of
controlling the room lights as well us
counting number of persons/ visitors in the
room very accurately. When somebody
enters into the room then the counter is
incremented by one and the light in the
room will be switched ON and when any
one leaves the room then the counter is
decremented by one. The light will be only
switched OFF until all the persons in the
room go out. The total number of persons
inside the room is also displayed on the
seven segment displays.
A homemade Internet-enabled cat feeder. The microcontroller does the above job. It
receives the signals from the sensors, and
4) Some home automation controls this signal is operated under the control of
using microcontroller are shown software which is stored in ROM.
below: Microcontroller AT89S52 continuously
4.1) Automatic Room light monitor the Infrared Receivers, When any
object pass through the IR Receiver's then
Controller with Visitor Counter
the IR Rays falling on the receive are
(AT89S52):
obstructed , this obstruction is sensed by
Automatic Room Light Controller with the Microcontroller
Visitor Counter using Microcontroller is a
4.2) RFID Based Home Security as desired with a 10cm diameter antenna
System: attached to the transponder. The Base
Station is built by using the Popular 8051
RFID based security system is a wireless family Microcontroller. It gets the tag ID
system to detect and allow only the and if the tag ID is stored in its memory
authorized persons. The system was based then the microcontroller will allow the
on Radio Frequency Identification (RFID) person inside.
technology and consists of a passive RFID RFID Reader Module, are also called as
tag. The passive micro transponder tag interrogators. They convert radio waves
collects power from the 125 KHz magnetic returned from the RFID tag into a form
field generated by the base station, gathers that can be passed on to Controllers, which
information about the Tag ID and sends can make use of it. RFID tags and readers
this information to the base station. The have to be tuned to the same frequency in
base station receives, decodes and checks order to communicate. RFID systems use
the information available in its Database many different frequencies, but the most
and Manchester code was used to send common and widely used Reader
those information. The system performed frequency is 125 KHz.
4.3) Home Temperature temperature then an alarm is switched ON
Controller (AT89S52): until the stop switch is pressed.
The System is fully controlled by the
Temperature control unit indicate the microcontroller AT89s52. It is a popular 8
temperature and it is also used as bit microcontroller. The circuit consists of
controller. In home this system is very four switches, in which two buttons are
beneficial for controlling the room temp used to increment and decrement the
automatically according to the temperature value and the next button is to
requirements. The system will get the start the Thermostat function and the other
temperature from the IC and it will display button is used to stop the thermostat
the temperature over the seven segment function.
display and this temperature was compared All the above functions are monitored and
with the value stored by the user and if the controlled by the 8 bit
Room temperature goes beyond the Preset

Conclusion: distance from home. Hence home


automation today is becoming a must
Home automation is a technique through necessity thing for a common man to a
which we can control our home appliances high status symbol person. Because this a
through internet or may manually (through technology age and every one want to
automatic means). We can set the temp of remain secure and live the life with
the room according to our choice before comfort.
we reaches at home or we can keep on
security of the house even if we are at far
References: Sites:

Book: 1) Wikipedia

1) Microcontroller and Embedded Systems 2) 8051 projects


by Mohammad Ali Mazidi
3) Wiki how
2) Microcontroller by Ayala

You might also like