| With the improvement of people’s living standard and the progress of science and technology,The application of attitude detection system appears in all the line of sight more and more frequently.Attitude detection system refers to the information by measuring each sensor, through the data processing of parsing the carrier position, velocity and attitude related parameters, such as information, provide background detection control system, so as to realize the awareness and control of the carrier.The mainstream product configuration of wearable devices, requires attitude detection system.Unmanned aerial vehicle is dependent on the system. In the face of the growing market,we have higher requirements for the development of the attitude control system.In this paper,I designed an attitude detection system based on MEMS motion sensor.It has a microcontroller and a MEMS accelerometer to measure, store, display, analysis of motion.I designed system hardware, embedded software, PC software specifically.The system hardware includes the STM32 microcontroller unit based on ARM kernel, three-axis accelerometer sensor unit MPU6000, power unit and debug unit. Software mainly includes the driver software of STM32 on-chip peripherals,the sensor driver software of MPU6000 and digital filter.I developed PC software with C language, use the virtual instrument platform of NI company Labwindows/CVI as integrated development environment. I combined hardware and software, highlighted the engineering properties of electronics and communications engineering discipline.At the same time,I had been improved on the algorithm research and expansion.In the end,I implemented the system movement curve of the collection, measurement, display and storage. At the same time,I can get the analysis of the measured data. The system has high precision, good user interface, strong practical background and practical value. |