A headset device which can automatically turn off the phone music player based on MCU is designed in this paper. The device use STC12LE2052 MCU as master controler and three-axis digital gyroscope L3G4200D as position detection sensor. The master controler can judge whether the person falling asleep through detecting the motion state of the user′s head, if the user falls asleep, sends a signal to the phone to stop the music.%设计了一种基于单片机的可以自动关闭手机音乐播放器的耳机装置。该装置以STC12LE2052单片机为主控器,以三轴数字陀螺仪L3G4200D为位置检测传感器,通过检测耳机使用者头部的运动状态,由主控器判断人是否进入睡眠状态,如进入睡眠状态则向手机发送信号,将音乐停止。
展开▼