help bidirectional automatic room light controller with visitor counter using 89s52

Status
Not open for further replies.

ashish.rawat

Newbie level 1
Joined
Jul 4, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
8
Hi,

I making a project on automatic room light controller using microcontroller 89s52, there is a circuit diagram which i found on the internet for that, but as i know that i have to store a program in 89s52 and first i have to check the circuit on keil and proteus....only then i can proceed for practical circuit.

But i am not finding any program for the project...have anyone have it which is correct and if there will be pcb layout ....it will be great help...
 
Last edited by a moderator:

There should be two IR transmitters and two IR receiver circuits. The receiver outputs will be connected to External Interrupt pins. Whenever an interrupt is detected on both Interrupt pins then you increment or decrement the counter based on what sequence the interrupts occured that is for person entering room interrupt (INTR) A will occur first and then INTR B. For person leaving the roon INTR B occurs first and then INTR A. You can display the counter value on 7 Segment display.

You can generate 38 KHz for IR leds from MCU itself or you can use modules like this which have a DOUT pin to interface with MCU.

https://probots.co.in/index.php?main_page=product_info&cPath=9&products_id=360


You need two such circuits. There will be 1 counter in the software. If counter value is 0 then it means there are no people in the room and the lights will turn OFF automatically. If counter value is > 0 then lights will be ON.
 
Last edited:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…