Micro-electromechanical sensor (MEMS) inertial sensor has developed rapidly in recent years and has been widely used. As an important MEMS, micro-inertial sensor consists of micro-gyroscope, micro-accelerometer, application-specific integrated circuit (ASIC), embedded microprocessor and corresponding software. The output can contain angular velocity, acceleration, attitude and other information. It is small in size, highly integrated and easy to use. It has been widely used in military and civilian fields.
CRSl0 is a high-precision MEMS single-axis gyroscope from Silicon SENSING. It is a digital output that outputs the angular velocity of the sensor's motion process and the ambient temperature of the sensor's operation.
In terms of angle measurement, the traditional method is to use an angle sensor to measure the angle value at the start time, and then compare it to get the angle of rotation. Here, according to the principle of kinematics, an angular velocity and angle measurement system is designed using the CRSl0 gyroscope. The system is equipped with a data output interface and a liquid crystal display interface.
1 CRS10 Function Introduction and Use
CRS10 is a high-precision digital angular rate gyroscope with high integration, wide operating temperature (-40~80℃), high bandwidth and wide frequency range, extremely low angular rate random drift, standard 5 V voltage supply, SPI data output and analog port output 2 output modes to meet the different needs of various applications. The default configuration of CRS10 is 75 Hz bandwidth, ±375(°)/s angular rate measurement access. Users can set its angular rate measurement range and bandwidth according to their needs. For example, the measurement range of ±75(°)/s can be set, and the bandwidth can also be set to 5, 10, 25, 40, 50, 60 and 100 Hz.
CRS10 adopts 23 mmx17 mmx10 mm package. It can be surface mounted on PCB either vertically or with a horizontal bracket. It has small size, high integration and is easy to install. It can be widely used in automotive yaw rate determination, guidance and control, platform stabilization, image stabilization, inertial measurement device, robotics and navigation and other fields.
1.1 Introduction to CRS10 functions
Figure 1(a) and Figure 1(b) are the physical picture and functional block diagram of CRS10 respectively. As shown in Figure 1(b), in CRS10, the MEMS gyroscope first senses the external signal and outputs the signal to the data acquisition dedicated integrated circuit, and the data acquisition circuit outputs the processed signal to the microcontroller. The microcontroller stores the obtained data results in the output register. Through the SPI bus, the external SPI master device
sends control instructions to CRS10 or reads. CRS10 is internally set with a control register, and the register has a default value. By modifying and writing the control register, the control effect of the angular rate measurement range frequency and output bandwidth can be changed.
CRSl0 measures the angular rate parallel to the PCB plane. CLK_N, SPI_IN, SPI_OUT and pins are the SPI interface of the sensor, and pin is the reset pin of the sensor. A-NL_OUT is the analog output port of the angular rate.
The digital output part of CRSl0 also contains the temperature value of its working environment. If the gyroscope performance is poor under uncompensated conditions, it can be modeled and compensated by using this temperature. [page]
1.2.1 Hardware connection of CRS10
The connection between the SPI interface of CRS10 and various microprocessor SPI master control devices is shown in Figure 2. The clock frequency of the SPI bus can reach up to 2.5 MHz, and 1 MHz is recommended.
1.2.2 CRSl0 data reading, writing and data processing
CRSl0 can be read and written through the SPI bus. The control register value can be set according to the design requirements to achieve the control effect, or the default setting of the register can be used. The control instruction consists of 6 bytes, including 1 byte status bit, 4 bytes data bit and 1 byte check bit. When writing control instructions to CRSl0, just send the instruction string to CRSl0 through the SPI bus.
When reading the data output by CRSl0, 6 bytes of data are read from the bus, which are: 1 byte status bit, 2 bytes angular rate data bit, 2 bytes temperature data bit and 1 byte check bit.
The data format of the angular rate value (RATE_OUT) and the temperature value (TEMP_OUT) output are both 16-bit binary complement, which can be solved using formula (1):
In the formula, DATA_VALUE is the output data of the register, VALUE is the actual measured value after conversion, Scale is the smallest unit represented by the minimum value of the register value, and n is the number of data bits of the corresponding register.
Here is a little trick. Since the data is a 16-bit binary complement type, you can use the data type of integer (int) to store the data, which can also omit the data processing process.
2 Angular rate and rotation angle measurement system design
Here we give the principle and design of the inclination measurement system based on LMS8962 and CRSl0.
2.1 Rotation angle measurement principle
CRSl0 measures the angular rate of the PCB plane where it is located. According to the principle of kinematics, the angle is equal to the integral of the angular rate over time. Therefore, the relationship between the rotation angle and the angular rate can be obtained:
where θ is the current angle, θo is the initial rotation angle at the beginning of the movement, ω is the angular rate, to is the initial time, and t is the current time.
In the digital system, its discrete equation is used:
where θ, θo, and ω have the same meaning as in formula (2), and △t represents the time interval of the sampling data.
According to the above principle, the rotation angle measurement system is designed using CRSl0. As long as the sampling frequency is fast enough, the rotation angle platform is stable, and the noise is small, it can be used.
2.2 Hardware circuit design
The inclination measurement system is built using LMS8962 and CRSl0. LMS8962 is a high-performance 32-bit Cortex-M3 core microprocessor. It has abundant on-chip peripherals, such as analog-to-digital conversion (ADC), PWM, CAN and serial bus (SSI), etc. It is powerful and easy to integrate.
The hardware design block diagram of the angular rate and angle measurement system composed of LMS8962 and CRSl0 is shown in Figure 3. LMS8962 communicates with CRSIO through the SSI bus. The collected data is stored in the SD card, and the calculated results are displayed on the LCD module in real time. The data storage of the SD card provides a good data acquisition platform for future data analysis. SSI is a serial communication bus, which is compatible with the SPI bus.
[page]
2.3 Software DesignFigure 4 is the software design process of the system. The program starts to enter the system initialization, then writes control instructions to CRSl0 to set CRSl0 to work in the required mode, then reads the returned data and performs calculations, and finally stores the data in the SD card and displays it on the LCD module.
3 Test results
In order to verify the effectiveness of the system in measuring angular rate and angle, the attitude and heading reference system AHRS500GA-226 sensor was used as a reference for testing. AHRS500GA-226 is a high-precision IMU from Crossbow Technology. The two systems were fixedly installed on the same platform so that the angular rate plane measured by CRSl0 was consistent with the YAW plane (the heading angular rate and heading angle measurement plane) of AHRS. The angular rate and angle data output by the two systems were compared, and the results shown in Figure 5 were obtained.
As can be seen from Figure 5, the angular rate measured by CRSl0 is consistent with the angular rate movement obtained by AHRS, and the result of AHRS is relatively smooth. CRSl0 is noisy and locally steep. When stationary and moving at a small angular rate, the measurement results of the two are basically coincident, with an error of about 0.1 (°)/s. When moving at a large angle and rotating rapidly, the coincidence effect of the two is not good, and the error is large, reaching 7 (°)/s. This is because the data obtained by AHRS is filtered and fused. The trend of angle measurement is consistent, and the local coincidence is relatively good. However, the error of angle measurement is relatively large. The reason lies in the angle calculation method used in this article: 1) The original angular rate data is used, the angular rate is not filtered, the noise is large, and the deviation obtained by integrating and superimposing on the angle is also large; 2) A simple integral is used to calculate the angle, without compensation and smoothing. In summary, the angular rate measurement effect is relatively good, the angle measurement is feasible, but the algorithm needs to be improved.
4 Conclusion
The angular rate and rotation angle measurement system based on LMS8962 ARM microprocessor and CRS10 gyroscope has an average angular rate measurement error of 0.550 (°)/s and a maximum of 7 (°)/s, which is better when measuring small angular rates. The average rotation angle measurement error is 2.5°, and the measurement accuracy needs to be further improved. The main reason for the angle measurement error is that the obtained angular rate is not filtered and the data is not fused. The use and improvement of filtering algorithms and fusion algorithms are the main tasks to be improved in the future. From the measurement results, it is feasible to improve the accuracy of the system as long as the filtering and fusion processing are done well.
Previous article:A New Method for Current Detection in Switching Regulators
Next article:Measuring Special Signals Using Digital Storage Oscilloscope
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- MSP430 Learning Core-Clock
- 【Silicon Labs BG22-EK4108A Bluetooth Development Review】 II. Progress and Obstacles
- [NUCLEO-L552ZE Review] + Serial Printing Help
- Power supply learning sharing
- Notes and lessons about IAR installation
- [Open Source] Bluetooth module BT401 full set of information based on Bluetooth headset chip development ultra-low cost
- Microcontroller Programming Examples
- Please advise, the voltage of the 5V circuit drops after adding load
- Configuration example of ModbusTCP to Profinet gateway connecting to tightening shaft drive
- What books should Linux newbies read?