Home/Support/Support Forum/Is there any way to access the accelerometer in the WVA?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Is there any way to access the accelerometer in the WVA?

0 votes
In the datasheet of the WVA an accelerometer is mentioned, as well as it can be used to detect vibration on the vehicle and wake-up for power management.
I would like to access the accelerometer status, so I can install the WVA unit in static units as power generators, to know if the vehicle has been power up and running and at the same time count the time it has been working for.
Is there any way to interact with the accelerometer at all?
asked May 17, 2017 in Linux by Ferreira New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
Best answer
From Python you can access accelerometer:

import digihw
acc = digihw.accelerometer()
print acc.sample()[0], acc.sample()[1], acc.sample()[2]
answered May 23, 2017 by LeonidM Veteran of the Digi Community (4,454 points)
selected Jun 21, 2017 by Ferreira
Thanks for your answer.

Where are you getting those Python libraries from? I only have the following one. And there's no reference of the accelerometer anywhere.

The WVA Device and Configuration Management has a section "Python Configuration" that allows specifying Python application to run.

There is no mention of the Wva in here.

Thanks a lot for your help, I appreciate it.
Got it!

Thanks a lot for your help. Have been trying to get some support from Digi for a while for this matter.
you are welcome! if you are satisfied with the answer please select it by clicking on the (V) button