Hi friends,
I am trying to make an electronic Device, that will turn on the lights when someone enters the room and turns it off, when exit. The device should actually count the no. of people inside the room, so that, when multiple people enter the room, the light should be switched off, only when the last person exits.
I currently have this plan for the device.
1. Use a up/down counter (CD4011) to count the no. of people inside the room. Whenever the no. isn't 0, turn on the lights and when its 0, turn it off.
2. Use two IR Modules (TSOP1556 and IR Led) to detect whether the person is entering or leaving. and accordingly count up or down.
I can do well with the counter.
But I need help in this part--> how should I wire those IR Recievers so that, it sends pulse to the up-count Clock pin of CD4011 when someone enters and send pulse to down-count Clock pin when exit.
I have shown below my tentative circuit. How should I be modifying it.
**broken link removed**