摘要
介绍了一种采用STM32F103芯片,并基于嵌入式实时操作系统μC/OS-II的睡枕控制系统的研究设计。针对睡眠时因翻身产生的睡枕高度不适,在用户睡眠时通过三轴加速度传感器MMA7361LC采集数据分析用户睡眠姿态,进而通过芯片控制充放气装置对睡枕内置气囊高度进行实时地调节。该系统相比传统基于单任务机制的控制系统具有更好的实时控制性能和可靠性能。经过调试验证,系统能满足用户睡姿数据的实时采集和枕头高度调节要求。所设计的控制系统可用于数据实时采集和反馈控制等复杂系统中。
A pillow control system based on STM32F103 and embedded real--time operating system μC/OS-II is designed in this pager. Analyzing the users' posture of sleeping by the acceleration sensor MMA7361LC, the system uses the air pumps and release valves to adjust the height of the balloons in the pillow. The system has better real-time control performance and reliability than the traditional system based on a single task. After experiments, the design of the control system can meet the requirement of real-time data acquisition and pillow height adjustment. And it can be applied to complex systems which have real-time data acquisition part and feedback control part.
出处
《科技创新导报》
2016年第19期95-97,99,共4页
Science and Technology Innovation Herald
基金
浙江省大学生科技创新项目暨新苗人才计划基金资助(2016R408037)
浙江工商大学科技创新项目基金资助(CX201511007)