Heart Disease Prediction using machine learning.pptx
Automatic room light controller with bi directional visitor counter using Arduino uno
1. Automatic room light controller with bi-
directional visitor counter using Arduino uno
Presented By ,
Mr. Prasenjit Chandrakant More
2. INTRODUCTION
• Project title is “ Automatic Room light ControllerWith Bi-DirectionalVisitor Counter Using Arduino Uno ” .
• Electricity is one of the most important resources in this century.We should conserve the electricity. But
Many times we come out side the room / hall and forget to turn off lights/fan, thus the electricity is wasted.
• To overcome this we are going to implement a project called “ Automatic Room light Controller with visitor
counter ” .This project has two modules, first modules is “visitor counter ” and second is “ Automatic room
light controller ”.
• Main concept behind this project is to measure and display the number of persons entering in any room like
seminar hall , conference room and when number of persons inside the room is zero m power supply inside
the room can be cut using a relay interface.
• This will help to save electricity , LCD display placed out side the room display number of person inside the
room.
6. CIRCUIT DIAGRAM EXPLAINATION
• Sensor Section
In this section we have used two IR sensor modules . Here in this circuit we have used two comparators for two
sensors. LM358 is used as comparator . LM 358 has in built two low noise Op-amp.
• Control Section
Arduino UNO is used for controlling whole the process of this visitor counter project. The out puts comparators are
connected to digital pins of Arduino
• Display Section
Display section contains a 16*2 LCD . This section will display the counted number of people and light status when
no one will in the room.
• Relay Driver Section
Relay driver section consist a BC547 transistor and 5volt relay for controlling the load . Arduino sends commands to
this relay driver transistor and then light bulb ( load ) will turn on/off accordingly .
7. SYSTEM IMPLEMENTATION AND TESTING
Testing is a vital process in the development and realization of any design, be it hardware based, software
based or both. The various components and their circuitry have to be tested to ensure that all the
components on board are certified okay and in good working condition. The components that did not give
the required output specification where isolated and troubleshoot to determine the nature and cause of the
component failure through careful analysis, that is examination of the working principles of the
component(s).
• Display testing
When a program to show ‘hello, world !’ is burnt into the arduino, the display shows the sentence. The
following figure shows the display test.
8. • IR Sensor testing
This section we test the sensor implementation by using an obstacle.
• Testing Relay
Here we did testing of relay before put into use in system.
9. SYSTEM IMPLEMENTATION code
&
code explanation
#include<LiquidCrystal.h>
Liquid Crystal lcd(13,12,11,10,9,8);
int In = 4;
int Out = 5;
int relay = 2;
int count=0;
The pins for LCD are
from 8 to 13. Input
pin is at 4 output pin
is at 5 and relay is
connected at pin 2.
10. void setup()
{
lcd.begin(16,2);
lcd.print("Visitor’s Counter");
delay(2000);
pinMode(In, INPUT);
pinMode(Out, INPUT);
pinMode(relay, OUTPUT);
lcd.clear();
lcd.print("Person In Room:");
Serial.begin(9600);
A loop is created which is
used for initialization of the
LCD setup. At the beginning
of the program the LCD will
display a message of
“Visitor Counter”.
11. void loop()
{
if (digitalRead(In) == LOW){
count++;
}
else if (digitalRead(Out) == LOW){
count--;
}
else if (count > 0)
{
digitalWrite(relay, HIGH);
}
else if(count <= 0){
digitalWrite(relay, LOW);
}
lcd.setCursor(0,1);
lcd.print(count);
Serial.println(count);
delay(700);
}
In loop function we read
sensors input and increment
or decrement the counting
depending upon enter or
exit operation.
12. RESULT
• There are two transmitters and two receiver
placed in front of each other. Swap any object
(like mobile) or your fingers in front of those
sensors. Then microcontroller increments or
decrements the counter. Ones the count is
nonzero, the room lights turned on using relay
and turned on fan. Now swap object in reverse
direction then the system decrements the count.
And room light turned off and the count
becomes zero.
13. ADVANTAGES
Main advantage of this project is that it helps in energy conservation. Because when there is nobody
inside the room then lights are automatically turned off.
Since this project does the automatic person counting with the help of two sensors installed on door
frame it also reduces the additional work of employee to count the persons .
Low cost because human-based data collection comes with great expense .
Also, there is no hazardous elements used in the circuit and hence it can be used even at hazardous
atmospheres in an industrial area.
14. DISADVANTAGE / DRAWBACKS
It is used only when one person cuts the rays of the sensor hence, cannot be used when two or more
persons cross the door simultaneously or a crowd entering or leaving can’t be counted by this system .
The only person who can communicate with the control module is the person who is in the receptionist
or security unit.
15. APPLICATION
It can be used in various rooms like seminar halls , where the capacity of the room is limited and
should not be exceeded.
It can be used in our homes because we often forget to switch off our room lights
It helps in energy conservation
Voice alarm system can be used to indicate that room is full & person can’t enter inside
16. FUTURE DEVELOPMENT
• We can send this data to a remote location using mobile or internet
• Voice alarm system can be added to indicate that room is full and persons
can’t enter inside.
17. REFERENCES
• G. Smith, Introduction to Arduino, September 30, 2011
• T. S. Jayadev, Infrared sensors: detectors, electronics, and signal processing, Society of Photo-optical
Instrumentation Engineers 24th july 1999
• http://circuitdigest.com/microcontroller-projects/automatic-room-light-controller-with-bidirectional-
visitor-counter-using-arduino
• https://www.elprocus.com/know-about-working-of-automatic-room-light-controller-and-applications/
• http://www.engineersgarage.com/tutorials/555-timer-ic-introduction-basics-working- different-
operating-modes
• http://www.ti.com/product/LM358