基于单片机的身高体重测量仪

河北大学工商学院

本科生毕业论文(设计)

装 订 线

基于单片机的身高体重测量仪 学 部 信息科学与工程学部 学科门类 工学 专 业 电子科学与技术 学 号 2010481027 姓 名 武立鑫 指导教师

2014年5月19日

题目: 河北大学工商学院2014届本科生毕业论文(设计)

基于单片机的身高体重测量仪

摘 要

本文介绍了一个基于单片机的身高体重测量仪,本设计以单片机为平台,利用金属应变片来感应人体的重量,传感器输出模拟量经 AD转换器转换成数字量传入单片机。利用超声波在介质中传播速度固定的原理可由超声波在空气中的传播时间算出传播距离,实现身高的测量。通过串口电路实现了单片机与上位机的通信。本设计硬件电路包括电源电路、单片机最小系统电路、液晶屏电路、串口通信电路、独立按键电路、蜂鸣器电路、超声波模块电路、AD转换器电路和全桥电路。软件部分包括主程序、系统初始化程序、AD转换器通信程序、按键检测程序、超声波信号发射及接收程序、液晶屏驱动程序。

本设计可以同时测量人体的身高和体重,还可以将所测数据自动编号发送到上位机上显示或以文档的形式导出并保存。基于单片机身高体重测量仪制作成本低,电路设计简单,

装 订 线

显示清楚,基本满足设计要求。

关键词:STC89C52;超声波;HX711;上位机

河北大学工商学院2014届本科生毕业论文(设计)

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:STC89C52;Ultrasonic;HX711;Host computer

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4