设计说明书
总字数:17000+
摘要
随着商业零售、家庭食材管理等场景对称重需求的不断升级,传统电子秤功能单一、操作繁琐的问题逐渐凸显,无法满足用户对重量测量、价格计算、数据记录与信息交互的一体化需求。在零售场景中,快速精准的称重计价与语音播报能提升交易效率;家庭场景下,对称重数据的存储与远程查看可助力健康饮食管理。因此,研发一款功能丰富、操作便捷且数据可交互的智能电子秤具有重要现实意义。
本设计提出了一种基于 STM32F103C8T6 单片机的智能电子秤。系统核心功能包括:通过 HX711 称重模块精准采集物体重量,当测量重量超过设定量程时,触发蜂鸣器进行报警提示;用户可通过 4*4 矩阵键盘手动设定物品单价,确认后系统自动计算总价,并通过 CN-TTS 语音播报模块清晰播报当前测量重量与计算得出的总价;借助 OLED 显示屏实时显示设定的单价、测量的重量及自动计算的总价,方便用户直观查看;同时,系统通过 ESP8266-12F WIFI 模块,将每次称重的单价、重量及总价数据稳定发送至手机端,实现数据的远程查看与存储。
该智能电子秤的应用价值在于,为零售与家庭场景提供了一体化的称重计价解决方案。通过精准称重、自动计价、语音播报与无线数据传输,不仅提升了零售场景的交易效率,也为家庭用户的重量数据管理与健康饮食规划提供了便利,有效满足了不同场景下用户对智能称重设备的多样化需求,进一步提升了称重设备的实用性与智能化水平。
关键词:STM32F103C8T6;智能电子秤;HX711称重模块;ESP8266-12F WIFI;CN-TTS 语音播报
Intelligent electronic scale based on microcontroller
Abstract
With the continuous upgrading of weighing requirements in commercial retail, household food management and other scenarios, the problems of single function and cumbersome operation of traditional electronic scales have gradually become prominent, which cannot meet the integrated needs of users for weight measurement, price calculation, data recording and information exchange. In the retail scene, fast and accurate weighing and pricing, as well as voice broadcasting, can improve transaction efficiency; In a home setting, the storage and remote viewing of weight data can assist in healthy eating management. Therefore, developing an intelligent electronic scale with rich functions, convenient operation, and interactive data is of great practical significance.
This design proposes an intelligent electronic scale based on STM32F103C8T6 microcontroller. The core functions of the system include: accurately collecting the weight of an object through the HX711 weighing module, and triggering a buzzer to alert when the measured weight exceeds the set range; Users can manually set the unit price of items through a 4 * 4 matrix keyboard. After confirmation, the system automatically calculates the total price and clearly broadcasts the current measured weight and calculated total price through the CN-TTS voice broadcast module; Real time display of set unit price, measured weight, and automatically calculated total price through OLED display screen, making it convenient for users to intuitively view; At the same time, the system stably sends the unit price, weight, and total price data of each weighing to the mobile phone through the ESP8266-12F WIFI module, achieving remote viewing and storage of data.
The application value of this intelligent electronic scale lies in providing an integrated weighing and pricing solution for retail and home scenarios. Through precise weighing, automatic pricing, voice broadcasting, and wireless data transmission, not only has the transaction efficiency of retail scenes been improved, but it has also provided convenience for weight data management and healthy diet planning for household users, effectively meeting the diverse needs of users for intelligent weighing devices in different scenarios, and further enhancing the practicality and intelligence level of weighing devices.
Keywords:STM32F103C8T6; Intelligent electronic scale; HX711 weighing module; ESP8266-12F WIFI; CN-TTS voice broadcast
目 录
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 语音播报模块电路设计
3.7 WIFI 传输模块电路设计
3.8 报警模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 主机系统主流程设计
4.3 矩阵键盘子流程
4.4 称重模块HX711模块子流程
4.5 WiFi模块子流程设计
4.6 OLED显示屏子流程设计
4.7 语音播报模块子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 称重与超量程报警功能测试
5.3 价格设定与语音播报功能测试
5.4 OLED 显示功能测试
5.5 WIFI 数据传输功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!