Automatic Door Open System With Vistor Counter Part-2 Using ARDUINO UNO R3
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 .
Automatic Door Open System With Vistor Counter Part-2 Using ARDUINO UNO R3 (Code)
//created and modified by prasant
//All right reserved to electronify.org
//you can modify and share this code freely
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
#define PIR_sensor 14
#define counter 7
#define m11 0
#define m12 1
pinMode(counter , OUTPUT);
//initialize visitor counter as int visitor =0
lcd.print(" Gate Opened ");
digitalWrite(m11, HIGH); // gate opening
digitalWrite(m11, LOW); // gate stop for a while
lcd.print(" Gate Closed ");
digitalWrite(m11, LOW); // gate closing
digitalWrite(m11, LOW); // gate closed
//display visitor count to seven segment display
//please increase visitor count ++
lcd.print(" No Movement ");
lcd.print(" Gate Closed ");
Automatic Door Open System With Vistor Counter Part-2 Using ARDUINO UNO R3 (Schematic Diagram)
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 .
This Post / Project can also be found using search terms:
- protuse stimulation of automatic door opening and closing using PIR Sensor And Arduino Pdf
- arduino pulse counter circuit
- arduino uno AUTOMATIK GATE
- automatic bag cement counting machine by using of arduino on proteus