8051 - Automatic Room Light Controller with Visitors Counter

on Monday, 21 September 2009

1 and a half month, finally the project has been done. This is the "Automatic Room Light Controller with Visitors Counter" project using Atmel 89C51(40 pins) from Intel 8051 family series.

The excitement after finishing the project is so indescribable. As the team feel so frustrated keep on troubleshooting the problems that caused the project not working. Even if you inquire Mr. Lecturer, he will always gives you the very "meaningful" idiom.

Student : Sir, we've done this this that that. Why still not working?
Lecturer : You just try this try that, try until it works.
Student : Cannot. It might burn the components.
Lecturer : Yeah. The more you burned, the more you learned.

Thanks for the idiom caused me burned out 2 infrared and 2 transistors. You think is cheap? Hell NO! We has spent around 160 bucks for the project though it can be done within 100 bucks.

Let's see how was the project transformed from a Zero to a Hero.

Planning

Preparing Components

Constructing Circuit (phase 1)
Constructing Circuit (phase 2)

Checking

Checking (prefect sinusoidal)

Programming

Programming

Testing

My birthday

Rearranging

Add-on (Wishing Tree - Running LEDs)

Finalizing

Complete



How it works?



All rights reserved.

Please include a citation in your works.

121 comments:

WhyWai said...

ooo, so kool! i wanna change course dy...

darryl said...

did you design the circuit yourself? or were you just given the circuit and build according to it? really pro man..

tc said...

yy : no no no.. then i cannot see transformer liao..

ryl : some are fixed circuit.. some design myself.. some modified from fixed circuit.. interfacing done by ourselves.. if there's a circuit to build accordingly then we wont spend 1 month for this.. i think u will learn this too..

[-sukyee-] said...

wow...so good..haha next time do a blinking happy birthday one for me lerr i dun need the counter i just want those colorful LEDs hahaha

tc said...

sy : can also.. but i do the counter.. to show u your age increasing every year.. lol..

darryl said...

actually we've sort of done this but we did traffic lights...

we're doing PCB now, which will interest you even more later.. very chi kik, will let you see some photos if i post them up..

tc said...

i did traffic light also.. but din build out the circuit.. just simulated in the simulator..

u do PCB or build circuit on PCB? i think i have no more chance d.. next sem starting to major in nanotech d.. more to chemical than electronics.. but i wan get some reference from u too.. for FYP.. haha..

chitra said...

hey i am in my 3rd yr and my group is doing this project for ew ... but our ckt isn't working .. could u pls send me the ckt diag, pcb layout, code and description for this project .. it would be of great help ..
my email id is mahale_chitra@yahoo.co.in

tc said...

yes sure, sharing is caring.. u got mail..

btw.. i didn't solder on the pcb due to time constraint.. everything's on breadboard.. and codes are solely for MCS-51 assembly language programmer..

Anonymous said...

salya bandya vale kam kar..

loong seng said...

hihi..so nice to found you here..i am the student from UPM.i am doing same project that you are done...can i have your info about this project..may i know your code?and the component?highly appreciate..really need your help^^

loong seng said...

sorry for got to said my email is rescurer100@hotmail.com

tc said...

loong seng - ok..

Unknown said...

hey v r doing d same project, could u plz send us d ckt diagram.

tc said...

if not mistakenly.. u're from India right..? no prob.. your email??

Unknown said...

hi we r doing d same project could u plz send us d sensor details

tc said...

pls leave your email so that i can send it to you.

ryomax said...

hi,
i'm having the same project as yours.
do u mind to send me the details of the project such as circuit diagram, source code,and list of components?

ryomaxxseigaku@yahoo.com

tq for your help. :)

tc said...

you got mail..

Chole said...

hello, i'm doing the same project as yours.
could you please send me the details of the project such as circuit diagram, source code, list of components, and pcb layout?

my email: xiaoshin456@yahoo.com

Thanks!! ^^

Anonymous said...

hi, dis is my exact project that am doing.i gt inspiration by seeing how u build the circuit. would u send me the circuit diagram, pcb n source code for this project? and isit posible doing this by using the picf877 microcontroller instead?
my email: brinz_matc@hotmail.com

Anonymous said...

hi, dis is my exact project that am doing.i gt inspiration by seeing how u build the circuit. would u send me the circuit diagram, pcb n source code for this project? and isit posible doing this by using the picf877 microcontroller instead?
my email: brinz_matc@hotmail.com

tc said...

chole : sorry i do not have pcb layout..

ano : i not sure bout picf877.. u can check the datasheet for its similarity.. this source code and circuit only applicable for 8051 and 8052 family series..

ana said...

Hi i love your project, would you please send me the source code and your circuit diagram?? i will use in my final project
please and thnx
my mail is mibean191426@hotmail.com

Anonymous said...

hi... hey i am too working on same project....can u plz mail me the source code...
my id is avi_shrawan@yahoo.com

tc said...

k..

Unknown said...

hi i made this project but it is not working so can u send me pcb lay out plz.....
my id is kuldeepmathuria@gmail.com

Jinu said...
This comment has been removed by the author.
Jinu said...

Hai, i am in my 6th sem and my group is doing this project. but our ckt isn't working ..
I dont know wats goin wrong.
could u pls send me the ckt diag, pcb layout, code and description for this project .. it would be of great help ..
Any of u who hav done the project successfully, pls reply at the earliest.
my email id:jinuyohans89@gmail.com

tc said...

sent.

Anonymous said...

hi. i have the same project being done as of now. can you please help me with this? we have trouble on finding the programming software for the IC microcontroller and we dont know how can we program the said IC. we dont even have the device on your picture labeled as "Programming" (the MCS-51). and one more. can you also send me a copy of the ckt diagram and pcb layout? i hope you could help us on this. my email address is rurouni_kenshin_mm@yahoo.com

any help would be appreciated. thanks.
-from margret

tc said...

sent

tc said...

thanks!

Rahul said...

Hi... This is amazing. I am planing to submit this project as my minor project. So can you mail me all the details of this project. I will be very thankful to you.
Plz mail me at: rahulsahu47@gmail.com

tc said...

sent

Anonymous said...

hey, its really great.I am also planing to submit this project as my project. So can you mail me the ckt nd file of this project.I will be very thankful to you.
Plz mail me at: leshanhaider@gmail.com

Anonymous said...

hey u r really genious i am not getting output of my project automatic room light controller can u pls send me the source code PLZZZZZZZZZ i am in trouble:mail simha051@gmail.com

Anonymous said...

can u please mail me the source code for automatic room light controller with visitor counter? i need that URGENTLY ... PLEASE
my email id is
aquarius_960@yahoo.com

Bakhtawar Hasan said...

Please send me the circuit diagram and the code i need it urgently please please please
my email address is
aquarius_960@yahoo.com

shruti said...

hi

this page gives me hope. could you possibly send me the circuit diagram as well as the code.
i know its unethical and really wrong but i have to submit this project by thursday, and i do not seem to be making any progress. or maybe you couldcheck out the errors in my circuit, i am using a simple IR led and transparent(diode looking ) receiver, instead of tsop1738.
my id is shrutic17@gmail.com
helllllp!!

tc said...

sent..

shruti - any infrared will do.. i not using tsop1738 as well.. just the simple 1.. however it's not sensitive under bright condition..

Anonymous said...

Hi

could you possibly send me the circuit diagram as well as the code.
naresh_darla@yahoo.co.in

Bipasha K. said...

hi,
U have done a brilliant job.Really appreciate it..
Wel,i had a few queries..if u can pleaz help me out,like.. Was the light controlled(switched on)automatically with the entrance of the visitor or was it indicated by the blinking of lights only?
& I wanted your block diagram & prog code,if you can kindly mail me at bipasha.k21@gmail.com

Siti Fatimah Nabihah said...

hyep :) im doing tis project too~ but still stuck.. can u gv me all the detail of tis project :( im scared i will failed.. huhu

adik_bihah90@hotmail.com

Anonymous said...

hello there, im on my final year project right now and still searching for a this circuit, i hope u can help me through this project..
i really appreciate if you can send me the details and explanation about this project including the schematic diagram...
do keep in touch!
adzlan88@gmail.com

tc said...

sent.

light will only be turned on when the infrared transceiver is triggered. light(single red LED below the tree) remains on when there's occupant(s) in the room..

the blinking tree is just a decorative add-on and it runs once then people enter or exit the room.. blinking LED can be achieve by assigning '1' to the 8 bit LSB and use shift left/right function to shift the '1'.

eg,

0000 0001 (1st LED on)
0000 0010 (2nd LED on)
0000 0100 (3rd LED on)

and so on..

blinking speed can be varied by changing the frequency assigned to LED..

Do check the datasheet regarding 8051 MC info..

Anonymous said...

hello...
this is a very nice project,and i am also trying to built an 'automatic room light controller with bidirectional visitor counter' i hope u can help me through this project..
i really appreciate if you can send me the details and explanation about this project including the schematic diagram,sourse code and procedure to load the codes in the microcontroller...
Waiting for a early and positive reply...you cam mail me at
sharmamanash@ymail.com

Srijita said...
This comment has been removed by the author.
Anonymous said...

hi, m doing d same project as u.. Can i have d source code pls??? In .c format if possible.. Thanx...

mail id : kalaitheboss@ymail.com

tc said...

sent..

Anony - i don't have .c format.. it was done in assembly..

Anonymous said...

Hi tc, I have a doubt. How do I burn the assembly code into the microcontroller? I am using Keil software.. Kindly assist me.. Thank you.

tc said...

not sure about keil though..

you need an IDE port in order to interface 8051 with keil programmer.. convert the code into .hex file and write into 8051..

but i am using mcs-51 which i remove the 8051 everytime when i want to program it.. get a mcs-51 cost you only 25USD..

Anonymous said...

hi,can you help me,
do u mind to send me the details of the project such as circuit diagram, source code,and list of components, pcb layout of automatic room light controller with visitor counter,..
please
i need it urgently
because my submission is next week
please help me
can you send it to my email:

mrec20_mau@yahoo.com.ph

+erika

Anonymous said...

hi,can you help me,
do u mind to send me the details of the project such as circuit diagram, source code,and list of components, pcb layout of automatic room light controller with visitor counter,..
please
i need it urgently
because my submission is next week
please help me
can you send it to my email:

mrec20_mau@yahoo.com.ph

Anonymous said...

hi, what software to use to construct this circuit? pls help me. send me the details. my email: nikkid1881@yahoo.com

Anonymous said...

hi i am also trying to built an 'automatic room light controller with visitor counter' i hope u can help me through this project for our project proposal..
i hope and i gladly appreciate if you can send me the details and explanation about this project including the schematic diagram,source code and procedure to load the codes in the microcontroller...
tnx in advance..Bachelor in computer technology
ever.vaflor@yahoo.com

suraj mishra said...

hi..
great work..!!!
i m also working on the same project..
can u please send me the circuit diagram and component list..
my email is..
surajmishr@gmail.com

Muhammad Nauman said...

Hi ap also working on this project and my project was slightly different from this as I have to involve RTC and schedule the time of counting ... Kindly send me the circuit diagram and also if possible kindly send me the code of this project at armaan.web@gmail.com

HoHOHo said...

Hi TC

I am doing this project as my fyp.
wanna ask what you are checking in pic6?
the result is show the transmitting wave?
can you teach how to check it?
can you add to my msn.
my msn is ycho87@hotmail.com

Anonymous said...

hi ,
i am wanna do this project.please send me the circuit diagram,explaination,program,etc. to my email id rahuljain_0122@yahoo.com.
thank u

Anonymous said...

Hi, im doing the same project for my final year. I would really appreciate if u could email me the pcb circuit diagram, the component used, programming language/coding and anyting related to how to contruct n make this project work, i'm doing it halfway d.
My eamil add: danielkhoo1991@hotmail.com

Thanks a millon.

Anonymous said...

is it possible to program using keil software? were using AT89S52 as our micro controller.. can u pls send us the source code ckt diagram pcb layout.. tnx..
my email is burnacid96@yahoo.com

tnx in advance...

Jenson said...

hey i am doing this same project of automatic room light controller with visitor counter.could u pls send me the circuit diagram,pcb layout,code,schematic file....
My e-mail Id is: hi4jens@gmail.com

Anonymous said...

hiee..
my name is sarath. and am doin this as my project. but i didnt get anything after doi the circuit. could you pls send the circuit diagram, design, pcb layout, program etc to my mail id pls..? its soo urgent for me.
mail id : sarathpradeep@hotmail.com

Abdul Haq said...

hi.. guys i am a final year student i am doing the same project and i want to modify it little bit and i want to develop this for single door not for two. can any one tell me how can i get it. i have tried using 2 Ir led sensors and first is logic 0 and other is logic 1 but it only works for one person as in for bathroom purpose, problem is if 5 ppl enter inside and only one gets out than the lights will get off so plz tell me solution to this problem.
my email is abdulhaq10@gmail.com

Unknown said...

hi
i am in 3rd yr and my group is doing this project but our ckt is not working .. could u pls send me the ckt diagram, pcb layout, code and description for this project .. plz reply soon,its very urgent.plz help us......

email-suhaniyadav48@gmail.com

Anonymous said...

could u pls send me the ckt diagram, pcb layout, code and description for this project ..
plz reply soon,its very urgent.plz help us....

syukorm_88@yahoo.com

Anonymous said...

hi, my name's Domrex and i am doing thesame project as yours. i really love the way you displayed it, but i can't seem to do same. please can you send the the the details and explanation about this project including the schematic diagram,source code and procedure to program the microcontroller. i would really appreciate it. i''m domrex and i'm on my project for a bachelors degree in computer engineering. thanks and God bless. my e-mail...
domike_roy@yahoo.com

Anonymous said...

Hi,
I am building the same project for my Lill bro.Can i get the details with diagram ,programing etc?
It would be very kind hrted.
Thanks

my id: hellboyisout@gmail.com

Anonymous said...

hey my brother...even i m trying this out for my final year project..plz send me required information to this email id - nob.linkinpark@gmail.com
thnks :)

Anonymous said...

I am in 3rd yr and my group is doing this project .
Could u pls send me the circuit diagram, pcb layout, code and description for this project ..
We'll be really grateful!
Thanks!!

email id- agupta_2007@yahoo.com

Anonymous said...

HI,
I am working on a school project by myself, i am doing this project
Can you send me the circuit diagram, pcb layout, code and description for this project. Thank you
That would be very nice if you could do that.

Wilnickjd@gmail.com

amethyst said...

hi, i am working on the same project, but am having problems with my code.. can u pls send yours so that u can fix mine?
thank you so much!

my id id: amethyst_1@rediffmail.com

Anonymous said...

i am also in my final year,and we are also working with the same project.But we'll gonna use PIC16F84A,,is it possible?
Can i also have the complete details of the project?for reference purpose..
my email:Hamz_nicky@yahoo.com
it would be a big help,,,
thank you in advance...

manjusha said...

can u send the code for this to us?
manju.magham@gmail.com

colors of life said...

I'm doi the same project.... can u please send me the details of the project such as circuit diagram, source code,and list of all components required??

my email id is: colorsoflife@yahoo.in

colors of life said...

I'm doin the same project.... can u please send me the details of the project such as circuit diagram, source code,and list of all components required??

colorsoflife12@yahoo.in

Anonymous said...

hi sir this is bobby..i have done this project using a code n circuit of mine but it aint working...
could u please mail me your projects details like code,ckt,etc
thanks in advance..
anudeep_sm92@yahoo.com

Exam Notes said...

Your Project is so cool, Did you design this your self or someone helped you in your project.

Anonymous said...

hey bro, i'm a 3rd year student and took the exact same topic as my miniproject. can u send me the project details to arundas1991@gmail.com ?

can u add me to ur IM ?

Anonymous said...

hey bro can u mail me the source code of this project..??
thejas.bangera12@gmail.com

Anonymous said...

hi! i want to make the same project as yours.can i ask for the circuit diagram and the code? please!i also need it for my project. thank you!
shobe_0902@yahoo.com

Sagar said...

Plz mail me the CKT diagram n code as soon as possible ...need it urgent...
sagar251188@gmail.com

Anonymous said...

mail me plzzz its urgent ...
sagar251188@gmail.com

Anonymous said...

sir..can u give me a coding for this project plizzzzz....TQ...

Anonymous said...

plizz send me a full coding to fahmifaujan81@gmail.com....TQ

Anip said...

please send me full coding to jack.jimmy91@yahoo.com...tq k...

Anip said...

i really finish my hardware..please send me full coding.i really need your help...tq bro..
jack.jimmy91@yahoo.com

rahul said...

Plss send me the correct source code for the microcontroller @ rahul.chatterjee02@gmail.com

Anonymous said...

sir please mail me the source code, pcb layout and circuit of the project...ur help will be of great value...id is ritusaxena613@gmail.com
thanks in advance..!

grace said...

sir plz mail me the code for automatic street light controller using 8051 to evelyngraciashirley2010@gmail.com

Anonymous said...

Hi Sir, i have tried many programs available on net but in vain. Can u pls send me the source code for the automatic room light controller to my mail sirishghrce@gmail.com.
Please......

Anonymous said...

kindly send me the source code at fauqia_ilyas@hotmail.com

Anonymous said...

i am having the same project automatic room light controller using atmel 89c51
sir..im greatfull to you if you send me the source code, circuit/schematic diagram with details of components also send me pcb layout also tell me about the sensor used and if it is not available what shoul i do..
send me the details at inoxent.heart91@yahoo.com

Unknown said...

i need a program of this project plz send me on my mail..
ankitdudharejiya.ec@gmail.com

Farahin Esa said...

hye. im working a similar project like u. but i got some problem. i hope to see ur programming. i m gratefull if u can emel it to me at

airynie6436@yahoo.com

thankz.

Anonymous said...

i really like what u did with ur project...can it be done without the visitor counter?

my email is mat_joey@yahoo.com

Anonymous said...

Sir..I like your project and i'm doing this project for FYP. I hope u can give the code to me..
fahmi1198s@gmail.com

mohd nor syakirin noorudin said...

hi! i want to make the same project as yours.can i ask for the circuit diagram and the code? please!i also need it for my project. i hope you reply answer to my e-mail..thank you!
yen92_laytrue@yahoo.com

kavita said...

hi i liked your project very much u have done a gr8 work i m also interested in this project pls send me all details i will be highly thankful to u.........i need it pls....my id is kaviita02@gmail.com

mhen said...

Good Day! I am very interested with this project of yours. If you allow us, can you share to me all the details (including the components, circuit diagram, codes you used particularly in MLAB, and the documentation) in conducting this project? I'm very much thankful if you will. Here is my email: mhen_tion@yahoo.com

Ismi Hafizah said...

hi, nice!!!i'm also in this project but there is some sort of problem on mine..
can you please share to me all the details (including the components, circuit diagram, codes you used,etc)
so that i can detect where my mistake..
thanks a lot for ur help..
here my email: fawwaz_1225@yahoo.com

Unknown said...

hi good day! i am doing this project as my project study. Can u send me the details of the entire project so that I can refer too. Thank You. Here is my email padrigao@gmail.com

Unknown said...

hi good day! i am doing this project as my project study. Can u send me the details of the entire project so that I can refer too. Thank You. Here is my email padrigao@gmail.com

Ramya said...

hello
Can u pls send us the ckt dgm with source code? We wanna integrate it with other applications
pls reply at the earliest..
my id: raksha2201@gmail.com

Udin Dino said...

hello
can u send me circuit diagram and list of component.?
reply me at : udin_street@yahoo.com

a said...

hi,
i'm having the same project as yours.
do u mind to send me the details of the project such as circuit diagram, source code,and list of components?

ngkspark1403@yahoo.com

tq for help..

Anonymous said...

hey,

I am also working on this project,
can u pls mail me its circuit diagram, pcb layout and software need to be install in the microcontroller ic.
waiting for ur mail.
pls help me out.
my id- ashish.rawatfbd@gmail.com


ashish

Anonymous said...

plz send me a programing plz

Anonymous said...

i want to make the same project.. can you please help me ? kindly mail me all the project details.. specially ciruit diagram, and source code.

Anonymous said...

I want to make the same project.. can you please help me ? kindly mail me all the project details.. specially circuit diagram and source code...

my e-mail is la_mughal@yahoo.com

Unknown said...

i am doing on the same project, so can you please mail me the component needed and the code needed
.Many thanks

Zhafri Akhlaken said...

hope that you can email me the proposal of this project..component needed and the code needed..thank you

Anonymous said...

hey great work....
am dng mini project based on this
will u send me pdf format

Unknown said...

i am doing on the same project, so can you please mail me the pdf format

Unknown said...

i am doing on the same project, so can you please mail me the pdf format

shweta said...

please mail me pdf and code for this project

shweta said...

please mail me pdf and code for this project

Attitudekiller said...

Hi... This is amazing. I am planing to submit this project as my minor project. So can you mail me all the details of this project. I will be very thankful to you.
my email id is : dilipsinghmeena23@gmail.com

Anonymous said...

Hello,
First very late congrats on getting ur project tk work xD
Second, i am trying to implement this project too , i tried a simulation and a code but it isnt really working.. it would be great help if i can see the code you used for yours
My email ia sandykura@hotmail.com
Thank you very much

Anonymous said...

hihi..so nice to found you here..i am the student from MMU. i am doing same project that you are done...can i have your info about this project..may i know your code?and the component?highly appreciate..really need your help^^

jeffrey490@hotmail.com

Post a Comment