基于单片机的蓝牙电子秤设计

3.0 闻远设计 2024-07-01 127 4 1.83MB 46 页 30光币
侵权投诉
1
摘 要
本文旨在设计一款能够实现无线上传数据的智能化电子秤,系统主要包含的功能
为去皮、自动称重、超重报警、单价输入、总价计算功能。在人机交互方面,采用了
LCD1602 显示屏和串口助手显示,提供了直观清晰的界面;而输入方面,则使用了矩
阵键盘作为单价输入键盘,以及独立按键实现了输入单价和去皮功能,操作简便。为
了提供良好的用户体验,按键采用了蜂鸣器作为按键音,同时该蜂鸣器又作为超重报
警的警报音,有效提醒用户。
在称重方面,主体采用半桥电路通过 HX711 芯片进行重量采集,并进行放大处理,
随后利用 AD 转换并使用特定的串行通信协议,将数字化的重量信息发送给 stm32 单片
机。单片机在接收到数据后,利用校准后的公式进行计算,并将结果显示到 LCD1602
上,实现了精确的称重功能。为提高效率,程序中使用了变量监测,只有在重量、按
键或者单价发生变化时,LCD1602 才进行刷新,刷新后即执行数据上传。数据上传采
NRF24L01 无线串口透传模块,确保了数据的及时传输和准确性。
本文为验证方案的可行性,首先采用 Proteus 软件进行模拟,验证系统设计的正确
性。随后,利用各种电子模块在洞洞板上搭建完整的系统硬件电路,进一步验证系统
的稳定性和可靠性。最后,通过实物测试再次验证了方案的可行性,确保系统在实际
使用中的稳定性和准确性,为智能电子秤的实际应用奠定了坚实的基础。
关键词:智能化电子秤、HX711、无线电子秤、stm32 嵌入式开发
Abstract
This paper aims to design an intelligent electronic scale capable of wirelessly uploading
data. The system mainly includes functions such as tare function, automatic weighing,
overweight alarm, unit price input, and total price calculation. In terms of human-computer
interaction, an LCD1602 display and serial assistant display are employed, providing a clear
and intuitive interface. For input, a matrix keyboard is used for unit price input, while
independent buttons are used for unit price input and tare function, making operation
convenient. To enhance user experience, a buzzer is utilized for button feedback, also serving
as an alarm for overweight situations, effectively alerting users.
Regarding weighing, the main body adopts a half-bridge circuit for weight acquisition
through the HX711 chip, followed by amplification. Subsequently, after AD conversion and
utilizing a specific serial communication protocol, the digital weight information is
transmitted to the STM32 microcontroller. Upon receiving the data, the microcontroller
performs calculations using calibrated formulas and displays the results on the LCD1602,
achieving precise weighing functionality. To improve efficiency, variable monitoring is
implemented in the program, only refreshing the LCD1602 when weight, buttons, or unit
price change, followed by data upload. Data uploading is achieved using the NRF24L01
wireless serial port transparent transmission module, ensuring timely and accurate data
transmission.
To validate the feasibility of the solution, Proteus software is first employed for
simulation to verify the correctness of the system design. Subsequently, using various
electronic modules, a complete hardware circuit is built on a perforated board to further verify
the stability and reliability of the system. Finally, physical testing is conducted to reaffirm the
feasibility of the solution, ensuring the stability and accuracy of the system in practical use,
laying a solid foundation for the practical application of intelligent electronic scales.
Keywords: Intelligent electronic scale, HX711, Wireless electronic scale, STM32
embedded development

标签: #设计 #单片机

摘要:

1摘要本文旨在设计一款能够实现无线上传数据的智能化电子秤,系统主要包含的功能为去皮、自动称重、超重报警、单价输入、总价计算功能。在人机交互方面,采用了LCD1602显示屏和串口助手显示,提供了直观清晰的界面;而输入方面,则使用了矩阵键盘作为单价输入键盘,以及独立按键实现了输入单价和去皮功能,操作简便。为了提供良好的用户体验,按键采用了蜂鸣器作为按键音,同时该蜂鸣器又作为超重报警的警报音,有效提醒用户。在称重方面,主体采用半桥电路通过HX711芯片进行重量采集,并进行放大处理,随后利用AD转换并使用特定的串行通信协议,将数字化的重量信息发送给stm32单片机。单片机在接收到数据后,利用校准后的公...

展开>> 收起<<
基于单片机的蓝牙电子秤设计.docx

共46页,预览14页

还剩页未读, 继续阅读

作者:闻远设计 分类:非标机械电气自动化 价格:30光币 属性:46 页 大小:1.83MB 格式:DOCX 时间:2024-07-01

开通VIP享超值会员特权

  • 多端同步记录
  • 高速下载文档
  • 免费文档工具
  • 分享文档赚钱
  • 每日登录抽奖
  • 优质衍生服务
/ 46
客服
关注