摘要
文章以STC89C52单片机为核心器件,结合HC-RS04超声波传感器、光敏电阻、定时器、ADC0832模数转换器、LCD1602液晶显示屏,设计了坐姿纠正系统。通过超声波传感器对用户与被测物体的距离进行实时监测,通过光敏电阻对所处环境的光照强度进行实时监测,并通过单片机处理收集到的数据。当测得的距离或者光照强度任意一者超出正常范围时,单片机通过驱动蜂鸣器报警,提醒用户注意纠正。同时,通过LCD1602显示屏实时显示测得的数据。详细研究了基于单片机的坐姿纠正系统设计的硬件电路和软件设计方案,运用Keil软件进行代码调试,运用Proteus进行软件仿真。功能测试证明,所设计的坐姿纠正系统能够在多种情况下正常工作。
This paper uses STC89C52 single-chip microcomputer as the core device,combined with HC-RS04 ultrasonic sensor,photoresistor,timer,ADC0832 analog-to-digital converter,and LCD1602 LCD screen,to design a sitting posture correction system.Real-time monitoring of the distance between the user and the measured object is carried out through ultrasonic sensors,and the illumination intensity of the environment is monitored in real time through photoresistors.The collected data is processed by the single-chip microcomputer.When either the measured distance or illumination intensity exceeds the normal range,the single-chip microcomputer drives a buzzer alarm to remind the user to pay attention to correction.Meanwhile,the measured data is displayed in real time on the LCD1602 display screen.A detailed study is conducted on the hardware circuit and software design scheme of a sitting posture correction system based on a single-chip microcomputer.Keil software is used for code debugging,and Proteus is used for software simulation.Through functional testing,it has been proven that the designed sitting posture correction system can work normally in various situations.
作者
李娜
王威
颜萌
王丽
郑茹
LI Na;WANG Wei;YAN Meng;WANG Li;ZHENG Ru(Department of Electronic Engineering,Xihang University,Xi'an 710077,China)
出处
《现代信息科技》
2025年第3期20-27,共8页
Modern Information Technology
基金
国家自然科学基金项目(61901350)
陕西省自然科学基础研究计划项目(2024JC-YBQN-0644)
2023年度西安航空学院校级课程思政示范课建设项目(23ZLGC5009)
2022年度西安航空学院校级本科一流课程建设项目(22ZLGC5012)
2023年西安航空学院校级知识图谱建设项目(23ZLGC3004)。
关键词
单片机
超声波传感器
姿态监测
功能测试
Single-chip Microcomputer
ultrasonic sensor
sitting posture monitoring
functional testing