I suspect all it does is spit out the movement via the Serial port, which is probably trivial to write.

I had a quick look at the bin file, retrieved from the STM32, but I could not see any useful strings of text, that would indicate it was parsing for commands via the Serial input

I will hook it up to a USB to Serial converter and see what it spits out via Serial

I presume as this module is designed to be used by drones, that it's output data is documented somewhere, but I did not come across a definitive reference when I did some cursory research into this variant of the sensor

Communication: serial TTL to USB interface output computer. Mobile sensor, can directly read the data, can also take any microcontroller to read data.

Module power supply: 3-5V

After connecting, open the serial assistant, set the serial transmission rate of 115200, can be
To obtain information on the X and Y travel distances.
The format of a frame is as follows:
Byte1 X's upper 8 bits
Byte2 the lower 8 bits of X
Byte3 Y's upper 8 bits
Byte4 Y's lower 8 bits
Byte5 end bit 0x53
Byte6 end bit 0x53

Where X and Y are signed 16-bit numbers.

Unfortunately mine is not outputting anything.

There is code in the STM32, perhaps its broken

I think I'll need to try putting some code in the STM32 and do it myself, as its not exactly complicated what its doing what its supposed to be doing

Edit 2

I found the same information on CJMCU's website (in Chinese), there is a PDF but its too big to upload, and it doesnt give any additional informtion

Your hypotheses are all right. This sensor in your configuration output the movements in X and Y direction, quad-copters uses these information to stay stationary when near the ground. But I remember that is a work done by the sensor, so the STM32 maybe use a filter.
You can get the small 30x30 image too, it is what I do with my sensor. I believe that you can find the points to connect directly to the sensor.

Your hypotheses are all right. This sensor in your configuration output the movements in X and Y direction, quad-copters uses these information to stay stationary when near the ground. But I remember that is a work done by the sensor, so the STM32 maybe use a filter.
You can get the small 30x30 image too, it is what I do with my sensor. I believe that you can find the points to connect directly to the sensor.

I'll look at the PCB and see which pins are connected to the sensor

As its SPI, I suspect it will use the normal pins for SPI1, and the only additional pins are the GPIO for the CS and NRST etc

So it should be easy to figure out and then find some code to communicate with the sensor

As its SPI, I suspect it will use the normal pins for SPI1, and the only additional pins are the GPIO for the CS and NRST etc
So it should be easy to figure out and then find some code to communicate with the sensor

I used the blue pill (in SPI slave mode) once for sniffing the SPI traffic between a CPU and nRF905 chip on a remote controller. This way I could find out the used radio address which is normally hardware software coded in the master CPU.