up down counter

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.

Replies

  • Differential
    Differential
    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.

    Let me know what you think !
  • ashuashi
    ashuashi
    Just a thought came from the above post.

    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.

    just a thought. Hope it helps.

    I will think on any other way out also.
  • Ashraf HZ
    Ashraf HZ
    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 ๐Ÿ˜›
  • maruf10
    maruf10
    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?
  • Ashraf HZ
    Ashraf HZ
    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.
  • ashuashi
    ashuashi
    Exactly. They would be horizontally apart. Use simple gates logic to activate timer in forward and reverse increments.
  • Differential
    Differential
    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. ๐Ÿ˜€

You are reading an archived discussion.

Related Posts

hi friends, please kindly do help me out in a time table generation coding in either jsp or java. thanks in advance ur's boopesh
CEans, Use the registration code CE to enroll for the Great Indian Developer Summit 2009 and get upto 35% discount ! Click on the following link for more information -...
Discuss the announcement - https://www.crazyengineers.com/forum/announcements/12807-special-discount-ceans-gids-09-a.html in this thread.
Hello, Engineers...Here follows an a new IEEE based java-networking project which i'm gng to discuss-----> any one can copy the things...... TOPIC title:Wireless Intrusion detection and new attack model ABSTRACT...
โ€‹ Alright, relax folks, its just a proposed idea ๐Ÿ˜‰ I was planning to work on a "Home Solar Project", In which I try using grid connected solar systems at...