Hi every body,I would like to counter the objects which pass through the IR right interfaced to my PIC16F876A and display the number on the seven segment display.
How may I preceed?
I want to do the same with a decounter then display the difference.
Beam break detector! you can use an IR detector module using a photodiode on one side and an IR led on the other. When someone enters the room then the IR signal being received by the photodiode will be interrupted and this activity can be monitored though a microcontroller.
Thanks Tahmid,I want to use an IR of 40Khz and a photodiode connected to an AN1;the circuit no problem about it but the problem is to write codes in ccs c compiler which count by increasing one as far as the IR light is interrupted by an a person enterring i the room.
This could be the same for decounting with another IR of 40Khz and a photodiode on AN0 whic hnow decounts when a person leave the room.
Thanks Tahmid,the problem I have is multiplexing the output of a photodiode (phototransistor demounted on TV card)
,realizing that subroutine for counting and display the counts in digits on seven segments display.
I have done this type of project. TSOP1738 is not a good choice for this type of project. Not only TSOP1738 needs a modulated Infra red ray, also TSOP1738 behaves abnormal for a contenious ray. Lots of things will have to be taken care of.