Professional Documents
Culture Documents
Submitted by
ABSTRACT
The main aim of the project is to design and implement the
automatic light & fan on system.
This project describes the design and implementations of a
controller for the ac loads.
Load will work when any movement is detected near by it. A PIR
sensor detects the movement and sends a signal to the
microcontroller which on the load for a particular amount of time
according to the program.
BLOCK DIAGRAM
HARDWARE REQUIREMENTS
POWER SUPPLY
MICROCONTROLLER (AT89S52/AT89C51)
PUSHBUTTON
PIR
BC547
LED
1N4007
RESISTORS
CAPACITORS
POWER SUPPLY
Bridge rectifier
230 V
AC
50
Hz
5v Regulator
5V
DC
12V step down
transformer
Filter(470f)
MICROCONTROLLER
It is a smaller computer
Has on-chip RAM, ROM, I/O ports...
CPU
I/O
Port
RAM ROM
Serial
Timer COM
Port
A single chip
Microcontroller
External
interrupts
Int
er
ru
pt
C
Co
P
nt
U
rol
O
SC
On
O
chi
np
ch
RO
ip
M
R
for
Bu
4A
pro
M
s
I/O
gra
Co
Por
P0
P1 P2
m
P3
nt
ts
cod
rol Addre
Timer/Coun
ter
Ti
me
Ti
rme
1
r0
S
e
r
i
TxD
a
RxD
Co
un
ter
In
pu
ts
FEATURES OF AT89S51/52
Compatible
8K
Endurance:
256
Watchdog Timer
PIN DESCRIPTION
PIR SENSORS
The PIR (Passive Infra-Red) Sensor is a pyroelectric device that detects
motion by measuring changes in the infrared levels emitted by surrounding
objects. This motion can be detected by checking for a high signal on a single
I/O pin.
Apparent motion is detected when an infrared source with one temperature,
such as a human, passes in front of an infrared source with another
temperature, such as a wall
Features: Single bit output
Small size makes it easy to conceal
Compatible with all Parallax microcontrollers
Working of project
The output from the PIR i.e., passive infrared detector is amplified to a
transistor BC547, the output of which at the collector is connected to
pin 1 of the MC.
While any moving object is sensed by the PIR it develops logic high at
its output which gets inverted by the transistor used to develop a logic
low at pin 1 of MC.
Transistor is connect with a relay to control ac loads
kernels,
debuggers,
simulators,
integrated
environments,
i.e the programs written in one of the HLL like C will compile the
code to run on the system for a particular processor like x86
(underlying microprocessor in the computer).
BIBILOGRAPHY
www.atmel.com
www.beyondlogic.org
www.wikipedia.org
www.howstuffworks.com
www.alldatasheets.com
U
O
Y
K
TH A N