MDEK1001 display 3-exes acceleration and position at the same time

Hi,
I want to display 3 axis accelerometer display and position x y z in 1 program.
I have defined the code c coordinates position x y z separately.
I have defined the code c separate 3 axis acceleration.
but I can’t run the two programs together into one source.
Can I do 2 codes on 1 source?
In simple.c code, I want to show 3 axis accelerometer display?
Looking forward to hearing from you soon.
thanks.

Hi Thai,

where would you like to display the data?

You can disable to stationary detection feature in PANS to take control of the accelerometer.
Then using DWM library to write an application collecting the position and accelerometer data and forwarding it to the Gateway using User Data or printing e.g. on the console.

Cheers,
TDK

Hi leapslabs,
I want to display data on the serial monitor
How do I disable the stand still detection feature in Pans?
Can you send me code that displays accelerometer using DWM library?
thank you.

Hi Thai,

there have been a couple of posts related with this topic:

In general you can write an user application using DWM library. In the application you need to configure the module to not use the stationary detection and then using the I2C interface you can access the accelerometer. See the DWM1001 Firmware API documentation https://www.decawave.com/dwm1001/api/

Cheers,
TDK

1 Like