Jump to content
Electronics-Lab.com Community

counter


kad

Recommended Posts

I'm plannig to do a project that includes counting the number of people entering and leaving the room through one door..For this i want to use 2 light beams simultaneously to count the number of people entering and leaving the room
Now if a person enters your room he will pass by beam 1 then beam 2, if he leaves it then he will pass through beam 2 then beam 1..
so when the person enters the room beam 1 gets obstructed and generates a pulse which is given to a counter thus the ppl entering is counted..
and when the person is leaving second beam is obstructed and is given to a different counter to count the no .of ppl leaving ...
But the problem is that when the first beam is obstructed the second beam should should be deactivated untill he crosses the second beam while leaving(as the second beam shouldn't count when the person is entering)
so can u suggest me some idea for deactivating the second beam only for few seconds...please help

Link to comment
Share on other sites


Dear KAD

I think you can not do anything with beams! because any interrupt will cause the counter to count One.
You'd better to deactivate the counter circuit. for example if you have a TTL IC in counter citcuit, maybe you can deactivate it via CE(Chip Enable) Pin.

If you have not build the circuit yet, maybe It would be much more easier if you do the project using a MCU.

HTH - Shahriar

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...