Bemerkung
Die openHAB-Dokumentation ist nur auf Englisch verfügbar.
Warnung
The openHAB bindings are still in beta, but the development was stopped.
This is the description of the openHAB API bindings for the IMU Bricklet 3.0. General information and technical specifications for the IMU Bricklet 3.0 are summarized in its hardware description.
An installation guide for the openHAB API bindings is part of their general description.
UID:
- tinkerforge:brickletimuv3:[UID]
Required firmware version:
- 2.0.0
Firmware update supported:
- yes
Channels:
- Acceleration - X
- Acceleration - Y
- Acceleration - Z
- Magnetic Field - X
- Magnetic Field - Y
- Magnetic Field - Z
- Angular Velocity - X
- Angular Velocity - Y
- Angular Velocity - Z
- Orientation - Heading
- Orientation - Roll
- Orientation - Pitch
- Quaternion - W
- Quaternion - X
- Quaternion - Y
- Quaternion - Z
- Linear Acceleration - X
- Linear Acceleration - Y
- Linear Acceleration - Z
- Gravity Vector - X
- Gravity Vector - Y
- Gravity Vector - Z
- Temperature
Actions: Parameters:
- Magnetometer Rate – Type: Choice, Default: 20Hz
- This option is auto-controlled in fusion mode.
- Options: 2Hz, 6Hz, 8Hz, 10Hz, 15Hz, 20Hz, 25Hz, 30Hz
- Gyroscope Range – Type: Choice, Default: 2000°/s
- This option is auto-controlled in fusion mode.
- Options: 2000°/s, 1000°/s, 500°/s, 250°/s, 125°/s
- Gyroscope Bandwidth – Type: Choice, Default: 32Hz
- This option is auto-controlled in fusion mode.
- Options: 523Hz, 230Hz, 116Hz, 47Hz, 23Hz, 12Hz, 64Hz, 32Hz
- Accelerometer Range – Type: Choice, Default: ±4G
- This option is user selectable in all fusion modes.
- Options: ±2G, ±4G, ±8G, ±16G
- Accelerometer Bandwidth – Type: Choice, Default: 62.5Hz
- This option is auto-controlled in fusion mode.
- Options: 7.81Hz, 15.63Hz, 31.25Hz, 62.5Hz, 125Hz, 250Hz, 500Hz, 1000Hz
- Sensor Fusion Mode – Type: Choice, Default: On
- If the fusion mode is turned off, the Acceleration, Magnetic Field and Angular Velocity channels return uncalibrated and uncompensated sensor data. All other sensor channels return no data. Since firmware version 2.0.6 you can also use a fusion mode without magnetometer. In this mode the calculated orientation is relative (with magnetometer it is absolute with respect to the earth). However, the calculation can't be influenced by spurious magnetic fields. Since firmware version 2.0.13 you can also use a fusion mode without fast magnetometer calibration. This mode is the same as the normal fusion mode, but the fast magnetometer calibration is turned off. So to find the orientation the first time will likely take longer, but small magnetic influences might not affect the automatic calibration as much. By default sensor fusion is on.
- Options: Off, On, On Without Magnetometer, On Without Fast Magnetometer Calibration
- Acceleration Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the acceleration in milliseconds. A value of 0 disables automatic updates.
- Magnetic Field Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the magnetic field in milliseconds. A value of 0 disables automatic updates.
- Angular Velocity Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the angular velocity in milliseconds. A value of 0 disables automatic updates.
- Orientation Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the orientation as euler angles in milliseconds. A value of 0 disables automatic updates.
- Quaternion Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the orientation as quaternion in milliseconds. A value of 0 disables automatic updates.
- Linear Acceleration Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the linear acceleration in milliseconds. A value of 0 disables automatic updates.
- Gravity Vector Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the gravity vector in milliseconds. A value of 0 disables automatic updates.
- Temperature Update Interval – Type: integer, Default: 1000, Unit: ms, Min: 0, Max: 4294967295
- Specifies the update interval for the temperature in milliseconds. A value of 0 disables automatic updates.
- Status LED Configuration – Type: Choice, Default: Show Status
- The status LED configuration. By default the LED shows communication traffic between Brick and Bricklet, it flickers once for every 10 received data packets. You can also turn the LED permanently on/off or show a heartbeat. If the Bricklet is in bootloader mode, the LED is will show heartbeat by default.
- Options: Off, On, Show Heartbeat, Show Status
Acceleration - X
¶The acceleration from the accelerometer for the x, y and z axis in m/s².
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3AccelerationX
Read only:
- Yes
Unit:
- Meter Per Square Second
Acceleration - Y
¶The acceleration from the accelerometer for the x, y and z axis in m/s².
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3AccelerationY
Read only:
- Yes
Unit:
- Meter Per Square Second
Acceleration - Z
¶The acceleration from the accelerometer for the x, y and z axis in m/s².
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3AccelerationZ
Read only:
- Yes
Unit:
- Meter Per Square Second
Magnetic Field - X
¶The calibrated magnetic field from the magnetometer for the x, y and z axis in Tesla.
Type:
- Number:MagneticFluxDensity
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3MagneticFieldX
Read only:
- Yes
Unit:
- Tesla
Range:
- -0.0025 Tesla to 0.0025 Tesla (Step 6.25e-08 Tesla)
Magnetic Field - Y
¶The calibrated magnetic field from the magnetometer for the x, y and z axis in Tesla.
Type:
- Number:MagneticFluxDensity
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3MagneticFieldY
Read only:
- Yes
Unit:
- Tesla
Range:
- -0.0025 Tesla to 0.0025 Tesla (Step 6.25e-08 Tesla)
Magnetic Field - Z
¶The calibrated magnetic field from the magnetometer for the x, y and z axis in Tesla.
Type:
- Number:MagneticFluxDensity
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3MagneticFieldZ
Read only:
- Yes
Unit:
- Tesla
Range:
- -0.0025 Tesla to 0.0025 Tesla (Step 6.25e-08 Tesla)
Angular Velocity - X
¶The calibrated angular velocity from the gyroscope for the x, y and z axis in °/s.
Type:
- Number:Dimensionless
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3AngularVelocityX
Read only:
- Yes
Angular Velocity - Y
¶The calibrated angular velocity from the gyroscope for the x, y and z axis in °/s.
Type:
- Number:Dimensionless
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3AngularVelocityY
Read only:
- Yes
Angular Velocity - Z
¶The calibrated angular velocity from the gyroscope for the x, y and z axis in °/s.
Type:
- Number:Dimensionless
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3AngularVelocityZ
Read only:
- Yes
Orientation - Heading
¶The current orientation (heading, roll, pitch) of the IMU Brick as independent Euler angles in 1/16 degree. Note that Euler angles always experience a gimbal lock. We recommend that you use quaternions instead, if you need the absolute orientation.
Type:
- Number:Angle
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3OrientationHeading
Read only:
- Yes
Unit:
- Degree Angle
Range:
- -180 Degree Angle to 360 Degree Angle (Step 0.0625 Degree Angle)
Orientation - Roll
¶The current orientation (heading, roll, pitch) of the IMU Brick as independent Euler angles in 1/16 degree. Note that Euler angles always experience a gimbal lock. We recommend that you use quaternions instead, if you need the absolute orientation.
Type:
- Number:Angle
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3OrientationRoll
Read only:
- Yes
Unit:
- Degree Angle
Range:
- -180 Degree Angle to 360 Degree Angle (Step 0.0625 Degree Angle)
Orientation - Pitch
¶The current orientation (heading, roll, pitch) of the IMU Brick as independent Euler angles in 1/16 degree. Note that Euler angles always experience a gimbal lock. We recommend that you use quaternions instead, if you need the absolute orientation.
Type:
- Number:Angle
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3OrientationPitch
Read only:
- Yes
Unit:
- Degree Angle
Range:
- -180 Degree Angle to 360 Degree Angle (Step 0.0625 Degree Angle)
Quaternion - W
¶The current orientation (w, x, y, z) of the IMU Brick as quaternions.
Type:
- Number:Dimensionless
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3QuaternionW
Read only:
- Yes
Range:
- -1 to 1 (Step 6.103888176768602e-05)
Quaternion - X
¶The current orientation (w, x, y, z) of the IMU Brick as quaternions.
Type:
- Number:Dimensionless
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3QuaternionX
Read only:
- Yes
Range:
- -1 to 1 (Step 6.103888176768602e-05)
Quaternion - Y
¶The current orientation (w, x, y, z) of the IMU Brick as quaternions.
Type:
- Number:Dimensionless
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3QuaternionY
Read only:
- Yes
Range:
- -1 to 1 (Step 6.103888176768602e-05)
Quaternion - Z
¶The current orientation (w, x, y, z) of the IMU Brick as quaternions.
Type:
- Number:Dimensionless
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3QuaternionZ
Read only:
- Yes
Range:
- -1 to 1 (Step 6.103888176768602e-05)
Linear Acceleration - X
¶The linear acceleration from the accelerometer for the x, y and z axis in m/s. The linear acceleration is the acceleration in each of the three axis of the IMU Brick with the influences of gravity removed.
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3LinearAccelerationX
Read only:
- Yes
Unit:
- Meter Per Square Second
Linear Acceleration - Y
¶The linear acceleration from the accelerometer for the x, y and z axis in m/s. The linear acceleration is the acceleration in each of the three axis of the IMU Brick with the influences of gravity removed.
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3LinearAccelerationY
Read only:
- Yes
Unit:
- Meter Per Square Second
Linear Acceleration - Z
¶The linear acceleration from the accelerometer for the x, y and z axis in m/s. The linear acceleration is the acceleration in each of the three axis of the IMU Brick with the influences of gravity removed.
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3LinearAccelerationZ
Read only:
- Yes
Unit:
- Meter Per Square Second
Gravity Vector - X
¶The current gravity vector of the IMU Brick for the x, y and z axis in g (1g = 9.80665m/s²). The gravity vector is the acceleration that occurs due to gravity. Influences of additional linear acceleration are removed.
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3GravityVectorX
Read only:
- Yes
Unit:
- Standard Gravity
Range:
- -1.0003416049313476 Standard Gravity to 1.0003416049313476 Standard Gravity (Step 0.0010197162129779282 Standard Gravity)
Gravity Vector - Y
¶The current gravity vector of the IMU Brick for the x, y and z axis in g (1g = 9.80665m/s²). The gravity vector is the acceleration that occurs due to gravity. Influences of additional linear acceleration are removed.
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3GravityVectorY
Read only:
- Yes
Unit:
- Standard Gravity
Range:
- -1.0003416049313476 Standard Gravity to 1.0003416049313476 Standard Gravity (Step 0.0010197162129779282 Standard Gravity)
Gravity Vector - Z
¶The current gravity vector of the IMU Brick for the x, y and z axis in g (1g = 9.80665m/s²). The gravity vector is the acceleration that occurs due to gravity. Influences of additional linear acceleration are removed.
Type:
- Number:Acceleration
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3GravityVectorZ
Read only:
- Yes
Unit:
- Standard Gravity
Range:
- -1.0003416049313476 Standard Gravity to 1.0003416049313476 Standard Gravity (Step 0.0010197162129779282 Standard Gravity)
Temperature
¶The temperature of the IMU Brick. The temperature is given in °C. The temperature is measured in the core of the BNO055 IC, it is not the ambient temperature.
Type:
- Number:Temperature
UID:
- tinkerforge:brickletimuv3:[UID]:BrickletIMUV3Temperature
Read only:
- Yes
Unit:
- Celsius
Actions can be used in rules by creating an action object. All actions return a Map<String, Object>. Returned values can be accessed by name, sometimes the type deduction needs some hints, as shown below:
val actions = getActions("tinkerforge", "tinkerforge:brickletimuv3:[UID]")
val hwVersion = actions.brickletIMUV3GetIdentity().get("hardwareVersion") as short[]
logInfo("Example", "Hardware version: " + hwVersion.get(0) + "." + hwVersion.get(1) + "." + hwVersion.get(2))
brickletIMUV3GetOrientation
()¶Return Map: |
|
---|
Returns the current orientation (heading, roll, pitch) of the IMU Brick as independent Euler angles. Note that Euler angles always experience a gimbal lock. We recommend that you use quaternions instead, if you need the absolute orientation.
If you want to get the orientation periodically, it is recommended
to use the Orientation - Heading
channel and set the period with
the thing configuration.
brickletIMUV3GetLinearAcceleration
()¶Return Map: |
|
---|
Returns the linear acceleration of the IMU Brick for the x, y and z axis. The acceleration is in the range configured with the thing configuration.
The linear acceleration is the acceleration in each of the three axis of the IMU Brick with the influences of gravity removed.
It is also possible to get the gravity vector with the influence of linear
acceleration removed, see Gravity Vector - X
.
If you want to get the linear acceleration periodically, it is recommended
to use the Linear Acceleration - X
channel and set the period with
the thing configuration.
brickletIMUV3GetGravityVector
()¶Return Map: |
|
---|
Returns the current gravity vector of the IMU Brick for the x, y and z axis.
The gravity vector is the acceleration that occurs due to gravity. Influences of additional linear acceleration are removed.
It is also possible to get the linear acceleration with the influence
of gravity removed, see Linear Acceleration - X
.
If you want to get the gravity vector periodically, it is recommended
to use the Gravity Vector - X
channel and set the period with
the thing configuration.
brickletIMUV3GetQuaternion
()¶Return Map: |
|
---|
Returns the current orientation (w, x, y, z) of the IMU Brick as quaternions.
You have to divide the return values by 16383 (14 bit) to get the usual range of -1.0 to +1.0 for quaternions.
If you want to get the quaternions periodically, it is recommended
to use the Quaternion - W
channel and set the period with
the thing configuration.
brickletIMUV3GetAllData
()¶Return Map: |
|
---|
Return all of the available data of the IMU Brick.
Acceleration - X
)Magnetic Field - X
)Angular Velocity - X
)Orientation - Heading
)Quaternion - W
)Linear Acceleration - X
)Gravity Vector - X
)Temperature
)The calibration status consists of four pairs of two bits. Each pair of bits represents the status of the current calibration.
A value of 0 means for "not calibrated" and a value of 3 means "fully calibrated". In your program you should always be able to ignore the calibration status, it is used by the calibration window of the Brick Viewer and it can be ignored after the first calibration. See the documentation in the calibration window for more information regarding the calibration of the IMU Brick.
brickletIMUV3GetAcceleration
()¶Return Map: |
|
---|
Returns the calibrated acceleration from the accelerometer for the x, y and z axis. The acceleration is in the range configured with the thing configuration.
If you want to get the acceleration periodically, it is recommended
to use the Acceleration - X
channel and set the period with
the thing configuration.
brickletIMUV3GetMagneticField
()¶Return Map: |
|
---|
Returns the calibrated magnetic field from the magnetometer for the x, y and z axis.
If you want to get the magnetic field periodically, it is recommended
to use the Magnetic Field - X
channel and set the period with
the thing configuration.
brickletIMUV3GetAngularVelocity
()¶Return Map: |
|
---|
Returns the calibrated angular velocity from the gyroscope for the x, y and z axis. The angular velocity is in the range configured with the thing configuration.
If you want to get the angular velocity periodically, it is recommended
to use the Angular Velocity - X
achannel nd set the period with
the thing configuration.
brickletIMUV3GetTemperature
()¶Return Map: |
|
---|
Returns the temperature of the IMU Brick. The temperature is measured in the core of the BNO055 IC, it is not the ambient temperature
brickletIMUV3GetSensorConfiguration
()¶Return Map: |
|
---|
Returns the sensor configuration as set by the thing configuration.
The following constants are available for this function:
For magnetometerRate:
For gyroscopeRange:
For gyroscopeBandwidth:
For accelerometerRange:
For accelerometerBandwidth:
brickletIMUV3GetSensorFusionMode
()¶Return Map: |
|
---|
Returns the sensor fusion mode as set by the thing configuration.
The following constants are available for this function:
For mode:
brickletIMUV3GetChipTemperature
()¶Return Map: |
|
---|
Returns the temperature as measured inside the microcontroller. The value returned is not the ambient temperature!
The temperature is only proportional to the real temperature and it has bad accuracy. Practically it is only useful as an indicator for temperature changes.
brickletIMUV3GetStatusLEDConfig
()¶Return Map: |
|
---|
Returns the configuration as set by the thing configuration
The following constants are available for this function:
For config:
brickletIMUV3GetSPITFPErrorCount
()¶Return Map: |
|
---|
Returns the error count for the communication between Brick and Bricklet.
The errors are divided into
The errors counts are for errors that occur on the Bricklet side. All Bricks have a similar function that returns the errors on the Brick side.
brickletIMUV3Reset
()¶Calling this function will reset the Bricklet. All configurations will be lost.
After a reset you have to create new device objects, calling functions on the existing ones will result in undefined behavior!
brickletIMUV3GetIdentity
()¶Return Map: |
|
---|
Returns the UID, the UID where the Bricklet is connected to, the position, the hardware and firmware version as well as the device identifier.
The position can be 'a', 'b', 'c', 'd', 'e', 'f', 'g' or 'h' (Bricklet Port). A Bricklet connected to an Isolator Bricklet is always at position 'z'.
The device identifier numbers can be found here.