cancel
Showing results for 
Search instead for 
Did you mean: 

How to read accelerometer and gyrometer readings from ST1vAFE6ax sensor with STM32WB series?

barathi_0206
Associate II

Hello, I'm currently working on ST1VAFE6ax sensor to read 6 axis data from accelerometer and gyrometer via SPI protocol. But sensor is not behaving as expected. it returns the value as 0. Is there any initial booting process for the sensor or is anything I have to do for the sensor initialization? Pins assigned in my controller (STM32WB series) for SPI are behaving as expected. I have verified that pins with DSO. But the Slave out pin is not returning anything. How to solve it? I'm also having the user manual for the sensor. But I cannot resolve this issue. Please suggest me any solution if you have. Thanks in advance !

3 REPLIES 3
Federica Bossi
ST Employee

Hi @barathi_0206 ,

Did you try to follow our official drivers on Github?

Let me know if this helps :)

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Thank you @Federica Bossi ! let me check.

 

RianSu80
Associate

They are switched off by default. Set an interval into the 0x10, 0x11 registers - e.g. write 0x08 to set the interval to 480hz. Then you will get actual readouts for gyro and acc.

I was initially stuck at that point too - the manual is your friend...