Hi Friends,
The above circuit is a simple IR transmitter and receiver. There are two such pairs are required so that we can count the number of person of both the directions.
This is my first project which I designed using ATmega16.
It is simply a person counter. It can count the numbers of persons entering in the room as well as leaving the room.
The IR LED's are placed at one end of the door and at the other end photodiodes are placed.
As the photodiode always get light from IR LED the output of the receiver circuit is always '1'.
Whenever a person cross this IR beam the output of receiver becomes '0'.
So we have to count the number of 0's at the receiver output.
Now connect the output of receiver circuit to the INTO pin of the Atmega16 and the other receiver's pin to the INT1 of the mcu.
The required circuit for the Atmega16 is shown below.
