Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

THE UNIVERSITY OF DANANG

UNIVERSITY OF SCIENCE AND TECHNOLOGY


FACULTY OF MECHANICAL ENGINEERING

PBL 4: MECHATRONICS SYSTEM


PROJECT:

Lecturers: Ph.D TRAN DINH SON


Student: VO TAN PHU
PHAN HUU THANG
Student ID Number: 101200281
101200242
Class: 20CDT2 & 20CDT1

Danang, November 2023


PBL4 – VO TAN PHU & PHAN HUU THANG

DA NANG UNIVERSITY OF SCIENCE THE SOCIALIST REPUBLIC OF VIETNAM


AND TECHNOLOGY Independent – Freedom - Happiness
––––––––––––––––––––––

MISSION OF PROJECT PBL4

Num Name ID Class Industry


1 Vo Tan Phu 101200281 20CDT2 Mechatronic Engineering
2 Phan Huu Thang 101200242 20CDT1 Mechatronic Engineering
1. Lecturer: PhD. Tran Dinh Son
Name of project: Digital Weighing Scale For Selling Goods
2.The subject is subject to: ☐ Having signed an agreement on intellectual property for the
results of implementation
3. Content of the explanations and caculations:
a) General part:
Nu Name Content
m
1 Vo Tan Phu - Get an overview about Digital Weighing Scale For
Selling Goods
2 Phan Huu Thang - Hardware and software design caculation
- Prepare presentation, slides and drawings as required
b) Private part:
Nu Name Content
m
1 Vo Tan Phu - Calculation and design of electronic and control parts
- Design HMI interface to monitor system operation
2 Phan Huu Thang - Calculation of mechanical design
- System control programming
4. Drawing, graphs (specify types and sizes of drawings):
a) General part:
Nu Name Content
m
1 Vo Tan Phu - Make the overall drawing of the machine (1 – A0)
2 Phan Huu Thang
b) Private part:
Nu Name Content
m
1 Vo Tan Phu - Make an algorithm flowchart drawing

2
PBL4 – VO TAN PHU & PHAN HUU THANG

2 Phan Huu Thang - Make a drawing of an electrical circuit diagram

5. Project assignment date: 25/8/2023


6. Project completion date: 28/11/2023
CONTENTS

INTRODUCTION……….......................................................................................................5
CHAPTER 1: INTRODUCTION TO DIGITAL WEIGHING SCALE AND SALES
MANAGEMENT....................................................................................................................6
1.1 Problem Statement......................................................................................................6
1.2 Objectives...................................................................................................................7
1.3 Limitations..................................................................................................................7
1.4 Product Images of the Model......................................................................................7
CHAPTER 2: INTRODUCTION TO HARDWARE COMPONENTS.............................8
2.1 Overview of PIC16F877A..........................................................................................8
2.2 Overview of 16x2 LCD............................................................................................11
2.3 Loadcell and HX711 Signal Amplification Circuit...................................................12
2.4 UART Serial Communication Protocol....................................................................16
2.5 Overview of LM7805 and Power Supply.................................................................18
2.6 Introduction to Webcam and QR Code.....................................................................19
2.7 Overview of Image Processing.................................................................................22
2.8 Analysis of functional blocks in the system:.............................................................24
CHAPTER 3: HARDWARE DESIGN AND PROGRAMMING IMPLEMENTATION
FOR MICROCONTROLLER...............................................................................................25
3.1 Hardware Design for the Electronic Scale Model.....................................................25
3.2 Building the electrical circuit....................................................................................30
3.3 Programming for the system.....................................................................................33
CHAPTER 4: DESIGN THE SYSTEM'S SALES MANAGEMENT INTERFACE AND
DATABASE.........................................................................................................................42
4.1 Introduction to Visual Studio 2022 and SQL Server 2022 Software........................42
4.2 User Interface Software............................................................................................42
CHAPTER 5 LESSON LEARNED AND CONCLUSION...............................................61
5.1 Overall Evaluation....................................................................................................61
5.2 Advantages and disadvantages of the product..........................................................61
5.3 Future Development Directions................................................................................61
3
PBL4 – VO TAN PHU & PHAN HUU THANG

REFERENCE........................................................................................................................62

PREFACE
In the modern industrialization and modernization of the country, the mechanical
industry has become a spearhead industry and plays a crucial role in various other industries.

As students of the Mechanical Engineering department at the University of


Engineering and Technology, after three years of studying and training under the dedicated
guidance of our professors, we have gained valuable knowledge and skills. In line with the
assigned task of designing a device using microcontrollers and sensors, we have
unanimously decided to undertake the project of Digital weghing sacle for selling goods.
This project is driven by the essential nature of people's lives, where the need for efficient
purchase and quick payment methods is increasing to meet the growing demands of society.

During the course of this project, we acknowledge that there may be limitations in
terms of time constraints and specialized knowledge. Additionally, as this is our first
endeavor in electronic design, it is inevitable that there may be unintended mistakes and
shortcomings. We highly appreciate and eagerly look forward to receiving sincere feedback
and guidance from you, esteemed professors, to help us successfully complete this design
project.
We would like to express our heartfelt gratitude to all the professors in the
Mechanical Engineering department, especially to Professor Đo The Can, for their
unwavering support and guidance throughout the process of completing this project.

Danang, November 23, 2023


Author

VO TAN PHU

4
PBL4 – VO TAN PHU & PHAN HUU THANG

o Số liệu đầu vào:


+ Tổng trọng lượng của vật cần tải: 0.5 kg
+ Ngoại lực tác động lên vật: 0N
+ Hệ số ma sát giữa belt và mp bên dưới của băng tải: thường VN rơi vào 0.3 – 0.4
+

You might also like