论文部分内容阅读
介绍了一种采用STM32F103芯片,并基于嵌入式实时操作系统μC/OS-II的睡枕控制系统的研究设计。针对睡眠时因翻身产生的睡枕高度不适,在用户睡眠时通过三轴加速度传感器MMA7361LC采集数据分析用户睡眠姿态,进而通过芯片控制充放气装置对睡枕内置气囊高度进行实时地调节。该系统相比传统基于单任务机制的控制系统具有更好的实时控制性能和可靠性能。经过调试验证,系统能满足用户睡姿数据的实时采集和枕头高度调节要求。所设计的控制系统可用于数据实时采集和反馈控制等复杂系统中。
This paper introduces the research design of a sleeping pillow control system based on STM32F103 chip and based on embedded real-time operating system μC / OS-II. For sleep height caused by turning pillow height discomfort, the user sleep through the three-axis acceleration sensor MMA7361LC collected data analysis of user sleep attitude, and then through the chip control inflatable device sleeping pillow built-in airbag height real-time adjustment. The system has better real-time control performance and reliability than traditional single-task-based control system. After debugging validation, the system can meet the user’s real-time collection of sleeping position data and pillow height adjustment requirements. The designed control system can be used in complex systems such as real-time data acquisition and feedback control.