Package com.tinkerforge
Interface BrickletAccelerometerV2.ContinuousAcceleration16BitListener
-
- All Superinterfaces:
DeviceListener
,java.util.EventListener
,TinkerforgeListener
- Enclosing class:
- BrickletAccelerometerV2
public static interface BrickletAccelerometerV2.ContinuousAcceleration16BitListener extends DeviceListener
Returns 30 acceleration values with 16 bit resolution. The data rate can be configured withBrickletAccelerometerV2.setConfiguration(int, int)
and this listener can be enabled withBrickletAccelerometerV2.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 (seeBrickletAccelerometerV2.setConfiguration(int, int)
) to calculate the data in gₙ/10000 (same unit that is returned byBrickletAccelerometerV2.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 repeated
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
continuousAcceleration16Bit(int[] acceleration)
-