i am trying to design an up down counter circuit which will increment counter when a person enters and decrement when a person leaves a room.but the problem is,how will i pass 1/0 when a person enters/leaves a room to up/down the counter?i am totally confused.need a block diagram badly.
thanks is advance.
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a
member of our community. Consider creating an
account or login.
Hi and welcome to the forum!
This really sounds a good idea.
By the way, how about having seperate doors for entry and exit. For each door you have a LASER (or some other???) beam, which is connected to your circuit. Every time a LASER beam is blocked your circuit gets a signal. If your circuit gets a signal from entry door, you increment a counter, if it gets a signal from exit door, you decreament a counter.
Also, this idea of 2 doors is just a suggestion. We can work on single door idea as well.
Why not have two lasers at the door. Say 'A' and 'B' are two lasers. If laser 'A' breaks first then count it as person entering & if 'B' breaks first then count it as a person leaving.
Yep, ashuashi's suggestion would work. Though, if you are not using microcontrollers for programming the logic, just make use of logic gates and timers 😀
I'd recommend infrared rather than lasers, for safety reasons 😛
main problem is a person will break laser `A` and `B` entering or leaving the room through the only one door.a timer should be used.but how to implement?
The lasers are not on top of each other. What Ashuashi meant was that they have a distance horizontally apart (maybe around 10 cm). So, to determine whether the person entered or exited, the order in which the laser beams are broken will tell you. So, if you place beam A at the front end of the door frame, and beam B and the furthest end, a person entering will break beam A first, and then beam B. When exiting, it will be opposite.
I suggested a timer because it might help your use with logic gates (AND, OR). Have you used microcontrollers before? If so, then you can program your logic directly with code, which is much easier.
Well.....this too is good option which will faciliate entry and exit through same door. Just one needs to take care of having door small enough so that at a time one person can pass through it. Otherwise it may create a problem to identify entry or exit. Am I right?
By the way, can one start designing a circuit diagram for this? It would be pretty simple I guss. 😀