digital counter
DESCRIPTION
Digital Counter used for counting packets etcusing Micro controller89 c 2051TRANSCRIPT
![Page 1: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/1.jpg)
![Page 2: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/2.jpg)
DIGITAL OBJECT COUNTER
Digital object counter is a device which is designed to count the object which is passing from above it or by touching it or whatever depending upon the method of getting signal from the transducer. But main work of digital object counter is the counting of things or objects. It can be done by using LDR or THERMISTOR .
![Page 3: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/3.jpg)
Its one of the 8051 based microcontroller from ATMEL.
Using a microcontroller greatly reduces the component count while providing more features that could be found using dedicated logic IC’S
By using this IC cost is also lowered.
INTRODUCTION TO AT89C2051
![Page 4: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/4.jpg)
89C2051 FEATURES• It’s a low voltage, high performance CMOS
8-bit micro-computer.• its compatible with the MCS51.• 2K bytes of Flash programmable and
erasable read only memory.• 2.7 – 6V operating range.• 15 I/O lines.• two 16-bit timer/counters.• 6 interrupt sources.• On-chip Analog Comparator.
![Page 5: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/5.jpg)
![Page 6: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/6.jpg)
COMPONENT EXPLANATION
![Page 7: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/7.jpg)
CDS ELEMENTS (LDR)Some components can change
resistance value by changes in the amount of light hitting them.
Power supply It is a 3 terminal voltage regulators, which provide the required +5V. Regulators IC LM7805 (U3) provides regulated 5V power supplies, for Micro controller.
LM7805 (3 TERMINAL VOLTAGE REGULATER)
![Page 8: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/8.jpg)
CRYSTAL OSCILLATORAn 11.0592MHz(X1) crystal provides a stable clock frequency.
![Page 9: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/9.jpg)
SEVEN SEGMENT LED DISPLAY
• We can now interface a four digit 7-Seg to the micro controller.
• We use Scanning (Multiplex) Principle where one 7-seg is displayed after another but this process is very fast hence the flickering cannot be seen by human eye.
• When interfacing more than one 7-seg display ,the segment's( A to G) of all displays are connected together whereas their ANODE are switched ON one after another.
![Page 10: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/10.jpg)
BLOCK DIAGRAM OF DIGITAL OBJECT COUNTER
Light Source
Laser torch or any other light source
LDR LDR
det
ecto
r
LM55
5
MIC
ROCO
NTR
OLL
ER
Power supply
LED Display
![Page 11: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/11.jpg)
VCC
Q1 Q4Q3 Q2
COM
COM
COM
COM
12
131415
1716
18
9
8
19
11
7
R8
R11
R10
R9
R1 R2 R3 R4 R5 R6 R7
R12
P1.0/AIN0 P1.1/AIN1
P1.2P1.3P1.4P1.5P1.6P1.7
P3.7P3.5/T1P3.4/T0
P3.3/INT1
vcc
RST/VPP
P3.2/INT0
P3.0/RXD
P3.1/TXD
GND
XTAL
2
XTAL
1
4 5x1
c2 c3
2
3
R1
VCC
20U1
1
6
10
C1
SW1 RESET
VCC
R2
OUT
CV
5
7
R6DIS
CHG
GN
D
TRG
1R5 L
DR
R4
R3
VCC
4 8
U2
THR
VC
C
3
DIGITAL OBJECT COUNTER
![Page 12: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/12.jpg)
in outGnd
D1
R7
PWR L1
C5C4 C6
VCCU3
9 TO 12 Dc in
CN3
![Page 13: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/13.jpg)
• Digital object counter can be installed at the entry gate to count the total number of people entering any venue.
•For example, it can be used at the railway stations or bus stands to count the people arriving per day or week.
Application
![Page 14: Digital Counter](https://reader033.vdocuments.site/reader033/viewer/2022061112/545631f2b1af9f08158b46b0/html5/thumbnails/14.jpg)