In this competitive world and busy schedule human cannot spare time to 
perform his daily activities manually. The most common thing that he 
forgets to do is switching OFF the lights wherever they are not 
required. This project is a standalone automatic room light with visitor
 counter. The main aim of the project is to control the lights in a room
 depending upon lighting that is present in the room and count the 
number of persons entering into the room. Use of embedded technology 
makes this closed loop feedback control system efficient and reliable. 
The
 system comprises of an IR Transmitter-Receiver pair which is located in
 front of the door outside the room. LDR is placed outside the room and 
is used to identify whether it is day or night time. Initially the light
 is switched off in the room. Whenever a person tries to enter into the 
room, the receiver of IR pair identifies the person.  The 
microcontroller identifies this change and starts counting the people 
entering into the room.
The
 light is switched off even if anyone is present inside the room during 
the day time. Similarly, the light is switched off if no one is there 
inside the room or if it is night times. Thus, depending on the 
intensity of light and the surrounding temperature, the required action 
is performed by the microcontroller. LCD displays the number of persons 
entering into the room.
SOFTWARE AND HARDWARE TOOLS:
Software Tools:
- Keil compiler
- Orcad.
Hardware Tools:
- Microcontroller AT89S52.
- IR receiver and transmitter
- LDR
- LCD
- TRIAC and TRIAC driver