Electronic Scale Design Based on 51 Microcontroller with LCD Display (Proteus Simulation + Program + Design Report + Explanation Video)
Simulation Software: Proteus 8.9 or above
Program Compiler: Keil 4/Keil 5
Programming Language: C
Design Number: S0083
Main Functions:



Electronic scale using a 51 microcontroller for design simulation in Proteus
1. The electronic scale can digitally display the weight of objects between 0g-499g, in grams (g);
2. The electronic scale can set a unit price (Yuan/gram) to calculate the item price and achieve cumulative amounts, with a unit price range of 0.01-0.99 Yuan/gram.
3. Displays unit price, object weight, product price, and total price on the LCD1602;
4. Matrix keypad for setting unit price, pricing, cumulative pricing, zeroing, and tare functions;
5. Reads pressure sensor values through the HX711 high-precision AD conversion chip;
Note that the microcontroller chip in the simulation is compatible; the specific models AT89C51 and AT89C52 are variants of the 51 microcontroller, with the same core. In the same schematic, whether STC or AT, the pin functions are the same, and the programs are compatible. Chips can be replaced with STC89C52/STC89C51/AT89C52/AT89C51 and other 51 microcontroller chips.

Download Link:



[Tencent Document] S0083 Cloud Disk Link
https://docs.qq.com/doc/DS0pjU1ZwRkx5bUh1
The following are the display images of this design data:
Explanation Video:



The explanation video includes simulation operation explanation and code explanation
Simulation Design:



Open the simulation project, double-click the microcontroller in Proteus, select the hex file path, and then start the simulation.

After starting the simulation, the LCD displays the current product unit price, weight, and product price, total price.

By clicking the numeric keys on the matrix keypad, you can set the unit price. The image below sets the unit price to 0.12 Yuan. By sliding the variable resistor, you can set the weight, and the image below sets the weight to 20g. After setting, press the pricing key to display the current product price of 2.4 Yuan.

Pressing the cumulative price button can record the current product price, and pressing the zeroing button clears the current product price and total price.
Program Code



Use Keil 4 or Keil 5 to compile. The code has comments that can be understood in conjunction with the video.

Design Report



8066-word design report, including hardware design, software design, hardware and software block diagrams, debugging, etc.

With the continuous progress of modern embedded technology and the increasingly rich practical application scenarios, electronic scale systems designed based on microcontrollers have shown extensive application value in multiple fields due to their excellent performance characteristics. Especially in commercial retail, laboratory precision measurement, and daily family life, these compact and efficient electronic scales have gained market favor with their high precision measurement capabilities, compact size, and intuitive and simple operation interface. They can accurately quantify the weight of objects and clearly display it in digital form, while also having a flexible pricing mechanism that can adapt to the pricing needs of different goods. The unit price ranges from 0.01 Yuan/gram to 0.99 Yuan/gram, achieving dynamic product price calculations and cumulative amounts after multiple weighings, greatly improving transaction efficiency and user experience.
This course design project is based on this technological background and development trend, aiming to build an electronic scale simulation model that integrates multiple practical functions by selecting the classic 51 series microcontroller as the core control unit. Utilizing its powerful data processing capabilities and rich peripheral interface support, we will conduct comprehensive practice from hardware schematic design to software programming, ensuring the simulation of all operational processes and technical indicators of electronic scales in real environments.
Design Data Content List & Download Link



The design data includes simulation, program code, explanation video, functional requirements, design report, hardware and software design block diagrams, etc.
0. Common usage problems and solutions – must read!!!!
1. Program
2. Proteus Simulation
3. Functional Requirements
4. Hardware and Software Flow Charts
5. Opening Report
6. Design Report
7. Schematic
8. Explanation Video
Altium Designer installation crack
KEIL + Proteus microcontroller simulation design tutorial
KEIL installation crack
Proteus component search
Proteus installation
Proteus easy usage tutorial
Microcontroller learning materials
Relevant data sheets
Defense skills
Common descriptions for design reports
Double-click the mouse to open and find the Jia Sheng microcontroller 51 STM32 microcontroller course graduation design.url

Method 1: Copy to browser to open
Data download link:
https://docs.qq.com/doc/DS0pjU1ZwRkx5bUh1
More resources click the link below:
https://docs.qq.com/sheet/DS0xIa0llTmtNakRW
Method 2: Press and hold to scan the QR code



WeChat Official Account
Jia Sheng Microcontroller
Website | www.eemcu.cn

