SlideShare ist ein Scribd-Unternehmen logo
1 von 21
WELCOME TO OUR PRESENTATION
BANGLADESH UNIVERSITY OF SCIENCE BUSINESS AND TECHNOLOGY
(BUBT)
AUTOMATIC ROOM LIGHT CONTROLLING SYSTEM
Name ID
Md. Mahfuzur Rahman 14153103024
Md. Sayeed Mahmud 14153103095
Marufa Akter mukty 14153103105
Md. Sabbir Alam 14153103110
Tanjila Akter 14153103121
Ajmoon Nahar Urmi 14153103132
Group No: 03
Supervise By:
Md. Maynul Islam
Lecturer in EEE
Department of EEE
INTRODUCTION
Automatic Room Light controlling System is a microcontroller based project that automatically turn on or
off the lights in a room. Electricity, being one of the most important resources, must be utilized carefully.
The project implemented here is one such project where the microcontroller based system automatically
controls the room lights.
EXISTING SYSTEMWe often forget to switch off lights or fans when we leave a room. By using this system, we can intentionally
forget about the lights as the system will automatically take care of them. The digital World we are living in
allows us to use different technologies to automatically perform certain tasks. Such automation is very useful in
certain areas like energy consumption, reducing human efforts, improving standard of living etc.
AIM OF THE PROJECTThe aim of this project is to automatically turn on or off the lights in a room by detecting the human movement.
We implemented this project using 8051 Microcontroller and two Infrared (IR) sensors. Since the job of the
circuit is to turn on the light when someone enters the room and turn off the light when the last person leaves
the room, the project has to internally count the number of visitors entering and leaving the room. Hence, the
project acts as an Automatic Room Light System as well as Bidirectional Visitor Counter.
COMPONENTS REQUIRED
• AT89S52 Microcontroller
• Development Board
• 2 x Infrared Sensors
• 16 x 2 LCD Display
• 5V Relay Module
• Lamp
• Connecting Wires
• Power Supply
COMPONENT DESCRIPTION
LCD (liquid crystal display) LCD (liquid crystal
display) is the technology used for displays in
notebook and other smaller computers. Like light-
emitting diode (LED) and gas-plasma technologies,
LCDs allow displays to be much thinner than
cathode ray tube (CRT) technology
LCD Display Module
AT89S52 MICROCONTROLLER
The AT89S52 is a low-power, high-performance CMOS 8-
bit microcontroller with 8K bytes of in-system programmable
Flash memory. The device is manufactured using Atmel's high-
density nonvolatile memory technology and is compatible with
the indus- try-standard 80C51 instruction set and pinout.
IR SENSOR MODULE
• An Infrared or IR Sensor is a simple circuit that is
used to detect objects (Proximity Sensor) or
measure distance (Range Finder). An IR Sensor
consists of 3 components: an IR Transmitter (IR
LED), an IR Receiver (like a Photo Diode) and a
signal processing circuit.
• We have used reflective type IR sensor modules
in this project. The detailed circuit diagram of the
module is shown in the following image.
IR SENSOR MODULE CIRCUIT
5V RELAY MODULE
A 5V Relay Module is used in this project which helps 8051 Microcontroller to operate high voltage AC
loads like a light. The detailed circuit of the Relay Module is shown in the following image. It consists of a
5V Electromechanical Relay, an Optocoupler IC, transistor, two resistors and two diodes.
5V RELAY MODULE CIRCUIT
PROTEUS CIRCUIT DESIGN OF OUR PROJECT
CIRCUIT DESCRIPTION
• we have used modules for Relay and IR Sensor and hence, the connections are shown with respect to
those modules only. Corresponding circuit diagrams are also provided.
• For the circuit design, a 16 x 2 LCD Display, two IR Sensors and a 5V Relay Module must be connected to
the 8051 Microcontroller. First, connect the 8 data pins of the LCD to PORT1 pins i.e. P1.0 to P1.7.
• The 3 control pins of LCD i.e. RS, RW and E are connected to P3.6, GND and P3.7 pins respectively. A 10
KΩ Potentiometer is connected to contrast adjust pin of LCD i.e. its pin 3.
CIRCUIT DESCRIPTION
• Two Reflective type IR Sensors are connected to PORT2 pins i.e. P2.0 and P2.1. Detailed circuit of the IR
Sensor is mentioned in the Component Description.
• The input of the 5V Relay is connected to PORT0 pin P0.0. The detailed circuit of the 5V Relay module
used in the project is explained in the component description section. Alternatively, you can construct
the circuit as per the circuit diagram which consists of 5V Relay, Transistor, Diode and a Resistor.
HARDWARE CIRCUIT OF PROJECT
WORKING OF THE PROJECT
• In this project, an automatic room lighting system is developed using 8051 microcontroller. The working
of the project is explained here.
• The main component of the project is IR Sensor and we have used two of them. The placement of the
sensors is important as it will determine the functioning of the project.
• Practically speaking, both the sensors must be placed on the either side of the door or entrance of the
room. The sensor placed on the outside of the room is named as Sensor 1 and the sensor, which is
placed on the inside is named Sensor 2.
• When a person tries to enter the room, Sensor 1 detects the person first and then Sensor 2. This action
will indicate the 8051 Microcontroller that the person is entering the room.
WORKING OF THE PROJECT
• Hence, the microcontroller will turn on the light and also increments the visitor counter to 1. If there
are more visitor, the microcontroller will keep the light turned on and increments the visitor counter
accordingly.
• When a person tries to leave the room, Sensor 2 detects the person first and then Sensor 1. This
process will make the microcontroller to understand that a person is trying to leave the room and
hence, it will decrement the count of visitors. The microcontroller will not turn off the light until the
last person has left the room.
• As the visitors start leaving the room, the visitor count will be decremented and when the last person
leaves the room, the count be comes 0. During this point, the microcontroller understands that there is
nobody in the room and turns OFF the light.
APPLICATIONS
• Automatic Room Light Controlling with Bidirectional Visitor Counter can be used to automatically
turn on the light in a room when a person enters the room and turn it off when the person leaves
the room.
• The project can also be dubbed as a Bidirectional Visitor Counter it is an integral part of the
Automatic Room Lighting circuit.
• The project can be modified with LEDs and as the number of persons in the room increases, the
number of LEDs turning ON also increases.
FUTURE PLAN
• Automatic Room Light and Fan or AC(Air Condition)Controlling with Bidirectional Visitor Counter can be
used to automatically turn on the light in a room when a person enters the room and turn it off when
the person leaves the room.
• The project can also be dubbed as a Bidirectional Visitor Counter it is an integral part of the Automatic
Room Lighting circuit.
Auto Room Lighting System

Weitere ähnliche Inhalte

Was ist angesagt?

Bi directional visitor counter rewat
Bi directional visitor counter   rewatBi directional visitor counter   rewat
Bi directional visitor counter rewat
vishwesh sharma
 
HEARTBEAT RATE SENSOR USING MICROCONTROLLER
HEARTBEAT RATE SENSOR USING MICROCONTROLLERHEARTBEAT RATE SENSOR USING MICROCONTROLLER
HEARTBEAT RATE SENSOR USING MICROCONTROLLER
Rinku Meena
 
Automatic railway gate control using microcontroller
Automatic railway gate control using microcontrollerAutomatic railway gate control using microcontroller
Automatic railway gate control using microcontroller
pukeshwar harmukh
 

Was ist angesagt? (20)

Automatic Room Light Controller Using Arduinom & PIR Sensor
Automatic Room Light Controller Using Arduinom & PIR SensorAutomatic Room Light Controller Using Arduinom & PIR Sensor
Automatic Room Light Controller Using Arduinom & PIR Sensor
 
Automatic room light controller with password detection system
Automatic room light controller with password detection systemAutomatic room light controller with password detection system
Automatic room light controller with password detection system
 
Automatic Room Lights Controller Using Arduino & PIR Sensor
Automatic Room Lights Controller Using Arduino & PIR SensorAutomatic Room Lights Controller Using Arduino & PIR Sensor
Automatic Room Lights Controller Using Arduino & PIR Sensor
 
Bi directional visitor counter rewat
Bi directional visitor counter   rewatBi directional visitor counter   rewat
Bi directional visitor counter rewat
 
Automatic railway gate control
Automatic railway gate controlAutomatic railway gate control
Automatic railway gate control
 
Density based-traffic-light-control-system project-2 (3)
Density based-traffic-light-control-system project-2 (3)Density based-traffic-light-control-system project-2 (3)
Density based-traffic-light-control-system project-2 (3)
 
Home automation with arduino
Home automation with arduinoHome automation with arduino
Home automation with arduino
 
Automatic room light controller with bi directional visitor counter using Ard...
Automatic room light controller with bi directional visitor counter using Ard...Automatic room light controller with bi directional visitor counter using Ard...
Automatic room light controller with bi directional visitor counter using Ard...
 
Project report on bidirectional visitor counter & home automation
Project report on bidirectional visitor counter & home automationProject report on bidirectional visitor counter & home automation
Project report on bidirectional visitor counter & home automation
 
Simple Automatic Water Level Controller by using ic 555 timer.
Simple Automatic Water Level Controller by using ic 555 timer.Simple Automatic Water Level Controller by using ic 555 timer.
Simple Automatic Water Level Controller by using ic 555 timer.
 
HEARTBEAT RATE SENSOR USING MICROCONTROLLER
HEARTBEAT RATE SENSOR USING MICROCONTROLLERHEARTBEAT RATE SENSOR USING MICROCONTROLLER
HEARTBEAT RATE SENSOR USING MICROCONTROLLER
 
ppt of automatic room light controller and BI directional counter
ppt of automatic room light controller and BI directional counterppt of automatic room light controller and BI directional counter
ppt of automatic room light controller and BI directional counter
 
Presentation on home automation
Presentation on home automationPresentation on home automation
Presentation on home automation
 
Automatic street light control using ldr PPT
Automatic street light control using ldr PPTAutomatic street light control using ldr PPT
Automatic street light control using ldr PPT
 
Wk102 ppt 1-
Wk102 ppt  1-Wk102 ppt  1-
Wk102 ppt 1-
 
Bidirectional visitor counter
Bidirectional visitor counterBidirectional visitor counter
Bidirectional visitor counter
 
Gsm based transformer fault detection system
Gsm based transformer fault detection systemGsm based transformer fault detection system
Gsm based transformer fault detection system
 
Automatic railway gate control using microcontroller
Automatic railway gate control using microcontrollerAutomatic railway gate control using microcontroller
Automatic railway gate control using microcontroller
 
Presentation of automatic street light
Presentation of automatic street lightPresentation of automatic street light
Presentation of automatic street light
 
Timer And Counter in 8051 Microcontroller
Timer And Counter in 8051 MicrocontrollerTimer And Counter in 8051 Microcontroller
Timer And Counter in 8051 Microcontroller
 

Ähnlich wie Auto Room Lighting System

Automatic room lighting system
Automatic room lighting systemAutomatic room lighting system
Automatic room lighting system
PoojithaAV
 
report on intelligent energy conservation system
report on intelligent energy conservation system report on intelligent energy conservation system
report on intelligent energy conservation system
vyomesh upadhyay
 
P 0329--intelligent energy-saving
P 0329--intelligent energy-savingP 0329--intelligent energy-saving
P 0329--intelligent energy-saving
premkarthik06
 

Ähnlich wie Auto Room Lighting System (20)

Automatic room lighting system
Automatic room lighting systemAutomatic room lighting system
Automatic room lighting system
 
AUTOMATIC SMART ENERGY MANAGEMENT SYSTEM
AUTOMATIC SMART ENERGY MANAGEMENT SYSTEMAUTOMATIC SMART ENERGY MANAGEMENT SYSTEM
AUTOMATIC SMART ENERGY MANAGEMENT SYSTEM
 
Home automation
Home automationHome automation
Home automation
 
Doorlock
DoorlockDoorlock
Doorlock
 
Deepak
DeepakDeepak
Deepak
 
Auto Room Lighting and Door lock Report
Auto Room Lighting and Door lock ReportAuto Room Lighting and Door lock Report
Auto Room Lighting and Door lock Report
 
Automatic room light controller
Automatic room light controllerAutomatic room light controller
Automatic room light controller
 
Automatic mall elevator
Automatic mall elevatorAutomatic mall elevator
Automatic mall elevator
 
FINAL B.V.C 8051.pptx
FINAL B.V.C 8051.pptxFINAL B.V.C 8051.pptx
FINAL B.V.C 8051.pptx
 
Minor_project.ppt.pdf
Minor_project.ppt.pdfMinor_project.ppt.pdf
Minor_project.ppt.pdf
 
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
 
AUTOMATIC ROOM LIGHTING SYSTEM.pptx
AUTOMATIC ROOM LIGHTING SYSTEM.pptxAUTOMATIC ROOM LIGHTING SYSTEM.pptx
AUTOMATIC ROOM LIGHTING SYSTEM.pptx
 
Atomatic light controller
Atomatic light controllerAtomatic light controller
Atomatic light controller
 
report on intelligent energy conservation system
report on intelligent energy conservation system report on intelligent energy conservation system
report on intelligent energy conservation system
 
Voice control home appliance
Voice control home applianceVoice control home appliance
Voice control home appliance
 
ELECTRONIC EYE FOR NIGHT DEVICE SWITCHING USING 555 TIMER
ELECTRONIC EYE FOR NIGHT DEVICE SWITCHING USING 555 TIMERELECTRONIC EYE FOR NIGHT DEVICE SWITCHING USING 555 TIMER
ELECTRONIC EYE FOR NIGHT DEVICE SWITCHING USING 555 TIMER
 
Gsm based garbage disposal
Gsm based garbage disposalGsm based garbage disposal
Gsm based garbage disposal
 
P 0329--intelligent energy-saving
P 0329--intelligent energy-savingP 0329--intelligent energy-saving
P 0329--intelligent energy-saving
 
Visiter counter doc
Visiter counter docVisiter counter doc
Visiter counter doc
 
PLC
PLCPLC
PLC
 

Mehr von BUBT

Mehr von BUBT (16)

Lab report cover page
Lab report cover page Lab report cover page
Lab report cover page
 
Project report title cover page
Project report title cover pageProject report title cover page
Project report title cover page
 
Implementation Of GSM Based Fire Alarm and Protection System
Implementation Of GSM Based Fire Alarm and Protection SystemImplementation Of GSM Based Fire Alarm and Protection System
Implementation Of GSM Based Fire Alarm and Protection System
 
Chapter 5 exercises Balagurusamy Programming ANSI in c
Chapter 5 exercises Balagurusamy Programming ANSI  in cChapter 5 exercises Balagurusamy Programming ANSI  in c
Chapter 5 exercises Balagurusamy Programming ANSI in c
 
Chapter 6 Balagurusamy Programming ANSI in c
Chapter 6  Balagurusamy Programming ANSI  in cChapter 6  Balagurusamy Programming ANSI  in c
Chapter 6 Balagurusamy Programming ANSI in c
 
Chapter 5 Balagurusamy Programming ANSI in c
Chapter 5 Balagurusamy Programming ANSI  in cChapter 5 Balagurusamy Programming ANSI  in c
Chapter 5 Balagurusamy Programming ANSI in c
 
Chapter 4 : Balagurusamy Programming ANSI in C
Chapter 4 : Balagurusamy Programming ANSI in CChapter 4 : Balagurusamy Programming ANSI in C
Chapter 4 : Balagurusamy Programming ANSI in C
 
Chapter 3 : Balagurusamy Programming ANSI in C
Chapter 3 : Balagurusamy Programming ANSI in C Chapter 3 : Balagurusamy Programming ANSI in C
Chapter 3 : Balagurusamy Programming ANSI in C
 
Chapter 2 : Balagurusamy_ Programming ANsI in C
Chapter 2 :  Balagurusamy_ Programming ANsI in CChapter 2 :  Balagurusamy_ Programming ANsI in C
Chapter 2 : Balagurusamy_ Programming ANsI in C
 
Chapter 1 : Balagurusamy_ Programming ANsI in C
Chapter 1  :  Balagurusamy_ Programming ANsI in C Chapter 1  :  Balagurusamy_ Programming ANsI in C
Chapter 1 : Balagurusamy_ Programming ANsI in C
 
Student Attendance
Student AttendanceStudent Attendance
Student Attendance
 
Reasoning for Artificial Intelligence Expert
Reasoning for Artificial Intelligence ExpertReasoning for Artificial Intelligence Expert
Reasoning for Artificial Intelligence Expert
 
Ultra Dense Netwok
Ultra Dense NetwokUltra Dense Netwok
Ultra Dense Netwok
 
Bangladesh University of Business and Technology
Bangladesh University of Business and Technology Bangladesh University of Business and Technology
Bangladesh University of Business and Technology
 
Art Gallery Management System
Art Gallery Management SystemArt Gallery Management System
Art Gallery Management System
 
Shop management system
Shop management systemShop management system
Shop management system
 

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

Auto Room Lighting System

  • 1. WELCOME TO OUR PRESENTATION BANGLADESH UNIVERSITY OF SCIENCE BUSINESS AND TECHNOLOGY (BUBT)
  • 2. AUTOMATIC ROOM LIGHT CONTROLLING SYSTEM Name ID Md. Mahfuzur Rahman 14153103024 Md. Sayeed Mahmud 14153103095 Marufa Akter mukty 14153103105 Md. Sabbir Alam 14153103110 Tanjila Akter 14153103121 Ajmoon Nahar Urmi 14153103132 Group No: 03 Supervise By: Md. Maynul Islam Lecturer in EEE Department of EEE
  • 3. INTRODUCTION Automatic Room Light controlling System is a microcontroller based project that automatically turn on or off the lights in a room. Electricity, being one of the most important resources, must be utilized carefully. The project implemented here is one such project where the microcontroller based system automatically controls the room lights.
  • 4. EXISTING SYSTEMWe often forget to switch off lights or fans when we leave a room. By using this system, we can intentionally forget about the lights as the system will automatically take care of them. The digital World we are living in allows us to use different technologies to automatically perform certain tasks. Such automation is very useful in certain areas like energy consumption, reducing human efforts, improving standard of living etc.
  • 5. AIM OF THE PROJECTThe aim of this project is to automatically turn on or off the lights in a room by detecting the human movement. We implemented this project using 8051 Microcontroller and two Infrared (IR) sensors. Since the job of the circuit is to turn on the light when someone enters the room and turn off the light when the last person leaves the room, the project has to internally count the number of visitors entering and leaving the room. Hence, the project acts as an Automatic Room Light System as well as Bidirectional Visitor Counter.
  • 6. COMPONENTS REQUIRED • AT89S52 Microcontroller • Development Board • 2 x Infrared Sensors • 16 x 2 LCD Display • 5V Relay Module • Lamp • Connecting Wires • Power Supply
  • 7. COMPONENT DESCRIPTION LCD (liquid crystal display) LCD (liquid crystal display) is the technology used for displays in notebook and other smaller computers. Like light- emitting diode (LED) and gas-plasma technologies, LCDs allow displays to be much thinner than cathode ray tube (CRT) technology LCD Display Module
  • 8. AT89S52 MICROCONTROLLER The AT89S52 is a low-power, high-performance CMOS 8- bit microcontroller with 8K bytes of in-system programmable Flash memory. The device is manufactured using Atmel's high- density nonvolatile memory technology and is compatible with the indus- try-standard 80C51 instruction set and pinout.
  • 9. IR SENSOR MODULE • An Infrared or IR Sensor is a simple circuit that is used to detect objects (Proximity Sensor) or measure distance (Range Finder). An IR Sensor consists of 3 components: an IR Transmitter (IR LED), an IR Receiver (like a Photo Diode) and a signal processing circuit. • We have used reflective type IR sensor modules in this project. The detailed circuit diagram of the module is shown in the following image.
  • 10. IR SENSOR MODULE CIRCUIT
  • 11. 5V RELAY MODULE A 5V Relay Module is used in this project which helps 8051 Microcontroller to operate high voltage AC loads like a light. The detailed circuit of the Relay Module is shown in the following image. It consists of a 5V Electromechanical Relay, an Optocoupler IC, transistor, two resistors and two diodes.
  • 12. 5V RELAY MODULE CIRCUIT
  • 13. PROTEUS CIRCUIT DESIGN OF OUR PROJECT
  • 14. CIRCUIT DESCRIPTION • we have used modules for Relay and IR Sensor and hence, the connections are shown with respect to those modules only. Corresponding circuit diagrams are also provided. • For the circuit design, a 16 x 2 LCD Display, two IR Sensors and a 5V Relay Module must be connected to the 8051 Microcontroller. First, connect the 8 data pins of the LCD to PORT1 pins i.e. P1.0 to P1.7. • The 3 control pins of LCD i.e. RS, RW and E are connected to P3.6, GND and P3.7 pins respectively. A 10 KΩ Potentiometer is connected to contrast adjust pin of LCD i.e. its pin 3.
  • 15. CIRCUIT DESCRIPTION • Two Reflective type IR Sensors are connected to PORT2 pins i.e. P2.0 and P2.1. Detailed circuit of the IR Sensor is mentioned in the Component Description. • The input of the 5V Relay is connected to PORT0 pin P0.0. The detailed circuit of the 5V Relay module used in the project is explained in the component description section. Alternatively, you can construct the circuit as per the circuit diagram which consists of 5V Relay, Transistor, Diode and a Resistor.
  • 17. WORKING OF THE PROJECT • In this project, an automatic room lighting system is developed using 8051 microcontroller. The working of the project is explained here. • The main component of the project is IR Sensor and we have used two of them. The placement of the sensors is important as it will determine the functioning of the project. • Practically speaking, both the sensors must be placed on the either side of the door or entrance of the room. The sensor placed on the outside of the room is named as Sensor 1 and the sensor, which is placed on the inside is named Sensor 2. • When a person tries to enter the room, Sensor 1 detects the person first and then Sensor 2. This action will indicate the 8051 Microcontroller that the person is entering the room.
  • 18. WORKING OF THE PROJECT • Hence, the microcontroller will turn on the light and also increments the visitor counter to 1. If there are more visitor, the microcontroller will keep the light turned on and increments the visitor counter accordingly. • When a person tries to leave the room, Sensor 2 detects the person first and then Sensor 1. This process will make the microcontroller to understand that a person is trying to leave the room and hence, it will decrement the count of visitors. The microcontroller will not turn off the light until the last person has left the room. • As the visitors start leaving the room, the visitor count will be decremented and when the last person leaves the room, the count be comes 0. During this point, the microcontroller understands that there is nobody in the room and turns OFF the light.
  • 19. APPLICATIONS • Automatic Room Light Controlling with Bidirectional Visitor Counter can be used to automatically turn on the light in a room when a person enters the room and turn it off when the person leaves the room. • The project can also be dubbed as a Bidirectional Visitor Counter it is an integral part of the Automatic Room Lighting circuit. • The project can be modified with LEDs and as the number of persons in the room increases, the number of LEDs turning ON also increases.
  • 20. FUTURE PLAN • Automatic Room Light and Fan or AC(Air Condition)Controlling with Bidirectional Visitor Counter can be used to automatically turn on the light in a room when a person enters the room and turn it off when the person leaves the room. • The project can also be dubbed as a Bidirectional Visitor Counter it is an integral part of the Automatic Room Lighting circuit.