General Arduino

Serial 6-Axis Accelerometer Data Frame

userHead Octa.Rudin 2023-05-29 20:15:07 1174 Views3 Replies

Sorry, I am a new member in this forum. I have Serial 6-Axis Accelerometer from DFRobot. I try to connect with Arduino UNO and I use example code to read the sensor output (provided by dfrobot in github). Since, the sensor uses RX-TX as the outputs, I curious about the data frame that transmitted from the sensor. Finally, I connect the sensor with USB-TTL to my PC. Then, I get the data frame like this.

55 51 16 00 3D FF FA 07 CF 0A D2

55 52 00 00 00 00 00 00 CF 0A 80 

55 53 1B FC 95 FF FF F9 45 38 C8 

55 54 00 00 00 00 00 00 CF 0A 82

 

This data frame is repeated as long as the sensor connected to my PC. But, there is something that I do not understand. The header number 54 and the 2-bytes before the checksum byte.

xx xx xx xx xx xx xx xx CF 0A xx

xx xx xx xx xx xx xx xx CF 0A xx 

xx xx xx xx xx xx xx xx 45 38 xx 

xx 54 xx xx xx xx xx xx CF 0A xx

 

What are these used for?

2023-05-29 23:57:36

After checking the source code released on the GitHub:

https://github.com/DFRobotdl/DFRobot_WT61PC

 

The second data means the meaning of the current frame data content.

 

 

I noticed that the file is in the name of WT61PC, so I Google this name. Then I found a datasheet written in Chinese.

 

And 0x54 I think DFRobot engineer didn't write out the sample code, it's the Magnetic Filed output.

The data displayed on this sensor is 0, which means that the data format is not open yet.

 

As for the last two byte, due to the different headers, the meaning of these two bytes will also be different. Under 0x54, these two bytes mean the temperature.

 

 

 

 

userHeadPic Yeez_B
Octa.Rudin wrote:

Alright, thanks for replying. You solve my problem.

2023-05-30 21:14:29
1 Replies
2023-05-29 20:30:30

Sorry, I am a new member in this forum. I have Serial 6-Axis Accelerometer from DFRobot. I try to connect with Arduino UNO and I use example code to read the sensor output (provided by dfrobot in github). Since, the sensor uses RX-TX as the outputs, I curious about the data frame that transmitted from the sensor. Finally, I connect the sensor with USB-TTL to my PC. Then, I get the data frame like this.

55 51 16 00 3D FF FA 07 CF 0A D255 52 00 00 00 00 00 00 CF 0A 80 55 53 1B FC 95 FF FF F9 45 38 C8 55 54 00 00 00 00 00 00 CF 0A 82

 

This data frame is repeated as long as the sensor connected to my PC. But, there is something that I do not understand. The header number 54 and the 2-bytes before the checksum byte (please see bold the character below).

55 51 16 00 3D FF FA 07 CF 0A D255 52 00 00 00 00 00 00 CF 0A 80 55 53 1B FC 95 FF FF F9 45 38 C8 55 54 00 00 00 00 00 00 CF 0A 82

 

What are these used for?

userHeadPic Octa.Rudin