2023-04-04 11:03 PM
Hi,
I configured the AIS3624DQTR sensor by using standard driver given by ST on GitHub, I am able to set all parameter correctly but when I am trying to read X,Y and Z axis. It is returning same value on all axis and value is not changing by moving sensor.
I configured the sensor by using poling example code:
whoamI = 0;
ais3624dq_device_id_get(&dev_ctx, &whoamI);
if ( whoamI != AIS3624DQ_ID )
while (1); /*manage here device not found */
/* Enable Block Data Update */
ais3624dq_block_data_update_set(&dev_ctx, PROPERTY_ENABLE);
/* Set full scale */
ais3624dq_full_scale_set(&dev_ctx, AIS3624DQ_6g);
/* Configure filtering chain */
ais3624dq_hp_path_set(&dev_ctx, AIS3624DQ_HP_DISABLE);
//ais3624dq_hp_path_set(&dev_ctx, AIS3624DQ_HP_ON_OUT);
//ais3624dq_hp_reset_get(&dev_ctx);
/* Set Output Data Rate */
ais3624dq_data_rate_set(&dev_ctx, AIS3624DQ_ODR_5Hz);
am I missing any step in configuration? please let me know.
I checked all above value is configured correctly.
2023-04-13 02:44 AM - edited 2023-11-20 08:55 AM
Hello @Myada.2 ,
Welcome on ST Community!
Are you in SPI Mode? If so, are you implementing the MS bit correctly during the reading protocol?
If you have doubts, please refer to datasheet page 20:
If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster :)