CrazyEngineers
  • up down counter

    maruf10

    maruf10

    @maruf10-81pBO9
    Updated: Oct 24, 2024
    Views: 2.4K
    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.
    0
    Replies
Howdy guest!
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.
Replies
  • Differential

    MemberJan 21, 2009

    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 !
    Are you sure? This action cannot be undone.
    Cancel
  • ashuashi

    MemberJan 22, 2009

    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.
    Are you sure? This action cannot be undone.
    Cancel
  • Ashraf HZ

    MemberJan 22, 2009

    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 😛
    Are you sure? This action cannot be undone.
    Cancel
  • maruf10

    MemberJan 22, 2009

    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?
    Are you sure? This action cannot be undone.
    Cancel
  • Ashraf HZ

    MemberJan 22, 2009

    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.
    Are you sure? This action cannot be undone.
    Cancel
  • ashuashi

    MemberJan 22, 2009

    Exactly. They would be horizontally apart. Use simple gates logic to activate timer in forward and reverse increments.
    Are you sure? This action cannot be undone.
    Cancel
  • Differential

    MemberJan 22, 2009

    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. 😀
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register