Hello welcome back . In previous part we have made a visitor detector by using PIR sensor . This application can be used on night because PIR sensor gives output based on thermal object movement . In this tutorial we are going to extend that project with visitor counter part .
First of all i want to apologize that I am unable to add seven segment without adding extra IC as promished, it’s because we are out of pin on arduino board if we do not add extra IC as explained in this project of simple counter with multiplexed seven segment display . So I decide to ad 4033 decade counter IC which make project simple and efficient although it is not cost effective .
By adding 3 seven segment IC with their drivers we can count object upto 999 and if you want to count more than 999 you can cascade another seven segment as shown in schematic diagram above . Now let’s start the project making circuit diagram above and writing code for it as shown below . You can download complete project file with proteus 7 file circuit diagram and arduino code from this link visitor counter with automatic door opening. and the code explanation is shown after the code .
The code is simple and easy to understand . Since I have added extra IC and just added two lines of extra code to give high pulse to the counter so this project is very much similar to the previous one .
Just adding CD4033 which is 5 stage Johnson decade counter . This IC gives output of decoder which converts the Johnson code to a 7 segment decoded output for driving one stage in a numerical . Please download a datasheet of this IC and learn more about it’s functionalaity before using it .