|
|
|
|
| Counter Sensor 4 Digit |
|
|
 |
|
|
| The counter sensor majority apply in industry or factory. Example counting commodity or counting a car in/out of parking. This project we will create counter system for apply. First of all see feature as below. |
|
|
|
Feature  |
|
|
|
Display 4 Digit 0000-9999
|
|
Can be Count UP or Count DOWN
|
 |
|
|
|
| |
|
|
Hardware  |
|
| This counter Sensor consist of 3 Section as follows 1.Detect Object (Sensor) Data Processing (CPU) and Display for sensor final section Display by 7-Segment. |
|
|
| 1.Detect Object (Sensor) : we choose Optical Sensor H21A1 (Phototransistor Optical Interrupter Switch). |
|
|
|
|
| 2.Data Processing (CPU) : for this project we choose microcontroller AT89C1051 of ATMEL Product |
|
|
|
|
| 3.Display : for final section Display by 7-Segment. |
|
|
|
|
The completed circuit show as figure 1 |
|
|
|
|
|
|
|
|
|
|
Figure 1. Schematics of Counter Sensor 4 Digit |
|
|
|
|
|
|
|
|
|
|
|
| |
Software  |
|
|
| The Programming can be explain by flowchart figure 2 |
|
| |
|
|
|
|
|
Figure 2. Flowchart for Programming |
|
|
|
|
|
|
Data Support  |
| |
|
|
|
|
|
|
|
|
 |
 |
 |
|