SlideShare una empresa de Scribd logo
1 de 8
Descargar para leer sin conexión
K682 - Automatic Room Light Controller with Visitor Counter Page 1
 
Automatic Room Light Controller with Visitor Counter
K-682
This Project "Automatic Room Light Controller with Visitor Counter" is a 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.
Visitor counting is simply a measurement of the visitor traffic entering and exiting offices, malls,
sports venues, etc. Counting the visitors helps to maximise the efficiency and effectiveness of
employees, floor area and sales potential of an organisation. Visitor counting is not limited to the
entry/exit point of a company but has a wide range of applications that provide information to
management on the volume and flow of people throughout a location. A primary method for counting the
visitors involves hiring human auditors to stand and manually tally the number of visitors who pass by a
certain location. But human-based data collection comes at great expense.
Specifications & Features
 Micro controller based interface using Atmel AT89C2051
 Infrared Sensor Based Detection
 Entry and exit detection
 Counting up to 9999 (4 digit)
 Relay based switching output for external load
 Relay output – 230V AC/DC-3A rated changeover contacts (See the data sheet of Relay)
 4 digit seven segment LED Display
 Adjustable IR Detection Range
 Relay status and IR Detection LED indicator
 Diode protection for reverse polarity connection of DC supply to the PCB
 Onboard regulator for regulated supply to the kit
 Power supply: 8 to 12V DC Input
 Operating Current - 500ma Aprox
CIRCUIT EXPLANATION
MICROCONTROLLER INTERFACE
See the block diagram of unite. It’s based on a pre programmed Atmel AT89S5x micro controller.
The circuit used in this kit uses only one IC – the AT89C2051. It is one of the 8051-based micro
controllers from ATMEL. The IC is pre programmed. Using a micro controller greatly reduces the
component count while providing more features than could be found using dedicated logic ICs. Cost is
also lower. It is pre-programmed with software to provide all the timing functions.
The microcontroller does the above job. It receives the signals from the sensors, and this signal is
operated under the control of software which is stored in ROM. Microcontroller continuously monitor the
IR Sensors, When any object pass through the IR sensor generates a pulse and interrupt controller. So
visitors in the room are counted up by Sensor1 and Sensor2 counts visitors going out of room. As soon
as visitor count reaches 0 the room light turns off. Room lights switched on and off Via 12V SPDT Relay
MCU Cock
Clock signal for the micro controller provided by crystal X1 (11.0592 MHZ) and two 33PF (C2, C3)
capacitors hanging off it ensure correct loading for the crystal, so that it starts reliably. The frequency of
the oscillator is internally divided and to get the operating frequency. This high frequency clock source is
used to control the sequencing of CPU instruction.
MCU Reset
Power on reset is provided by R13 and C1. The 89C2051 micro controller has an active high reset signal
K682 - Automatic Room Light Controller with Visitor Counter Page 2
 
IR Object detection Sensor Module
The sensor senses the light reflected from the objects and feeds the output to the comparator. When the
sensor is above the objects the light falling on it from the source reflects to the sensor, The sensor
senses the reflected light to give an output, which is fed to the comparator.
The comparator compares the analogue inputs from sensors with a fixed reference voltage. If this
voltage is greater than the reference voltage the comparator outputs a low voltage, and if it is smaller the
comparator generates a high voltage that acts as input for the decision-making device (microcontroller).
IR Sensor Module interface to micro controller via, Port P3.0 and P3.1 (pin no 2 and 3)
LED Display interfacing
We can now interface a four digit 7-Seg to the micro controller. We use Scanning (Multiplex) Principle
where one 7-seg is displayed after another but this process is very fast hence the flickering cannot be
seen by human eye. In the circuit diagram shows the circuit for interfacing four digit 7 segment displays.
When interfacing more than one 7-seg display the segment's (A to G) of all displays are connected
together whereas their ANODE are switched ON one after another. Consider we have to display '27' on
the above 7-seg display so we TURN ON the first transistor by setting its corresponding pin to 1 & then
give the 7-seg equivalent code for '2'. Then we TURN OFF the first transistor & TURN ON the second &
output its corresponding 7-seg equivalent code of '7' .Then we again go back to display '2' this is a never
ending loop.
This minimizes the number of pins needed to drive the display but requires a more complex method to
do it. Multiplexing is a technique where each display is “active” for a short period of time. In this kit, each
digit is turned ON once every 8mS for a period of 1mS. There is an OFF time of 1mS between digits.
Resistors R1 - 8 limit the maximum current that can flow through each segment. Transistors Q1 and Q4
provide power to each digit.
RELAY INTERFACE
A single pole dabble throw (SPDT) relay is connected to port P3.7 of the micro controller through a driver
transistor. Relay is used to switch the external load like external light, fan ETC. The relay requires 12
volts at a current of around 100 ma, which cannot provided by the micro controller. So the driver
transistor is added. Normally the relay remains off. As soon as pin of the micro controller goes high, the
relay operates. When the relay operates and releases. Diode D2 is the standard diode on a mechanical
relay to prevent back EMF from damaging Q5 when the relay releases. LED L1 indicates relay on.
HOW to Connect Load with Relay?
When the project is working and according to its load, it could happen an incorrect operating of the
output. If it is the case, you have to install a circuit between 2 relay's contacts used for the connection.
See the drawing map.
 
The output of the projects is controlled by a relay, allowing any load until 230V AC / 3 Amp. as maximum
consumption. The relay has 3 output terminals the normally open at quiescent (NO), the normally closed
at quiescent (NC) and the common. The operating of this mechanism is the same as a switch with two
(2) terminals NO and common, if you wish that the output will be activated during the timer, or between
the NC and the common to obtain the reverse operating. In the drawing, you could appreciate the typical
connection for a devices operating at 12 VDC and to operate at 230 VAC.
K682 - Automatic Room Light Controller with Visitor Counter Page 3
 
 
When the project is working and according to its load, it could happen an incorrect operating of the
output. If it is the case, you have to install a circuit between 2 relay's contacts used for the connection.
See the drawing map.
Power supply
The power supply circuit. It’s based on 3 terminal voltage regulators, which provide the required
regulated +5V and unregulated +12V.
The DC 12V AT 500MA applies to the circuit via CN2. The 12V DC output is filtered by capacitor C4.
Regulators IC LM7805 (U2) provides regulated 5V power supplies, for Micro controller and LED Display
and other logic circuitry. Capacitors C6 and C7 bypass any ripple in the regulated outputs. Diode D1
protects against reverse polarity connection of the input power. The unregulated voltage of
approximately 12V is required for relay driving circuit
PART EXPLANATION
MICRO CONTROLLER AT89C2051
The AT89C2051 is a low-voltage, high-performance CMOS 8-bit microcomputer with 2K bytes of Flash
programmable and erasable read-only memory (PEROM). The device is manufactured using Atmel’s
high-density non-volatile memory technology and is compatible with the industry-standard MCS-51
instruction set. By combining a versatile 8-bit CPU with Flash on a monolithic chip, the Atmel
AT89C2051 is a powerful microcomputer which provides a highly-flexible and cost-effective solution to
many embedded control applications.
Compatible with MCS®-51Products
2K Bytes of Reprogrammable Flash Memory
2.7V to 6V Operating Range
Two-level Program Memory Lock
128 x 8-bit Internal RAM
15 Programmable I/O Lines
Two 16-bit Timer/Counters
Six Interrupt Sources
Programmable Serial UART Channel
Direct LED Drive Outputs
On-chip Analog Comparator
K6
 
Se
A
dis
dis
ele
A
the
se
nu
Th
ho
ho
nu
Th
the
LM
Th
reg
us
an
pro
reg
Cr
A c
pie
682 - Autom
even Segm
seven-segm
splay devic
splays. Sev
ectronic dev
seven segm
ey can be
even segme
umbers 0, 6
he seven s
orizontal se
orizontally. T
umeric); how
he segment
e optional D
M7805 (3 TE
his is used
gulators are
seful in a w
nd safe ope
ovided, the
gulators, Mo
rystal oscil
crystal osci
ezoelectric
matic Room
ent LED D
ment displa
e for displa
ven-segmen
vices for dis
ment displa
combined t
ents are arr
, 7 and 9 m
egments a
gment on
There are a
wever, these
s of a 7-seg
DP decimal
ERMINAL V
to make t
e available
wide range o
erating are
ey can del
ore informa
lator
llator is an e
material to
m Light Co
isplay
ay, less com
aying decim
nt displays
splaying num
y, as its na
to produce
ranged in a
ay be repre
re arranged
the top an
also fourtee
e have mos
gment disp
point (an "e
VOLTAGE
the stable v
in the TO-
of applicatio
a protectio
liver over
ation please
electronic c
create an e
ntroller wit
mmonly kno
mal numera
s are wide
merical info
ame indicate
simplified
n oblique, o
esented by t
d as a rec
d bottom.
en - segme
stly been re
lay are refe
eighth segm
REGULAT
voltage of
220 - pack
ons. Each t
n, making
1A output
e refer Data
circuit that u
electrical sig
th Visitor C
own as a se
als that is a
ly used in
ormation.
es, is comp
representat
or italic, arr
two or more
ctangle of t
Additionally
ent displays
placed by d
erred to by t
ment") is use
ER)
+5V for ci
kage and w
type emplo
it essentia
current. A
sheet 0f LM
uses the me
gnal with a v
Counter
even-segme
an alternati
digital clo
posed of se
tions of the
rangement,
e different g
two vertical
y, the seve
s and sixte
dot-matrix d
the letters A
ed for the d
rcuits. The
ith several
oys internal
ally indestru
Although de
M7805
echanical re
very precise
ent indicato
ve to the m
ocks, electr
ven elemen
e Hindu-Ara
which aids
glyphs on se
l segments
enth segme
een-segmen
isplays.
A to G, as s
isplay of no
LM7805 is
fixed outpu
current lim
uctible. If a
esigned pr
esonance of
e frequency
or, is a form
more comp
ronic mete
nts. Individu
abic numer
s readability
even-segme
s on each
ent bisects
nt displays
shown to th
on-integer n
s three ter
ut voltages,
miting, therm
adequate h
imarily as
f a vibrating
y. This frequ
Pag
m of electro
plex dot-ma
rs, and ot
ually on or
rals. Often
y. Each of
ent displays
side with o
the rectan
(for full alp
he right, whe
umbers.
minal posit
making th
mal shut do
eat sinking
fixed volta
g crystal of
uency is
e 4
onic
atrix
her
off,
the
the
s.
one
gle
pha
ere
tive
em
own
g is
age
K6
 
co
dig
SP
It
ou
ele
sw
us
a l
Th
Ph
A
de
682 - Autom
ommonly us
gital integra
PDT RELAY
closes the
utside. The
ectromagne
witch's motio
seful feature
low voltage
he relay ope
hotodiode (
photodiode
epending up
matic Room
ed to keep
ated circuits
Y – 12V
voltage le
relay takes
et. The elec
on (ON and
e of a relay
e circuit (e.g
erates mech
     
(PT1-2)
e is a type
pon the mod
m Light Co
track of tim
, and to sta
ss point of
s advantage
ctromagneti
d OFF) is co
is that it ca
g. 5VDC) to
hanically, so
    
e of photo
de of operat
ntroller wit
e (as in qua
bilize freque
f contact w
e of the fac
ic coil attra
ontrolled by
an be used
o switch the
o it cannot o
detector ca
tion.
th Visitor C
artz wristwa
encies for r
while the re
t that when
acts a stee
y the curren
to electrica
e power in
operate at h
apable of c
Counter
atches), to p
radio transm
emote contr
n electricity
l plate, whi
t flowing to
lly isolate d
a high volt
high speed.
converting
provide a st
mitters/recei
rol works t
flows throu
ich is attac
the coil, or
different par
age circuit
light into e
table clock s
ivers.
to control t
ugh a coil, i
ched to a s
r not, respe
rts of a circu
(e.g. 230 V
 
either curre
Pag
signal for
he equipm
it becomes
switch. So
ctively. A v
uit. It will all
VAC or mor
nt or volta
e 5
ent
an
the
ery
low
re).
ge,
K682 - Automatic Room Light Controller with Visitor Counter Page 6
 
Photodiodes are similar to regular semiconductor diodes except that they may be either exposed (to
detect vacuum UV or X-rays) or packaged with a window or optical fiber connection to allow light to
reach the sensitive part of the device. Many diodes designed for use specifically as a photodiode will
also use a “PIN” junction rather than the typical “PN” junction.
Infrared light-emitting (IR LED – IR1-2)
An infrared light-emitting diode (LED) is a type of electronic device that emits infrared light not visible to
the naked eye. An infrared LED operates like a regular LED, but may use different materials to produce
infrared light. This infrared light may be used for a remote control, to transfer data between devices, to
provide illumination for night vision equipment, or for a variety of other purposes.
An infrared LED is, like all LEDs, a type of diode, or simple semiconductor. Diodes are designed so that
electric current can only flow in one direction. As the current flows, electrons fall from one part of the
diode into holes on another part. In order to fall into these holes, the electrons must shed energy in the
form of photons, which produce light.
Operational amplifier (LM358)
An Operational amplifier ("op-amp") is a DC-coupled high-gain electronic voltage amplifier with a
differential input and, usually, a single-ended output.[1] An op-amp produces an output voltage that is
typically hundreds of thousands times larger than the voltage difference between its input terminals.[2]
Operational amplifiers are important building blocks for a wide range of electronic circuits. They had their
origins in analog computers where they were used in many linear, non-linear and frequency-dependent
circuits. Their popularity in circuit design largely stems from the fact the characteristics of the final
elements (such as their gain) are set by external components with little dependence on temperature
changes and manufacturing variations in the op-amp itself.
Op-amps are among the most widely used electronic devices today, being used in a vast array of
consumer, industrial, and scientific devices. Many standard IC op-amps cost only a few cents in
moderate production volume; however some integrated or hybrid operational amplifiers with special
performance specifications may cost over $100 US in small quantities. Op-amps may be packaged as
components, or used as elements of more complex integrated circuits.
Assembly
Use the component overlay on the PCB to place the components starting with the lowest height
components first. Make sure that the diode, LED and electrolytic capacitors are inserted the right way
around.
First check the components supplied in the Kit against the Component listing. Identify all the
components. It is generally best to solder the lowest height components first: the IC SOCKETS,
resistors, & diodes. The IC socket should be installed first. Begin solders the pin of the socket. The entire
resistor should be installed next. In order to find their values you have to check the colour code. All the
diode should be installed next. Make sure to get the diodes the correct way around. Match up the bar on
the diodes with the bar on the overlay. Afterwards solder the capacitors, transistors, LED display & other
remaining components. Especially care should be taken in order to find the polarity of the electrolytic
capacitors.
K682 - Automatic Room Light Controller with Visitor Counter Page 7
 
Note: - Please before assemble the kit; please see the photograph of assembled projects or
demonstration video. (Included in CD)
Use the component overlay on the PCB to place the components in the following order
1. Resistors and diodes
2. IC sockets
3. Ceramic capacitors and Preset.
4. Seven segment LED display
5. LM7805 regulators. Use needle nosed pliers to bend the leads of the regulator. It does not
require a heat sink. Screw down onto to PCB.
6. Crystal, LED’s, Photo diode, IR LED’s and transistors. (Especially care should be taken in order
to find the polarity of the LED, Photo diode and IR LED’s)
7. Electrolytic capacitors. Make sure you insert them the correct way around. Mount C6 (1000uf)
Capacitor Horizontal
8. Relay, and Electrolytic capacitor’s
NOTE: The PCB was designed such that the main micro controller PCB & Sensor PCB may be
separated. Interconnection of two PCBs is achieved with a short length of ribbon wire or burg strip
connector
Placement of IR LED (IR 1 - 2) and Photo Diode (PT1 - 2)
Bend the leads and Photo diode (PT and IR) down at right angles, about 3mm from the LED body, as
shown below. Use a pair of long nose pliers to hold the leads while bending. Cut the leads off to a
length of about 9mm from the bend Position. Please see the photograph of assembled projects.
(Included in CD)
REFERENCES
www.atmel.com
For a datasheet on the AT89C2051 micro controller
www.national.com / www.ti.com
For a datasheet on the LM7805 or LM358
K682 - Automatic Room Light Controller with Visitor Counter Page 8
 
PART (COMPONENTS) LIST Automatic Room Light Controller with Visitor Counter-K682
Main Board – PCB 1
R1 ~ R8 - 220E [RED, RED, BROWN] (8 NOS)
R9 ~ 15 - 10K [BROWN, BLACK, ORANGE] (7 NOS)
R16 - 1K [BROWN, BLACK, RED]
C1 - 10UF / 25V Electrolytic
C2, 3 - 33PF Ceramic Disc (2 NOS)
C4 - 220UF / 16V Electrolytic
C5, 6 - 100KPF DISC (0.1UF / 104) (2 NOS)
X1 - 11.0592 MHZ Crystal
D1, 2 - IN4007 Diode (2 NOS)
L1 - 3 mm / 5 mm LED
Q1 ~ Q4 - BC557 / BC558 (PNP TRANSISTOR) (4 NOS)
Q5 - BC547 / BC548 (NPN TRANSISTOR)
U1 - AT89C2051 MICROCONTROLLER (Pre Programmed MCU)
U2 - LM7805 - 3 Pin Voltage Regulator
DS1 ~ DS4 - LT542 / A5611 (4 NOS)
COMMEN ANOD SEVEN SEGMENT LED DISPLAY
RLY - 12V SPDT PCB Mount Relay
1 nos - 20 PIN IC SOCKET
CN3 - 3 PIN TERMINALS BLOCK (not include in the kit)
CN2 - 2 PIN TERMINALS BLOCK (not include in the kit)
Sensor Board – PCB 2
R1, 2 - 220E [RED, RED, BROWN] (2 NOS)
R3, 4, 5, 6 - 10K [BROWN, BLACK, ORANGE] (4 NOS)
R7, 8 - 1K [BROWN, BLACK, RED] (2 NOS)
PR1, 2 - 10K CERMET – PRESET (2 NOS)
L1, 2 - 3 mm / 5 mm LED (2 NOS)
IR1, 2 - 5mm IR LED (Infrared Transmitter) (2 NOS)
PT1, 2 - 5mm Black IR Photo diode (Infrared Receiver) (2 NOS)
U1 - LM358 Dual Operational Amplifier
1 nos - 8 PIN IC SOCKET

Más contenido relacionado

La actualidad más candente

POSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEMPOSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEMKEVSER CARPET
 
Cockpit White Box
Cockpit White BoxCockpit White Box
Cockpit White Boxncct
 
Keypad locking system using 8051
Keypad locking system using 8051Keypad locking system using 8051
Keypad locking system using 8051manu anand
 
One Touch Electrical Appliances Control Using Microcontroller 89C51
One Touch Electrical Appliances Control Using Microcontroller 89C51One Touch Electrical Appliances Control Using Microcontroller 89C51
One Touch Electrical Appliances Control Using Microcontroller 89C51Pawan Bahuguna
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detectionAnurag Alaria
 
AUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROLAUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROLshiv kapil
 
Infrared Remote Controlled Devices
Infrared Remote Controlled DevicesInfrared Remote Controlled Devices
Infrared Remote Controlled DevicesNarayan Jaiswal
 
Industrial Temperature Controller System
Industrial Temperature Controller SystemIndustrial Temperature Controller System
Industrial Temperature Controller SystemEdgefxkits & Solutions
 
DIGITAL HEART BEAT COUNTER
DIGITAL HEART BEAT COUNTERDIGITAL HEART BEAT COUNTER
DIGITAL HEART BEAT COUNTERDeevanshu Swani
 
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYEldhose George
 
Automatic DC Fan using LM35 (english version)
Automatic DC Fan using LM35 (english version)Automatic DC Fan using LM35 (english version)
Automatic DC Fan using LM35 (english version)Nurlatifa Haulaini
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 
Automatic IN/OUT Indicator with Doorbell Manual
Automatic IN/OUT Indicator with Doorbell ManualAutomatic IN/OUT Indicator with Doorbell Manual
Automatic IN/OUT Indicator with Doorbell ManualTezpur University
 
Kalyan abstrct googl
Kalyan abstrct googlKalyan abstrct googl
Kalyan abstrct googldevakalyan143
 
Temperature Based Fan Controller
Temperature Based Fan Controller Temperature Based Fan Controller
Temperature Based Fan Controller richa1910n
 
Digital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontrollerDigital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontrollerSaylee joshi
 
Remote Controlled Home Appliance
Remote Controlled Home Appliance Remote Controlled Home Appliance
Remote Controlled Home Appliance Samir Ahmed Shimul
 

La actualidad más candente (19)

Medicine reminder
Medicine reminderMedicine reminder
Medicine reminder
 
POSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEMPOSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEM
 
Cockpit White Box
Cockpit White BoxCockpit White Box
Cockpit White Box
 
Keypad locking system using 8051
Keypad locking system using 8051Keypad locking system using 8051
Keypad locking system using 8051
 
One Touch Electrical Appliances Control Using Microcontroller 89C51
One Touch Electrical Appliances Control Using Microcontroller 89C51One Touch Electrical Appliances Control Using Microcontroller 89C51
One Touch Electrical Appliances Control Using Microcontroller 89C51
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detection
 
AUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROLAUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROL
 
Infrared Remote Controlled Devices
Infrared Remote Controlled DevicesInfrared Remote Controlled Devices
Infrared Remote Controlled Devices
 
Industrial Temperature Controller System
Industrial Temperature Controller SystemIndustrial Temperature Controller System
Industrial Temperature Controller System
 
DIGITAL HEART BEAT COUNTER
DIGITAL HEART BEAT COUNTERDIGITAL HEART BEAT COUNTER
DIGITAL HEART BEAT COUNTER
 
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITYELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
ELECTRONICS PROJECT REPORT OF HOME AUTOMATION CUM BUILDING SECUIRITY
 
Automatic DC Fan using LM35 (english version)
Automatic DC Fan using LM35 (english version)Automatic DC Fan using LM35 (english version)
Automatic DC Fan using LM35 (english version)
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
Scada for remote industrial plant
Scada for remote industrial plant Scada for remote industrial plant
Scada for remote industrial plant
 
Automatic IN/OUT Indicator with Doorbell Manual
Automatic IN/OUT Indicator with Doorbell ManualAutomatic IN/OUT Indicator with Doorbell Manual
Automatic IN/OUT Indicator with Doorbell Manual
 
Kalyan abstrct googl
Kalyan abstrct googlKalyan abstrct googl
Kalyan abstrct googl
 
Temperature Based Fan Controller
Temperature Based Fan Controller Temperature Based Fan Controller
Temperature Based Fan Controller
 
Digital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontrollerDigital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontroller
 
Remote Controlled Home Appliance
Remote Controlled Home Appliance Remote Controlled Home Appliance
Remote Controlled Home Appliance
 

Similar a Visiter counter doc

4 Way traffic controll new
4 Way traffic controll new4 Way traffic controll new
4 Way traffic controll newMainak Nandi
 
Applications of microcontroller
Applications of microcontrollerApplications of microcontroller
Applications of microcontrollerbabak danyal
 
IRJET- Transformer Monitoring and Protection System using AVR Atmega16 Mi...
IRJET-  	  Transformer Monitoring and Protection System using AVR Atmega16 Mi...IRJET-  	  Transformer Monitoring and Protection System using AVR Atmega16 Mi...
IRJET- Transformer Monitoring and Protection System using AVR Atmega16 Mi...IRJET Journal
 
Coin based mobile charger project report
Coin based mobile charger project reportCoin based mobile charger project report
Coin based mobile charger project reportkaushal chaubey
 
Monitoring and data logging system for a generator
Monitoring and data logging system for a generatorMonitoring and data logging system for a generator
Monitoring and data logging system for a generatorMoon Shahzad
 
Automatic room light controller using microcontroller and visitor counter
Automatic room light controller using microcontroller and visitor counterAutomatic room light controller using microcontroller and visitor counter
Automatic room light controller using microcontroller and visitor countereSAT Journals
 
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLERDC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLERTridib Bose
 
Dtmf based home appliance control 2
Dtmf based home appliance control 2Dtmf based home appliance control 2
Dtmf based home appliance control 2Krish Karn
 
Dtmf based home appliance control(1)
Dtmf based home appliance control(1)Dtmf based home appliance control(1)
Dtmf based home appliance control(1)Sanjay Kumar
 
Dtmf based home appliance control
Dtmf based home appliance controlDtmf based home appliance control
Dtmf based home appliance controlKrishna Malhotra
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfidSaurabh Uniyal
 
Temperature based fan speed control & monitoring using
Temperature based fan speed control & monitoring usingTemperature based fan speed control & monitoring using
Temperature based fan speed control & monitoring usingJagannath Dutta
 
Automatic car parking system by Himanshu
Automatic car parking system by HimanshuAutomatic car parking system by Himanshu
Automatic car parking system by Himanshuhimanshu3070
 
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCYAUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCYGaurav Singh
 

Similar a Visiter counter doc (20)

4 Way traffic controll new
4 Way traffic controll new4 Way traffic controll new
4 Way traffic controll new
 
Atomatic light controller
Atomatic light controllerAtomatic light controller
Atomatic light controller
 
Applications of microcontroller
Applications of microcontrollerApplications of microcontroller
Applications of microcontroller
 
IRJET- Transformer Monitoring and Protection System using AVR Atmega16 Mi...
IRJET-  	  Transformer Monitoring and Protection System using AVR Atmega16 Mi...IRJET-  	  Transformer Monitoring and Protection System using AVR Atmega16 Mi...
IRJET- Transformer Monitoring and Protection System using AVR Atmega16 Mi...
 
Deepak
DeepakDeepak
Deepak
 
Coin based mobile charger project report
Coin based mobile charger project reportCoin based mobile charger project report
Coin based mobile charger project report
 
Monitoring and data logging system for a generator
Monitoring and data logging system for a generatorMonitoring and data logging system for a generator
Monitoring and data logging system for a generator
 
Automatic room light controller using microcontroller and visitor counter
Automatic room light controller using microcontroller and visitor counterAutomatic room light controller using microcontroller and visitor counter
Automatic room light controller using microcontroller and visitor counter
 
Smart home copy
Smart home   copySmart home   copy
Smart home copy
 
Smart home
Smart homeSmart home
Smart home
 
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLERDC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
 
Dtmf based home appliance control 2
Dtmf based home appliance control 2Dtmf based home appliance control 2
Dtmf based home appliance control 2
 
Dtmf based home appliance control(1)
Dtmf based home appliance control(1)Dtmf based home appliance control(1)
Dtmf based home appliance control(1)
 
Dtmf based home appliance control
Dtmf based home appliance controlDtmf based home appliance control
Dtmf based home appliance control
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfid
 
Temperature based fan speed control & monitoring using
Temperature based fan speed control & monitoring usingTemperature based fan speed control & monitoring using
Temperature based fan speed control & monitoring using
 
5 FINAL PROJECT REPORT
5 FINAL PROJECT REPORT5 FINAL PROJECT REPORT
5 FINAL PROJECT REPORT
 
Speed control of motor
Speed control of motorSpeed control of motor
Speed control of motor
 
Automatic car parking system by Himanshu
Automatic car parking system by HimanshuAutomatic car parking system by Himanshu
Automatic car parking system by Himanshu
 
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCYAUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
AUTOMATIC GRID ON SENSING BAD VOLTAGE OR FREQUENCY
 

Más de Prem Kumar

Prem ppt on mcsa
Prem ppt on mcsaPrem ppt on mcsa
Prem ppt on mcsaPrem Kumar
 
Microeconomics
MicroeconomicsMicroeconomics
MicroeconomicsPrem Kumar
 
Foot step-power-generation-using-piezoelectric-material
Foot step-power-generation-using-piezoelectric-materialFoot step-power-generation-using-piezoelectric-material
Foot step-power-generation-using-piezoelectric-materialPrem Kumar
 
Presentation on motivation
Presentation on motivationPresentation on motivation
Presentation on motivationPrem Kumar
 
Design and fabrication of over voltage relay
Design and fabrication of over voltage relay Design and fabrication of over voltage relay
Design and fabrication of over voltage relay Prem Kumar
 
(Mhd ) by prem
(Mhd ) by prem (Mhd ) by prem
(Mhd ) by prem Prem Kumar
 
Corporate lab (dipti ranjan bal)
Corporate lab (dipti ranjan bal)Corporate lab (dipti ranjan bal)
Corporate lab (dipti ranjan bal)Prem Kumar
 
Corporate lab (dipti ranjan bal)
Corporate lab (dipti ranjan bal)Corporate lab (dipti ranjan bal)
Corporate lab (dipti ranjan bal)Prem Kumar
 

Más de Prem Kumar (9)

Dc machine
Dc machineDc machine
Dc machine
 
Prem ppt on mcsa
Prem ppt on mcsaPrem ppt on mcsa
Prem ppt on mcsa
 
Microeconomics
MicroeconomicsMicroeconomics
Microeconomics
 
Foot step-power-generation-using-piezoelectric-material
Foot step-power-generation-using-piezoelectric-materialFoot step-power-generation-using-piezoelectric-material
Foot step-power-generation-using-piezoelectric-material
 
Presentation on motivation
Presentation on motivationPresentation on motivation
Presentation on motivation
 
Design and fabrication of over voltage relay
Design and fabrication of over voltage relay Design and fabrication of over voltage relay
Design and fabrication of over voltage relay
 
(Mhd ) by prem
(Mhd ) by prem (Mhd ) by prem
(Mhd ) by prem
 
Corporate lab (dipti ranjan bal)
Corporate lab (dipti ranjan bal)Corporate lab (dipti ranjan bal)
Corporate lab (dipti ranjan bal)
 
Corporate lab (dipti ranjan bal)
Corporate lab (dipti ranjan bal)Corporate lab (dipti ranjan bal)
Corporate lab (dipti ranjan bal)
 

Último

Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptNarmatha D
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
The SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsThe SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsDILIPKUMARMONDAL6
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESNarmatha D
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the weldingMuhammadUzairLiaqat
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsSachinPawar510423
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptxNikhil Raut
 

Último (20)

Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.ppt
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
The SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsThe SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teams
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIES
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the welding
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documents
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptx
 

Visiter counter doc

  • 1. K682 - Automatic Room Light Controller with Visitor Counter Page 1   Automatic Room Light Controller with Visitor Counter K-682 This Project "Automatic Room Light Controller with Visitor Counter" is a 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. Visitor counting is simply a measurement of the visitor traffic entering and exiting offices, malls, sports venues, etc. Counting the visitors helps to maximise the efficiency and effectiveness of employees, floor area and sales potential of an organisation. Visitor counting is not limited to the entry/exit point of a company but has a wide range of applications that provide information to management on the volume and flow of people throughout a location. A primary method for counting the visitors involves hiring human auditors to stand and manually tally the number of visitors who pass by a certain location. But human-based data collection comes at great expense. Specifications & Features  Micro controller based interface using Atmel AT89C2051  Infrared Sensor Based Detection  Entry and exit detection  Counting up to 9999 (4 digit)  Relay based switching output for external load  Relay output – 230V AC/DC-3A rated changeover contacts (See the data sheet of Relay)  4 digit seven segment LED Display  Adjustable IR Detection Range  Relay status and IR Detection LED indicator  Diode protection for reverse polarity connection of DC supply to the PCB  Onboard regulator for regulated supply to the kit  Power supply: 8 to 12V DC Input  Operating Current - 500ma Aprox CIRCUIT EXPLANATION MICROCONTROLLER INTERFACE See the block diagram of unite. It’s based on a pre programmed Atmel AT89S5x micro controller. The circuit used in this kit uses only one IC – the AT89C2051. It is one of the 8051-based micro controllers from ATMEL. The IC is pre programmed. Using a micro controller greatly reduces the component count while providing more features than could be found using dedicated logic ICs. Cost is also lower. It is pre-programmed with software to provide all the timing functions. The microcontroller does the above job. It receives the signals from the sensors, and this signal is operated under the control of software which is stored in ROM. Microcontroller continuously monitor the IR Sensors, When any object pass through the IR sensor generates a pulse and interrupt controller. So visitors in the room are counted up by Sensor1 and Sensor2 counts visitors going out of room. As soon as visitor count reaches 0 the room light turns off. Room lights switched on and off Via 12V SPDT Relay MCU Cock Clock signal for the micro controller provided by crystal X1 (11.0592 MHZ) and two 33PF (C2, C3) capacitors hanging off it ensure correct loading for the crystal, so that it starts reliably. The frequency of the oscillator is internally divided and to get the operating frequency. This high frequency clock source is used to control the sequencing of CPU instruction. MCU Reset Power on reset is provided by R13 and C1. The 89C2051 micro controller has an active high reset signal
  • 2. K682 - Automatic Room Light Controller with Visitor Counter Page 2   IR Object detection Sensor Module The sensor senses the light reflected from the objects and feeds the output to the comparator. When the sensor is above the objects the light falling on it from the source reflects to the sensor, The sensor senses the reflected light to give an output, which is fed to the comparator. The comparator compares the analogue inputs from sensors with a fixed reference voltage. If this voltage is greater than the reference voltage the comparator outputs a low voltage, and if it is smaller the comparator generates a high voltage that acts as input for the decision-making device (microcontroller). IR Sensor Module interface to micro controller via, Port P3.0 and P3.1 (pin no 2 and 3) LED Display interfacing We can now interface a four digit 7-Seg to the micro controller. We use Scanning (Multiplex) Principle where one 7-seg is displayed after another but this process is very fast hence the flickering cannot be seen by human eye. In the circuit diagram shows the circuit for interfacing four digit 7 segment displays. When interfacing more than one 7-seg display the segment's (A to G) of all displays are connected together whereas their ANODE are switched ON one after another. Consider we have to display '27' on the above 7-seg display so we TURN ON the first transistor by setting its corresponding pin to 1 & then give the 7-seg equivalent code for '2'. Then we TURN OFF the first transistor & TURN ON the second & output its corresponding 7-seg equivalent code of '7' .Then we again go back to display '2' this is a never ending loop. This minimizes the number of pins needed to drive the display but requires a more complex method to do it. Multiplexing is a technique where each display is “active” for a short period of time. In this kit, each digit is turned ON once every 8mS for a period of 1mS. There is an OFF time of 1mS between digits. Resistors R1 - 8 limit the maximum current that can flow through each segment. Transistors Q1 and Q4 provide power to each digit. RELAY INTERFACE A single pole dabble throw (SPDT) relay is connected to port P3.7 of the micro controller through a driver transistor. Relay is used to switch the external load like external light, fan ETC. The relay requires 12 volts at a current of around 100 ma, which cannot provided by the micro controller. So the driver transistor is added. Normally the relay remains off. As soon as pin of the micro controller goes high, the relay operates. When the relay operates and releases. Diode D2 is the standard diode on a mechanical relay to prevent back EMF from damaging Q5 when the relay releases. LED L1 indicates relay on. HOW to Connect Load with Relay? When the project is working and according to its load, it could happen an incorrect operating of the output. If it is the case, you have to install a circuit between 2 relay's contacts used for the connection. See the drawing map.   The output of the projects is controlled by a relay, allowing any load until 230V AC / 3 Amp. as maximum consumption. The relay has 3 output terminals the normally open at quiescent (NO), the normally closed at quiescent (NC) and the common. The operating of this mechanism is the same as a switch with two (2) terminals NO and common, if you wish that the output will be activated during the timer, or between the NC and the common to obtain the reverse operating. In the drawing, you could appreciate the typical connection for a devices operating at 12 VDC and to operate at 230 VAC.
  • 3. K682 - Automatic Room Light Controller with Visitor Counter Page 3     When the project is working and according to its load, it could happen an incorrect operating of the output. If it is the case, you have to install a circuit between 2 relay's contacts used for the connection. See the drawing map. Power supply The power supply circuit. It’s based on 3 terminal voltage regulators, which provide the required regulated +5V and unregulated +12V. The DC 12V AT 500MA applies to the circuit via CN2. The 12V DC output is filtered by capacitor C4. Regulators IC LM7805 (U2) provides regulated 5V power supplies, for Micro controller and LED Display and other logic circuitry. Capacitors C6 and C7 bypass any ripple in the regulated outputs. Diode D1 protects against reverse polarity connection of the input power. The unregulated voltage of approximately 12V is required for relay driving circuit PART EXPLANATION MICRO CONTROLLER AT89C2051 The AT89C2051 is a low-voltage, high-performance CMOS 8-bit microcomputer with 2K bytes of Flash programmable and erasable read-only memory (PEROM). The device is manufactured using Atmel’s high-density non-volatile memory technology and is compatible with the industry-standard MCS-51 instruction set. By combining a versatile 8-bit CPU with Flash on a monolithic chip, the Atmel AT89C2051 is a powerful microcomputer which provides a highly-flexible and cost-effective solution to many embedded control applications. Compatible with MCS®-51Products 2K Bytes of Reprogrammable Flash Memory 2.7V to 6V Operating Range Two-level Program Memory Lock 128 x 8-bit Internal RAM 15 Programmable I/O Lines Two 16-bit Timer/Counters Six Interrupt Sources Programmable Serial UART Channel Direct LED Drive Outputs On-chip Analog Comparator
  • 4. K6   Se A dis dis ele A the se nu Th ho ho nu Th the LM Th reg us an pro reg Cr A c pie 682 - Autom even Segm seven-segm splay devic splays. Sev ectronic dev seven segm ey can be even segme umbers 0, 6 he seven s orizontal se orizontally. T umeric); how he segment e optional D M7805 (3 TE his is used gulators are seful in a w nd safe ope ovided, the gulators, Mo rystal oscil crystal osci ezoelectric matic Room ent LED D ment displa e for displa ven-segmen vices for dis ment displa combined t ents are arr , 7 and 9 m egments a gment on There are a wever, these s of a 7-seg DP decimal ERMINAL V to make t e available wide range o erating are ey can del ore informa lator llator is an e material to m Light Co isplay ay, less com aying decim nt displays splaying num y, as its na to produce ranged in a ay be repre re arranged the top an also fourtee e have mos gment disp point (an "e VOLTAGE the stable v in the TO- of applicatio a protectio liver over ation please electronic c create an e ntroller wit mmonly kno mal numera s are wide merical info ame indicate simplified n oblique, o esented by t d as a rec d bottom. en - segme stly been re lay are refe eighth segm REGULAT voltage of 220 - pack ons. Each t n, making 1A output e refer Data circuit that u electrical sig th Visitor C own as a se als that is a ly used in ormation. es, is comp representat or italic, arr two or more ctangle of t Additionally ent displays placed by d erred to by t ment") is use ER) +5V for ci kage and w type emplo it essentia current. A sheet 0f LM uses the me gnal with a v Counter even-segme an alternati digital clo posed of se tions of the rangement, e different g two vertical y, the seve s and sixte dot-matrix d the letters A ed for the d rcuits. The ith several oys internal ally indestru Although de M7805 echanical re very precise ent indicato ve to the m ocks, electr ven elemen e Hindu-Ara which aids glyphs on se l segments enth segme een-segmen isplays. A to G, as s isplay of no LM7805 is fixed outpu current lim uctible. If a esigned pr esonance of e frequency or, is a form more comp ronic mete nts. Individu abic numer s readability even-segme s on each ent bisects nt displays shown to th on-integer n s three ter ut voltages, miting, therm adequate h imarily as f a vibrating y. This frequ Pag m of electro plex dot-ma rs, and ot ually on or rals. Often y. Each of ent displays side with o the rectan (for full alp he right, whe umbers. minal posit making th mal shut do eat sinking fixed volta g crystal of uency is e 4 onic atrix her off, the the s. one gle pha ere tive em own g is age
  • 5. K6   co dig SP It ou ele sw us a l Th Ph A de 682 - Autom ommonly us gital integra PDT RELAY closes the utside. The ectromagne witch's motio seful feature low voltage he relay ope hotodiode ( photodiode epending up matic Room ed to keep ated circuits Y – 12V voltage le relay takes et. The elec on (ON and e of a relay e circuit (e.g erates mech       (PT1-2) e is a type pon the mod m Light Co track of tim , and to sta ss point of s advantage ctromagneti d OFF) is co is that it ca g. 5VDC) to hanically, so      e of photo de of operat ntroller wit e (as in qua bilize freque f contact w e of the fac ic coil attra ontrolled by an be used o switch the o it cannot o detector ca tion. th Visitor C artz wristwa encies for r while the re t that when acts a stee y the curren to electrica e power in operate at h apable of c Counter atches), to p radio transm emote contr n electricity l plate, whi t flowing to lly isolate d a high volt high speed. converting provide a st mitters/recei rol works t flows throu ich is attac the coil, or different par age circuit light into e table clock s ivers. to control t ugh a coil, i ched to a s r not, respe rts of a circu (e.g. 230 V   either curre Pag signal for he equipm it becomes switch. So ctively. A v uit. It will all VAC or mor nt or volta e 5 ent an the ery low re). ge,
  • 6. K682 - Automatic Room Light Controller with Visitor Counter Page 6   Photodiodes are similar to regular semiconductor diodes except that they may be either exposed (to detect vacuum UV or X-rays) or packaged with a window or optical fiber connection to allow light to reach the sensitive part of the device. Many diodes designed for use specifically as a photodiode will also use a “PIN” junction rather than the typical “PN” junction. Infrared light-emitting (IR LED – IR1-2) An infrared light-emitting diode (LED) is a type of electronic device that emits infrared light not visible to the naked eye. An infrared LED operates like a regular LED, but may use different materials to produce infrared light. This infrared light may be used for a remote control, to transfer data between devices, to provide illumination for night vision equipment, or for a variety of other purposes. An infrared LED is, like all LEDs, a type of diode, or simple semiconductor. Diodes are designed so that electric current can only flow in one direction. As the current flows, electrons fall from one part of the diode into holes on another part. In order to fall into these holes, the electrons must shed energy in the form of photons, which produce light. Operational amplifier (LM358) An Operational amplifier ("op-amp") is a DC-coupled high-gain electronic voltage amplifier with a differential input and, usually, a single-ended output.[1] An op-amp produces an output voltage that is typically hundreds of thousands times larger than the voltage difference between its input terminals.[2] Operational amplifiers are important building blocks for a wide range of electronic circuits. They had their origins in analog computers where they were used in many linear, non-linear and frequency-dependent circuits. Their popularity in circuit design largely stems from the fact the characteristics of the final elements (such as their gain) are set by external components with little dependence on temperature changes and manufacturing variations in the op-amp itself. Op-amps are among the most widely used electronic devices today, being used in a vast array of consumer, industrial, and scientific devices. Many standard IC op-amps cost only a few cents in moderate production volume; however some integrated or hybrid operational amplifiers with special performance specifications may cost over $100 US in small quantities. Op-amps may be packaged as components, or used as elements of more complex integrated circuits. Assembly Use the component overlay on the PCB to place the components starting with the lowest height components first. Make sure that the diode, LED and electrolytic capacitors are inserted the right way around. First check the components supplied in the Kit against the Component listing. Identify all the components. It is generally best to solder the lowest height components first: the IC SOCKETS, resistors, & diodes. The IC socket should be installed first. Begin solders the pin of the socket. The entire resistor should be installed next. In order to find their values you have to check the colour code. All the diode should be installed next. Make sure to get the diodes the correct way around. Match up the bar on the diodes with the bar on the overlay. Afterwards solder the capacitors, transistors, LED display & other remaining components. Especially care should be taken in order to find the polarity of the electrolytic capacitors.
  • 7. K682 - Automatic Room Light Controller with Visitor Counter Page 7   Note: - Please before assemble the kit; please see the photograph of assembled projects or demonstration video. (Included in CD) Use the component overlay on the PCB to place the components in the following order 1. Resistors and diodes 2. IC sockets 3. Ceramic capacitors and Preset. 4. Seven segment LED display 5. LM7805 regulators. Use needle nosed pliers to bend the leads of the regulator. It does not require a heat sink. Screw down onto to PCB. 6. Crystal, LED’s, Photo diode, IR LED’s and transistors. (Especially care should be taken in order to find the polarity of the LED, Photo diode and IR LED’s) 7. Electrolytic capacitors. Make sure you insert them the correct way around. Mount C6 (1000uf) Capacitor Horizontal 8. Relay, and Electrolytic capacitor’s NOTE: The PCB was designed such that the main micro controller PCB & Sensor PCB may be separated. Interconnection of two PCBs is achieved with a short length of ribbon wire or burg strip connector Placement of IR LED (IR 1 - 2) and Photo Diode (PT1 - 2) Bend the leads and Photo diode (PT and IR) down at right angles, about 3mm from the LED body, as shown below. Use a pair of long nose pliers to hold the leads while bending. Cut the leads off to a length of about 9mm from the bend Position. Please see the photograph of assembled projects. (Included in CD) REFERENCES www.atmel.com For a datasheet on the AT89C2051 micro controller www.national.com / www.ti.com For a datasheet on the LM7805 or LM358
  • 8. K682 - Automatic Room Light Controller with Visitor Counter Page 8   PART (COMPONENTS) LIST Automatic Room Light Controller with Visitor Counter-K682 Main Board – PCB 1 R1 ~ R8 - 220E [RED, RED, BROWN] (8 NOS) R9 ~ 15 - 10K [BROWN, BLACK, ORANGE] (7 NOS) R16 - 1K [BROWN, BLACK, RED] C1 - 10UF / 25V Electrolytic C2, 3 - 33PF Ceramic Disc (2 NOS) C4 - 220UF / 16V Electrolytic C5, 6 - 100KPF DISC (0.1UF / 104) (2 NOS) X1 - 11.0592 MHZ Crystal D1, 2 - IN4007 Diode (2 NOS) L1 - 3 mm / 5 mm LED Q1 ~ Q4 - BC557 / BC558 (PNP TRANSISTOR) (4 NOS) Q5 - BC547 / BC548 (NPN TRANSISTOR) U1 - AT89C2051 MICROCONTROLLER (Pre Programmed MCU) U2 - LM7805 - 3 Pin Voltage Regulator DS1 ~ DS4 - LT542 / A5611 (4 NOS) COMMEN ANOD SEVEN SEGMENT LED DISPLAY RLY - 12V SPDT PCB Mount Relay 1 nos - 20 PIN IC SOCKET CN3 - 3 PIN TERMINALS BLOCK (not include in the kit) CN2 - 2 PIN TERMINALS BLOCK (not include in the kit) Sensor Board – PCB 2 R1, 2 - 220E [RED, RED, BROWN] (2 NOS) R3, 4, 5, 6 - 10K [BROWN, BLACK, ORANGE] (4 NOS) R7, 8 - 1K [BROWN, BLACK, RED] (2 NOS) PR1, 2 - 10K CERMET – PRESET (2 NOS) L1, 2 - 3 mm / 5 mm LED (2 NOS) IR1, 2 - 5mm IR LED (Infrared Transmitter) (2 NOS) PT1, 2 - 5mm Black IR Photo diode (Infrared Receiver) (2 NOS) U1 - LM358 Dual Operational Amplifier 1 nos - 8 PIN IC SOCKET