- 1、本文档共44页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于单片机的身高体重测量仪
摘 要
本文了一基于单片机设计利用电源电路、单片机最小系统电路、、独立按键电路、电路可以,基本满足设计要求。关键词:STC89C52;超声波;;Height and weight measurement instrument based on MCU
ABSTRACT
This paper introduces a height and weight measurement instrument based on MCU , The design use a MCU as the platform, using metal strain gauges to induction of the weight of the human body. Because the ultrasonic propagation velocity is fixed, so according to the propagation time to calculate the propagation distance, so as to get the height information. Through the serial port MCU can communicate with the PC. The hardware circuit includes power circuit, MCU minimum system circuit, LCD circuit, serial communication circuit, independent key circuit, a buzzer circuit, ultrasonic module circuit, AD converter circuit and a full bridge circuit. The software includes the main program, the system initialization program, AD converter communication program, button detection program, the ultrasonic signal emitting and receiving procedures, LCD driver program.
This design can simultaneously measure the body height and weight, and can also send data to the host computer display or derived form document and save. Height and weight measurement instrument based on MCU of low cost, simple circuit design, clear display, basically meet the design requirements.
Key words:STC89C52Ultrasonic;HX711;Host computer
目 录
1 绪论 1
2 身高体重测量仪总体方案设计 2
2.1 设计方案的选定 2
2.2 身高体重测量仪的工作过程 3
3 身高体重测量仪的硬件电路设计 4
3.1 电源电路 4
3.2 单片机最小系统电路 4
3.3 串口通信电路 5
3.4 超声波模块接口电路 6
3.5 独立按键电路 6
3.6 液晶屏电路 7
3.7 蜂鸣器电路 8
3.8 HX711 AD转换器模块接口电路 8
3.9 全桥电路 9
3.10 总体硬件电路及其工作原理 10
4 软件设计 11
4.1 主函数的编写 11
4.2 系统初始化函数的编写 13
4.3 HX711 AD转换器通信函数的编写 13
4.4 按键检测函数的编写 14
4.5 超声波模块函数的编写 16
4.6 液晶屏驱动函数的编写 17
5 开发平台及调试 19
5.1 硬件的制作 19
5.2 硬件的开发平台 20
5.3 软件的调试 20
5.4 软件的开发平台 21
5.5 上位机软件 22
6 总结 23
6.1 特点 23
6.2 不足与改进 23
参考文献 24
致谢 25
附录1 26
附录2 27
1 绪论
随着科技和社会的发展,电子产品已经渗透到了社会的各个领域,人们对个人的体质状况也越来越重视,在此背景下产生了许多用于测试人体健康标准的电子设备和器材,如血糖仪、电子体温计、身高体重测量仪等就是其中典型的例子。传统的身高体重测
您可能关注的文档
- 第6章水平井井眼清洁计算方法.pdf
- 第8章软件测试课件.ppt
- GSM网络的室内分布设计及优化.doc
- 自行车租售管理系统设计与实现_通信毕业设计.doc
- 作物育种总论试题及答案.doc
- Magnetic Resonance铁磁共振外文翻译课件.pdf
- NEN_EN_1021-1 2006 Furniture Assessment of the ignitability of upholsterered furniture part 1 Ignition source smouldering cigarette外文翻译.pdf
- 多变量时滞系统汽温鲁棒控制策略研究与应用.doc
- 电力变压器手册_谢毓城.PDF
- 基于AT89C52智能吸尘器控制系统设计毕业论文.doc
文档评论(0)