[GD32E231 Work Submission] Quartz Accelerometer Acquisition
[Copy link]
Introduction
The quartz accelerometer is a high-precision acceleration sensor with a higher range and stability than MEM. It can be combined with various gyroscope systems to achieve high-precision attitude and instantaneous velocity acquisition. It can be used in the construction of large and medium-sized motion devices with high attitude control requirements.
This design mainly realizes the control and acquisition of quartz accelerometer, using GD32E231 as the main control chip. GD32E231 chip controls the quartz pendulum in real time and obtains acceleration data, and connects to the host computer through usart0 for data detection and recording.
2. System Block Diagram
Figure 1 Block diagram
The GPIO of E231 is used to control the feedback of the accelerometer, and the feedback current is output to the ADC of E231 through the sampling resistor. The acceleration value is collected through oversampling, filtering and numerical calculation. The value is sent to the host computer through UART without verifying the effect of the data for recording and analysis.
3. Physical objects and data diagrams
Figure 2 Circuit connection
After applying a disturbance to the accelerometer, obvious changes can be seen
Figure 3 Data collected by finger disturbance
By switching the accelerometer in reverse, you can see the trend of the value.
Four conclusions
1. Oversampling can significantly improve data stability. Since the sampling rate of E231 is relatively high, it is recommended to oversample and filter according to the bandwidth of its own acquisition.
2. There is no UART level conversion on the board, so the TTL IO can be connected to another circuit and converted into RS422/485 signal for output.
3. Multi-channel acquisition will significantly reduce the bandwidth and produce some crosstalk, which should be given special consideration in subsequent multi-channel acquisition design.
|