ADXL345 detailed introduction data This module manual. This compressed file can use the angle sensor to measure the acceleration and angle values of x, y, and z, and integrate 1602 to display them. For ease of use, we have separated the modules separately. If you have the intention to use them, you can extract angle.c separately and introduce it into your own new project. Instructions on the use of the internal functions of the angle.c file. First of all, for the convenience of use and reference, we have highly integrated the internal functions. After introducing angle.c, you can directly call the dis_data() function in your main program to complete the measurement data of the ADXL345 chip. Measurement data description: char as_Xjiasu[6],as_Yjiasu[6],as_Zjiasu[6]; //Define the ASCII code value of the 3-axis static gravity acceleration value unsigned char as_Xangel[4],as_Yangel[4],as_Zangel[4]; //Define the ASCII code value of the 3-axis angle value in the as_Xjiasu[x] array. For your use, we directly convert the acceleration value into an ASCII code value that can be directly displayed on 1602. Similarly, as_Xangel describes the real data storage. float jiasu_xyz[3]; angel_xyz[3]; //Store the static gravity acceleration of the X, Y, and Z axes. The angle value stores the true value of the acceleration and angle (data that has not been converted into ASCII code) - this data can be used for other purposes and directly participate in MCU internal calculations.
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore