I WANT TO DESIGN A TWO WAY VISITOR COUNTER FOR A ROOM OF CAPACITY 100.CAN SOMEONE PLEASE GIVE ME THE CODE /PROGRAM FOR THE SAME.I 'M IN URGENT NEED OF THE SAME.
The microprocessor can't count people without external hardware. Until you have a design for the device or devices to actually respond to people entering and exiting the room, it is not possible to make up code. The microprocessor has to be able to use the inputs from the sensors to count people.
Without that external hardware design, the software has to wait.
i use an ir sensor and a pair of phototransistor at the receiving end to indicate the passage of persons in and out.this is used as a stimulator to the microcontroller to count up or down or stay as such.when the count goes to 100 ,a buzzer will sound an alarm.does this make somewhat clear?
So you declare a variable as integer, increment it with poeple entering, and decrement as people leave. Compare the variable to the value 100d, and set off the alarm when the variable is equal to 100d.