设计说明书
总字数:13000+
本毕业论文旨在设计和实现一种基于STC89C52单片机的超市电子秤。该电子秤具备多项功能,包括时间获取、商品信息输入与存储、价格修改、称重计算以及出售记录保存和查看等。通过集成DS1302实时时钟模块、4*4矩阵键盘、AT24C02 EEPROM存储器、HX711称重模块和LCD12864液晶显示屏等外围设备,系统能够准确地测量商品的重量,并根据用户输入的编号自动计算总价。此外,还可以切换至计数模式,实现按个数计量。通过AT24C02 EEPROM存储器可保存出售记录,方便用户查询历史销售情况。最后,利用LCD12864液晶显示屏直观地展示各种测量数据和功能信息,提高用户体验。
关键词:超市电子秤;DS1302;AT24C02 ;HX711称重模块;LCD12864液晶显示屏
This thesis aims to design and implement a supermarket electronic scale based on the STC89C52 microcontroller. The electronic scale has multiple functions, including time acquisition, input and storage of product information, price modification, weight calculation, and sale record storage and viewing. By integrating peripherals such as the DS1302 real-time clock module, 4*4 matrix keypad, AT24C02 EEPROM memory, HX711 weighing module, and LCD12864 liquid crystal display screen, the system can accurately measure the weight of goods and automatically calculate the total price based on user-inputted product codes. Additionally, it can switch to counting mode for quantity measurement. Sale records are stored in the AT24C02 EEPROM memory for convenient retrieval of historical sales information. Finally, various measurement data and functional information are displayed intuitively on the LCD12864 liquid crystal display screen to enhance user experience.
Keywords: supermarket electronic scale; DS1302; AT24C02; HX711 weighing module; LCD12864 liquid crystal display screen
目 录
基于单片机的超市电子秤设计与实现
摘要
Abstract
1 绪论
1.1 研究背景及其研究意义
1.2 国内外研究现状
1.3 研究目标
2 系统方案设计
2.1 整体方案设计
2.2 主要器件选型选择
2.2.1 主控芯片方案选择
2.2.2 显示模块方案选择
2.2.3 称重方案选择
3 硬件电路设计
3.1 主控模块电路
3.2 称重模块电路
3.3 时钟模块电路
3.4 存储模块电路
3.5 显示电路模块模块
3.6 矩阵键盘模块电路
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 矩阵键盘子流程
4.4 存储模块子流程
4.5 称重模块HX711模块子流程
4.6时钟模块子流程
5 实物调试
5.1 实物调试部分
5.2 整体焊接实物
5.3 称重功能测试
5.4 商品数量测量实物测试
总结与展望
致 谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!