Basic Level     Skills: Not specified    
Author email
[email protected]


Automatic Room light Controller with Visitor Counter

Project not tested

This Project "Automatic Room Light Controller with Visitor Counter using Microcontroller" 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.

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 555 timer 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.

We already had this project in our download section but Anudeep (bobdxcool) had made it working. Thank you so much for sharing this project back.

Here is a working video of project shared by Anudeep:


73.39 kB





29 Aug 2014: 15:18 PM
ahmm what software should i use to program the microcontroller ? i am very glad if you will help me with this project .. thank you very much
30 Aug 2014: 16:17 PM
You will need a programmer hardware, If your controller software support ISP then you can use simple ISP programmer which has little hardware. If you need more help I would suggest posting in fourm.
22 Nov 2014: 15:34 PM
Its urgent plzz reply Asap!
I hv implemented this project using the same schematic and hex file from the zipped folder,'ROOM' : room.hex bt its not wrkng properly!
the seven segment isnt displayng the count 00 even in the start! and nthng is happening after passing obstruction thru the sensors :/
plzz hlp!!
need a working assembly lang code for keil!
and also a hex file t wd wrk !
hvto sbmt in 2 days
26 Nov 2014: 04:53 AM

hvto sbmt in 2 days


You have to start your project well in time. Debugging hardware always need time. Please post in forum for help. This is not the right place.
01 Jan 2015: 16:56 PM
I need an arduino program for automatic room light on off controller with counter.
Would you please provide me ?
07 Jan 2015: 19:29 PM
Hello sir,
I am trying to implement this project but j'm having some trouble with the code, is there any way i can contact you to ask some questions?
09 Jan 2015: 05:06 AM
@sandykura Feel free to post your questions and doubts in our forum Or you can simply click on "post a question" button.
15 Apr 2015: 18:31 PM
i need source code of IC AT89s52.please provide me
17 Apr 2015: 12:51 PM
@jaysukh, Please download it using the green color download file button.
19 Jun 2015: 05:29 AM
sir i need the coding of room light control using visitor's's for my traning project
23 Jun 2015: 13:30 PM
@somia, Project is free to download...
26 Aug 2015: 14:13 PM
I need help in making a 8051 project. Can anyone help.
27 Aug 2015: 07:38 AM
@Divyansh, post in forum please
31 Oct 2015: 13:39 PM
i made the project, but after something cuts through ir led and sensor,the input at P1.0 or P1.1 in microcontroller takes about 4-5 sec to go back to 0.

31 Oct 2015: 13:41 PM
and what can be the maximum distance between ir led and tsop sensor
nirmal kumar
04 Jan 2016: 05:15 AM
What if there r 3 fan , 3 lights in a room and i need only light and a fan tp be turned on! Will the project fail there?
04 Apr 2016: 14:34 PM
Can anyone explain the hex2bcd subroutine used in this program... Its urgent....
23 May 2016: 17:33 PM
sir i was downloaded the file in that file i didn't get the source code . program? ,.i need program
(Required; Min length 5)
(Required; will not be displayed)


Wed Oct 19 2016, 03:30 PM
can you provide an explanation for the inverter 8051 code and how it works
Sat Oct 15 2016, 12:15 AM
@snaya. Create a thread in the 8051 forum for your questions
Fri Oct 14 2016, 10:00 AM
i m going to make a project with 8051and the name is scrolling led message display .now i wanna ask so many of questions.may be u can help me .so help me out
Fri Sep 30 2016, 10:40 AM
plz I want code for adc interfacing with8051
Sun Sep 25 2016, 04:41 AM
hi sir, could you help me regarding simple multiplication calculator?it should be include with buzzer. i use dragonplus. please
Sat Sep 24 2016, 05:49 PM
@Rus Ans .. what project ?
Sat Sep 24 2016, 05:48 PM
@engr1931 depends on type of scanner
Sat Sep 24 2016, 03:07 PM
Is it possible to send data from 2 barcode scanner to pc using serial port using 8051?
Wed Sep 21 2016, 02:22 AM
Rus Ana
can anyone help me for my project? T.T
Fri Sep 09 2016, 02:54 PM
Sarath babu
8051 a/c motor speed control



[email protected]
Fri Oct 21 2016, 10:35 PM
Sat Oct 15 2016, 09:40 AM
Wed Oct 05 2016, 08:16 AM
Mon Oct 03 2016, 07:37 PM
Thu Sep 29 2016, 06:31 AM
Thu Sep 08 2016, 06:28 PM
Sat Aug 20 2016, 01:44 PM
Thu Aug 18 2016, 12:24 PM
Forum Activity
Pratik_Suthar Avatar
Posted By Pratik_Suthar
Thu Oct 13 2016, 12:39 PM
@martin the HEX file provided in the project is no...
ajay_bhargav Avatar
Posted By ajay_bhargav
Thu Oct 06 2016, 06:15 AM
Hi Phil, Do you want to add this to existing proje...
ajay_bhargav Avatar
Posted By ajay_bhargav
Thu Oct 06 2016, 06:13 AM
CE should be high when you go for reading mode/wai...
ajay_bhargav Avatar
Posted By ajay_bhargav
Thu Oct 06 2016, 06:03 AM
You can also use ESP8266 with its SDK to write app...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Oct 03 2016, 11:15 PM
This is an old thread and the links no longer work...
martinsnc115877 Avatar
Posted By martinsnc115877
Wed Sep 14 2016, 12:51 PM
sir, i did your led scrolling mass display, and it...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Sep 09 2016, 11:45 PM
The Hex file for this project is a bit too big for...
rajavarmanslr Avatar
Posted By rajavarmanslr
Thu Aug 18 2016, 01:40 PM
I have two 8051 that interfaces with nRF24l01. One...