Hanoi University of Science and Technology

Client need: A device can count components in a company with three mode

Mode A Free: the counting will be increasing, 0, 1, 2 and so on.

Mode B Up: Device start to count from 0 to constant K

  When the number = constant K, the buzzer will sound for a second and return to main.

3. Mode C down: Invert with Mode B

Note: Numbers will increase in one direction, the invert direction will count down.

 

pptx11 trang | Chuyên mục: Vi Xử Lý – Vi Điều Khiển | Chia sẻ: tuando | Lượt xem: 293 | Lượt tải: 0download
Tóm tắt nội dung Hanoi University of Science and Technology, để xem tài liệu hoàn chỉnh bạn click vào nút "TẢI VỀ" ở trên
Hanoi University of Science and Technology 
Microprocessor 
Project: Counter Components 
Group 4: 
Nguyen Trung Hieu 
Nguyen Ngoc Thanh 
Hoang Van Toan 
Nguyen Van Tu 
Hoang Trong Vinh 
Advisor: Hoang Manh Thang 
Contents 
Problem Statement 
Methods 
Solution 
Conclusion 
Problem Statement 
Client need: A device can count components in a company w ith three mode 
Mode A Free: the counting will be increasing, 0, 1 , 2 and so on . 
Mode B Up: Device start to count from 0 to constant K 
	  When the number = constant K, the buzzer will 	sound for a second and return to main . 
3. Mode C down: Invert with Mode B 
Note: Numbers will increase in one direction, the invert direction will count down. 
Methods 
Using the lighting photo diode as sensor to realize the component. 
Principle: 
 2 sensor to get the direction 
a. Case 1: 1 st s1 off, s2 on; 2 nd s1 on, s2 off 
right direction, count up 
b. Case 2: 1 st s1 on, s2 off; 2 nd s1 off, s2 on 
 Invert direction, count down 
Methods 
Sensor on-off make a pulse which can be record in microcontroller. 
Every two pulses microcontroller will count a component 
Solution 
Use PIC-Microcontroller process signal(pulse) by interrupt and timer module to count component. 
We will use PIC 18F4520 with many functions to make this device. 
18F4520: have a basic interrupt with 4 timer module 
Diagram 
Schematic 
Prototype 
Conclusion 
This device have three mode A, B, C. 
It runs stalely. 
The number count is true 
Thank you for listeningAnd Question 

File đính kèm:

  • pptxhanoi_university_of_science_and_technology.pptx