cancel
Showing results for 
Search instead for 
Did you mean: 

AIS3624DQ returning same vale on all three axis

Myada.2
Associate

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.

1 REPLY 1
Federica Bossi
ST Employee

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:


_legacyfs_online_stmicro_images_0693W00000bi1QkQAI.pngIf 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 :)

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.