LOGO “ Add your company slogan ” Final Project Group: T2H2 Mai Thi Thu Nguyen Van Thanh Do Van Huu Pham Ngoc Huy Supervisor: DungHA TrungNT T2H2 Group: Mai Thi Thu Nguyen Van Thanh Do Van Huu Pham Ngoc Huy Supervisor: Huynh Anh Dung Nguyen Tat Trung
Members Mai Thị Thu Nguyen Van Thanh Pham Ngoc Huy Do Van Huu
Contents Introduction 1 Requirement 2 Design and Implementation 3 Testing 4 5 Conclusion and Demo
Introduction Project Detect Motion and camera tracking Reason choose this topic? Role and Responsibility ProjectProject Overview system
Functional Requirement 2 Camera records image of object moving. 1 Camera detects object in area screen. 5 Camera moves following object by using step motors. 4 Display movement of object on PC’s application. 3 Analyze image & recognize the movement of object.
Non-Functional Requirement Performance 1 Reliability 2 Availability 3 Security 4 Maintainability 5 Portability 6
Devices and ToolsµC AT89C52 Motor 2 Step motors Image Webcam2.0 Devices Visual C OpenCV Keil C Protus 7 4 MS Project, MS Visio 5 Tools
Software Process Model
System Design Circuit design PC software design Control step motor functions design System Architecture Design
Communication Protocols RS232USB
PC Soft Design
PC Log Tool Main GUI Start Program Start Open View Build command and send to Log Receive command and display Stop capturing Stop displaying command to log Exit program Stop capturing and destroy window PC Software Design
RS232 Circuit Start connect to microchip Build and send command Connect to PC Receive command from PC Start controlling step motor Stop displaying command Stop controlling step motor Communication Design PC Tool
PC GUI Design & Implement Choose Comport Setting baud rate
Sending command log Receive command log Communication status PC Interface Design & Implement
(1)Histogram view (2)HSV View (3)Main View (4)Motion Parameters view (5)Laplace view (6)Button Control
Detect Moving Algorithms
Following Object Algorithms
Circuit Task Flow Receive command from PC Analyze command Calculate degree and direction of object from command Control step motors with input Stop controlling step motor Stop receiving data from PC Disconnect While connect to PC Circuit: Task Flow
Microcontroller AT89C52Connect COM port Power circuit controls stepper motor Transformer Rectifier 5V Circuit Rectifier 12V Circuit Other Devices Circuit Design & Implement
The motor which was used is 48 steps and each step angle is 7.5 degree
Operation: 1. The horizontal motor allows frame to rotate left or right 2. The vertical motor allows frame to rotate up or down 3. The camera is fixed on the top of frame to follow the moving object based on motor’s run Operation: 1. The horizontal motor allows frame to rotate left or right 2. The vertical motor allows frame to rotate up or down 3. The camera is fixed on the top of frame to follow the moving object based on motor’s run 2 step motors Non-dynamic frame 1 Camera
Testing Test Plan Test case Test result Defect log
Test Result
LOGO “ Add your company slogan ” Final Project T2H2 Group