public static interface BrickletAccelerometerV2.ContinuousAcceleration16BitListener extends DeviceListener
BrickletAccelerometerV2.setConfiguration(int, int)
and this listener can be
enabled with BrickletAccelerometerV2.setContinuousAccelerationConfiguration(boolean, boolean, boolean, int)
.
The returned values are raw ADC data. If you want to put this data into
a FFT to determine the occurrences of specific frequencies we recommend
that you use the data as is. It has all of the ADC noise in it. This noise
looks like pure noise at first glance, but it might still have some frequnecy
information in it that can be utilized by the FFT.
Otherwise you have to use the following formulas that depend on the
full scale range (see BrickletAccelerometerV2.setConfiguration(int, int)
) to calculate
the data in gₙ/10000 (same unit that is returned by BrickletAccelerometerV2.getAcceleration()
):
* Full scale 2g: acceleration = value * 625 / 1024
* Full scale 4g: acceleration = value * 1250 / 1024
* Full scale 8g: acceleration = value * 2500 / 1024
The data is formated in the sequence "x, y, z, x, y, z, ..." depending on
the enabled axis. Examples:
* x, y, z enabled: "x, y, z, ..." 10x repeated
* x, z enabled: "x, z, ..." 15x repeated
* y enabled: "y, ..." 30x repeatedModifier and Type | Method and Description |
---|---|
void |
continuousAcceleration16Bit(int[] acceleration) |
Copyright © 2022 Tinkerforge GmbH. All rights reserved.