设计说明书
总字数:10000+
本设计基于STC89C52单片机,设计了一个多功能计数仪,具备计数、称重和数据显示功能。系统通过红外对射管、HX711称重模块和按键实现计数操作,并通过LCD1602显示屏显示相关数据。具体功能包括:红外对射管计数:通过一个红外对射管进行物体的计数操作,当物体通过红外对射管时,系统会自动进行计数。称重计数:通过HX711称重模块进行物体的称重操作,当物体的重量超过设定值时,系统会进行计数,并显示相应计数值。按键计数:通过按键按下进行计数,每按下一次按键,系统会自动计数一次。按键设定和复位:通过按键进行称重设定值的设定和计数复位操作,用户可以根据需求设置称重设定值,以及通过按键进行计数复位。数据显示:系统通过LCD1602显示屏实时显示计数和称重数据,方便用户实时了解计数仪的状态。通过以上功能,本设计实现了基于单片机的多功能计数仪,能够实现红外计数、称重计数和按键计数,并通过LCD1602显示屏提供数据显示。这种设计可以广泛应用于需要计数和称重的场景,如物料统计、仓库管理、实验室计数等,具有实用性和便捷性。
关键词:单片机;多功能计数仪;STC89C52;红外对射管;HX711称重模块;LCD1602显示屏
This design presents a multi-function counter implemented using the STC89C52 microcontroller, capable of performing counting, weighing, and data display operations. The system utilizes an infrared transmitter-receiver pair, an HX711 weighing module, and buttons for counting operations, with data displayed on an LCD1602 screen. The specific functionalities include:Infrared counting: Objects passing through the infrared transmitter-receiver pair trigger automatic counting by the system.Weighing and counting: The HX711 weighing module measures the weight of objects, and if the weight exceeds a predefined threshold, the system performs counting and displays the corresponding count value.Button counting: Each press of a button triggers an automatic count increment.Setting and reset: Buttons allow users to set the weighing threshold and reset the count value.Data display: The LCD1602 screen provides real-time display of the count and weighing data, enabling users to monitor the status of the counter.Through these functionalities, this design achieves a multi-function counter based on the STC89C52 microcontroller, enabling infrared counting, weighing-based counting, and button-based counting, with data displayed on the LCD1602 screen. This design finds applications in various fields, such as material inventory, warehouse management, and laboratory counting, due to its practicality and convenience.
Keywords: microcontroller, multi-function counter, STC89C52, infrared transmitter-receiver pair, HX711 weighing module, LCD1602 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 显示模块电路设计
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 称重模块HX711模块子流程
4.5 LCD1602液晶显示子流程
第5章 实物测试
5.1 整体实物焊接图
5.2计数监测实物测试
第6章 总结展望
参考文献
附录
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!