| 设计 任务书 文档 开题 答辩 说明书 格式 模板 外文 翻译 范文 资料 作品 文献 课程 实习 指导 调研 下载 网络教育 计算机 网站 网页 小程序 商城 购物 订餐 电影 安卓 Android Html Html5 SSM SSH Python 爬虫 大数据 管理系统 图书 校园网 考试 选题 网络安全 推荐系统 机械 模具 夹具 自动化 数控 车床 汽车 故障 诊断 电机 建模 机械手 去壳机 千斤顶 变速器 减速器 图纸 电气 变电站 电子 Stm32 单片机 物联网 监控 密码锁 Plc 组态 控制 智能 Matlab 土木 建筑 结构 框架 教学楼 住宅楼 造价 施工 办公楼 给水 排水 桥梁 刚构桥 水利 重力坝 水库 采矿 环境 化工 固废 工厂 视觉传达 室内设计 产品设计 电子商务 物流 盈利 案例 分析 评估 报告 营销 报销 会计 | |||||
|
|||||
|
|||||
|
|||||
摘要
本文介绍了一个基于单片机的称重系统设计,本设计以单片机为平台,利用金属应变片来感应人体的重量,传感器输出模拟量经AD转换器转换成数字量传入单片机。利用超声波在介质中传播速度固定的原理可由超声波在空气中的传播时间算出传播距离,实现身高的测量。通过串口电路实现了单片机与上位机的通信。本设计硬件电路包括电源电路、单片机最小系统电路、液晶屏电路、串口通信电路、独立按键电路、蜂鸣器电路、超声波模块电路、AD转换器电路和全桥电路。软件部分包括主程序、系统初始化程序、AD转换器通信程序、按键检测程序、超声波信号发射及接收程序、液晶屏驱动程序。
整个设计系统由Atmel公司生产STC89C51单片机进行控制;软件实现功能开机检测,主要是开机后自动逐个扫描LED数码管,以防止某段数码管损坏造成视觉误差;出于人性化考虑我们还可以增加语音电路,实现自动语音播报重量。本设计一个能完成精确计量且LED数码显示的电子称,并且带有身高体重比例正常与否的语音提示。
关键词:STC89C51;称重仪;LED数码管;语音播报
ABSTRACT
This paper introduces the design of a weighing system based on a single chip microcomputer. The design is based on a single chip microcomputer and uses metal strain gauges to induce the weight of the human body. The analog output of the sensor is converted into digital input into a single chip microcomputer by AD converter. The propagation distance can be calculated from the propagation time of ultrasonic wave in the air by using the principle of the constant propagation speed of ultrasonic wave in the medium. The hardware circuit of this design includes power supply circuit, MCU minimum system circuit, LCD screen circuit, serial communication circuit, independent keystroke circuit, etc. Buzzer circuit D converter circuit and full bridge circuit. The software includes main program, system initialization program, AD converter communication program, key detection program, ultrasonic signal transmitting and receiving program, LCD screen driver program.
The whole design system is controlled bySTC89C51single-chip computer produced by Atmel Company, and the function of software realization is to start the detection, mainly to scan the LED digital tube one by one automatically after the boot, to prevent the damage of a section of digital tube from causing visual error. Due to the consideration of humanization, we can also increase the speech circuit and realize the weight of the automatic voice broadcast. This design can accomplish the accurate measurement and the LED digital display, and has the voice prompt with the normal ratio of height and weight.
Keywords:STC89C51; weighing instrument; LED digital tube; voice broadcast
目 录
1绪论1
1.1选题背景及意义1
1.2研究现状1
1.2.1国内外称重仪现状1
1.2.2称重仪的发展趋势2
1.3研究内容3
2基于单片机的称重系统总体方案设计4
2.1设计方案的选定4
2.2基于单片机的称重系统的工作过程5
3基于单片机的称重系统的硬件电路设计6
3.1电源电路6
3.2单片机最小系统电路6
3.3串口通信电路7
3.4超声波模块接口电路8
3.5独立按键电路8
3.6液晶屏电路9
3.7语音播放模块10
3.7.1语音播放芯片ISD2512010
3.7.2ISD25120的直接寻址模式10
3.7.3ISD25120的直接寻址任意分段方式11
3.7.4ISD25120的硬件电路11
3.8HX711 AD转换器模块接口电路12
3.9全桥电路12
3.10总体硬件电路及其工作原理14
4基于单片机的称重系统软件程序设计15
4.1主函数的编写15
4.2系统初始化函数的编写17
4.3HX711 AD转换器通信函数的编写18
4.4按键检测函数的编写19
4.5超声波模块函数的编写21
4.6液晶屏驱动函数的编写22
4.7ISD25120语音播报子程序25
5开发平台及调试26
5.1硬件的制作26
5.2硬件的开发平台27
5.3软件的调试27
5.4软件的开发平台28
5.5上位机软件29
6总结30
6.1特点30
6.2不足与改进30
参考文献32
致 谢33
附录:仿真电路图34
附录:程序代码35
毕业66资料站 biye66.com ©2015-2026 版权所有 | 微信:15573586651 QQ:3903700237
本站毕业设计和毕业论文资料均属原创者所有,仅供学习交流之用,请勿转载并做其他非法用途.如有侵犯您的版权有损您的利益,请联系我们会立即改正或删除有关内容!