设计说明书
总字数:11000+
摘要
在工业生产、商业交易以及日常生活等诸多场景中,准确称重是一项基础且重要的需求。无论是物资计量、商品交易还是家庭物品称重,精准的重量数据都起着关键作用。传统的称重设备存在操作繁琐、数据记录不便等问题,难以满足便捷化、智能化的使用需求,因此,研发一种操作简便、测量精准且能实现数据高效传输与显示的称重系统具有重要意义。
本设计提出了一种基于 STM32F103C8T6 单片机的称重系统。系统主要功能包括:通过 HX711 模块检测物体重量,测量精度可达 0.1kg;当有物体放置且重量稳定后,系统可通过 WiFi 将重量数据发送到手机上;同时,借助 OLED 显示屏实时显示测量得到的重量数据。
该称重系统的作用在于,为各场景下的称重需求提供了一种便捷、精准的解决方案。通过精准测量、实时显示以及便捷的数据传输,能够提高称重效率,方便数据的记录与管理,满足不同用户在多种场景下对重量测量的需求,提升称重操作的智能化水平。
关键词:单片机;称重系统;HX711;WiFi 传输;OLED 显示
Design of Weighing System Based on Single Chip Microcomputer
Abstract
Accurate weighing is a fundamental and important requirement in various scenarios such as industrial production, commercial transactions, and daily life. Accurate weight data plays a crucial role in material measurement, commodity trading, and household item weighing. Traditional weighing equipment has problems such as cumbersome operation and inconvenient data recording, which make it difficult to meet the needs of convenient and intelligent use. Therefore, it is of great significance to develop a weighing system that is easy to operate, accurate in measurement, and can achieve efficient data transmission and display.
This design proposes a weighing system based on STM32F103C8T6 microcontroller. The main functions of the system include: detecting object weight through the HX711 module, with a measurement accuracy of up to 0.1kg; when an object is placed and the weight is stable, the system can send weight data to the mobile phone through WiFi; Meanwhile, with the help of OLED display screens, real-time weight data obtained from measurements can be displayed.
The function of this weighing system is to provide a convenient and accurate solution for weighing needs in various scenarios. Through precise measurement, real-time display, and convenient data transmission, weighing efficiency can be improved, data recording and management can be facilitated, meeting the weight measurement needs of different users in various scenarios, and enhancing the intelligence level of weighing operations.
Keywords: microcontroller; Weighing system; HX711; WiFi transmission; OLED display
目 录
1 绪论
1.1 研究背景及意义
1.2 国内外研究现状
1.3 主要内容
2 系统总体方案设计
2.1系统总体设计
2.2 主要模块方案选择
3 系统硬件设计
3.1 总体硬件框架
3.2 主控模块电路设计
3.3 重量检测模块电路设计
3.4 显示模块电路设计
3.5 无线传输模块电路设计
3.6 电源模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 WiFi模块子流程设计
4.6 称重模块子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 重量检测及显示功能测试
5.3 WiFi 数据传输功能测试
5.4 系统整体功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!