Automatic Room Light Controller With Bidirectional Visitor - Hackster - Io

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

Hi! Please confirm your email address by clicking the link in the email we sent you.

Haven't received it? Resend confirmation email (/users/confirmation/new)

(/)

Projects Channels News Contests Events Videos


(/projects) (/channels) (/news) (/contests) (/events) (/videos)

Team Amrendra Sahni: Amrendra0110 (/Amrendra0110)


Published April 3, 2018 © Apache-2.0 (http://opensource.org/licenses/Apache-2.0)

Automatic Room Light Controller


with Bidirectional Visitor
When at least one person enters the room, the light and fan turn ON. When
everyone exits the room, the light turns OFF.

Beginner(/projects?difficulty=beginner) Showcase (no instructions) 30 minutes


23,451
Things used in this project
Hardware components
Arduino UNO
(/arduino/products/arduino- × 1 (/products/buy/42741?
s=BAhJIhI4NjUwMixQcm9qZWN0BjoGRUY%3D%0A)
uno1?ref=project-adb0bb)
Relay (generic) × 1

Resistor 100 ohm × 1 (/products/buy/37915?


s=BAhJIhI4NjUwMixQcm9qZWN0BjoGRUY%3D%0A)

Infrared Module × 1 (/products/buy/2262?


s=BAhJIhI4NjUwMixQcm9qZWN0BjoGRUY%3D%0A)
Adafruit Standard LCD -
16x2 White on Blue
(/adafruit/products/standard- × 1 (/products/buy/17347?
s=BAhJIhI4NjUwMixQcm9qZWN0BjoGRUY%3D%0A)
lcd-16x2-white-on-blue?
ref=project-adb0bb)
General Purpose
Welcome to Transistor
× 1 (/products/buy/42755?
s=BAhJIhI4NjUwMixQcm9qZWN0BjoGRUY%3D%0A)
NPN
Hackster! Be
sure to follow
Breadboard (generic) × 1 (/products/buy/42749?
s=BAhJIhI4NjUwMixQcm9qZWN0BjoGRUY%3D%0A)
us to stay up
(/semere-
to date with (/newsletter/sign_up) (https://www.facebook.com/hacksterio)
Software apps and online services beyene/automatic-
the latest NEXT PROJECT
18
Arduino room-
news IDE
Automatic Room Temper…
& temperature-
(/arduino/products/arduino- (https://www.arduino.cc/en/main/software
projects. controller-e2bb79)
ide?ref=project-adb0bb)
Story
The project of “Digital visitor counter” is based on the interfacing of some
components such as sensors, motors etc. with Arduino microcontroller. This
counter can count people in both directions. This circuit can be used to count
the number of persons entering a hall/mall/home/office in the entrance gate
and it can count the number of persons leaving the hall by decrementing the
count at the same gate or an exit gate, and that depends upon sensor
placement in the mall/hall. It can also be used at gates of parking areas and
other public places.

This project is divided into four parts: sensors, controller, counter display and
gate. The sensor would observe an interruption and provide an input to the
controller which would run the counter increment or decrement depending on
the entering or exiting of people. And counting is displayed on a 16x2 LCD
through the controller.

Custom parts and enclosures

C
ir
c
ui
t (https://hacksterio.s3.amazonaws.com/uploads/attachments/460598/visitor-
counter-circuit1_AfKe0tBXUa.gif)
D
ig
ra
m
:
m
LCD1

ARD1
85888

IRModule
DO AREF
Vec

IRModule

DIGITAL(-PWM)
ANALOGIN

GND

220VAC
RL

LOAD

CírcuitDigest

Code

Source code Arduino (/code_files/177681/download)


42 lcd.print("Person In Room:");
43 lcd.setCursor(0,1);
44 lcd.print(count);
45 }
46 void loop()
47 {
48
49 if(digitalRead(in))
50 IN();
51 if(digitalRead(out))
52 OUT();
53
54 if(count<=0)
55 {
56 lcd.clear();
57 digitalWrite(relay, LOW);
58 lcd.clear();
59 lcd.print("Nobody In Room");
60 lcd.setCursor(0,1);
61 lcd.print("Light Is Off");
62 delay(200);
63 }
64
:
64
65 else
66 digitalWrite(relay, HIGH);
67
68 }

Credits
Amrendra0110 (/Amrendra0110) !
2 projects • 5 followers
(/Amrendra0110)
Follow Contact (/messages/new?recipient_id=458830)

Comments
Please confirm your email before commenting. Haven't received a
confirmation email? Resend (/users/confirmation/new). Contact us at
help@hackster.io for help.

ronynsagnik (/ronynsagnik)
(/ronynsagnik) "
4 years ago

HELLO I FOUND OUT THIS VIDEO TO BE VERY USEFUL BUT I AM HAVING A PROBLEM
i.e.
I FOLLOWED ALL YOUR STEPS BUT MY LCD DISPLAY IS NOT SHOWING
ANYTHING,AND AMONG TWO IR SENSOR ONE IS WORKING AND OTHER IS NOT.
KINDLY HELP ME WITH THIS PROBLEM.
Thank • 1 thank
:
rob (/rob18)
(/rob18) "
4 years ago

Same problem but make R 1 2k2 and then my display did light up.for the rest i did
not test it.
Thank

ariba_shahid (/ariba_shahid)
(/ariba_shahid) "
4 years ago

hello! I followed all these steps and everything is working fine but the count of persons
shown on lcd is fluctuating. like i haven't passed anything in front of the IR sensors but on
lcd the reading is fluctuating from 0 to 1 then back to 0. Please help!
Thank

abhi_yalla (/abhi_yalla)
(/abhi_yalla) "
3 years ago

1.can u make the same project with out display


2.can u combin bidirectional home automation and blynk home automation
Thank

rutu_27 (/rutu_27)
(/rutu_27) "
2 years ago

Hi there! This is a fantastic automation. Nice work and slim coding. I did everything as
explained and the IR sensors are working.
But I just have a problem, my lcd display is not showing the numbers, instead after some
2-3minutes it shows random gibberish characters. How can I solve this problem ?
Do I need to configure it or..what?
Thank
:
Similar projects you might like

(/neb-bo/get-notified-via-mobile-when-your-room-light-turned-on-3c64c5)

Get notified via Mobile, when your room light turned ON! (/neb-bo/get-notified-
via-mobile-when-your-room-light-turned-on-3c64c5)
Nabeeh Talaat (/neb-bo)

13 7.1K
:
(/patelDeep/smart-garden-cda82f)

Smart Garden (/patelDeep/smart-garden-cda82f)


patel Dipen (/patelDeep)

121 79K
:
(/Techatronic/light-dimmer-circuit-using-arduino-arduino-light-dimmer-599e2b)

Light Dimmer Circuit Using Arduino | Arduino Light Dimmer (/Techatronic/light-


dimmer-circuit-using-arduino-arduino-light-dimmer-599e2b)
Techatronic (/Techatronic)

8 2.8K

(/smartprojects/light-meter-with-arduino-73b5b2)

Light meter with Arduino (/smartprojects/light-meter-with-arduino-73b5b2)


Smart Projects (/smartprojects)

2.7K
:
(/Techatronic/light-dimmer-circuit-using-arduino-arduino-light-dimmer-e862b4)

Light Dimmer Circuit Using Arduino | arduino light dimmer (/Techatronic/light-


dimmer-circuit-using-arduino-arduino-light-dimmer-e862b4)
Techatronic (/Techatronic)

4 2.6K
:
(/christian-chavez/smart-room-controller-for-the-hearing-impaired-634224)

Smart Room Controller for the Hearing Impaired (/christian-chavez/smart-room-


controller-for-the-hearing-impaired-634224)
Christian Chavez (/christian-chavez)

5 448

(/autoshack/android-app-based-home-automation-system-using-iot-4cad38)

Android App-Based Home Automation System Using IOT (/autoshack/android-


app-based-home-automation-system-using-iot-4cad38)
Akib Islam (/Akib1994)
:
206 98K

(/shakram02/arduino-and-ac-devices-automatic-lights-71ff56)

Arduino and AC Devices - Automatic Lights (/shakram02/arduino-and-ac-devices-


automatic-lights-71ff56)
Ahmed Hamdy Mahmoud Hassanein (/shakram02)

77 49K
:
About Us
Hackster Overview (/about)
Hackster for Business
(/business)
Help Articles
(https://help.hackster.io)
Brand Resources (/branding)
Sitemap (/sitemap.xml.html)

Legal Thingies
Terms of Service (/terms)
Code of Conduct (/conduct)
Privacy Policy (/privacy)
Privacy Policy for California
Residents (/privacy/ccpa)
Cookie Policy (/cookies)

Find Us On Social
# Facebook
(https://www.facebook.com/hacksterio)
$ Instagram
(https://www.instagram.com/hacksterio)
% LinkedIn
(https://www.linkedin.com/company/hacksterio)
& Twitter
(https://www.twitter.com/hacksterio)
' YouTube
(https://www.youtube.com/hacksterio)

Visit Our Avnet Family


Avnet (https://www.avnet.com)
Premier Farnell
(https://www.farnell.com)
element14
(https://www.element14.com)
Newark
(https://www.newark.com)

Hackster.io, an Avnet Community © 2023


:

You might also like