Schematic Circuit Diagram:
Before explaining the project, I am going to tell you one important thing: please make a habit of reading the datasheet of the particular IC you are using in your project. In this project, an important integrated IC used is cd4060b you can download from this link. And another important component is a light dependent resistor. You can download the proteus file from this link.
I hope you read the data sheet of 4026 IC. The main function of this IC is to count from 0 to 9 and display the result on the a,b,c,d,e, f, and g pins of the IC, and from these pins we can directly connect to the seven segment display. This IC is manufactured by Texas Instruments. The IC starts counting on the basic clock pulse. Each pulse of the clock enters the IC, and the counter starts after detecting the high edge of the clock pulse. But counter does not mean you can directly fed this circuit to seven. The counter is then fed into the decoder circuit, which is inside the 4026 IC, and the decoder output can be used to represent the seven segment. As I said, this IC works on the basis of a clock. The question is, where is the clock?
Well, each time a visitor enters the room, the resistance of the LDR goes very high, which blocks the current flow through the transistor. After visitors leave this circuit, the LDR resistance again goes low, and current starts flowing through the transistor. Which means each time a visitor enters this circuit, it acts as a clock, and this clock can be used to trigger the 4026 IC. That’s all the concept of this project. This counter circuit will count up to 99 visitors. If you want to count more, then please add another 4026 IC and use it in a similar way.