BNO055 9 axis orientation sensor
Constructor to create BME280 sensor
arObj - the arduino parent object
propertyname, propertyvalue - optional property name, value pairs. Current known properties are: Current properties are:
I2C address of the sensor (default 0x40)
I2C bus - 0 or 1 (default 0)
Operating mode ’ndof’ or ’amg’
obj - created object
a = arduino()
sensor = bno055(a)
Read the temperature
obj - the sensor object
C - read temperature in deg C.
timestamp - timestamp when read
a = arduino()
s = bno055(a)
# get temp
temp = s.readTemperature
See also: bno055.
Read the acceleration rate
obj - the sensor object
readVal - the 3 acceleration values
timestamp - timestamp when read
Read the angular velocity
obj - the sensor object
readVal - the 3 angular velocity values
timestamp - timestamp when read
Read the magnetic field components
obj - the sensor object
readVal - the 3 magnetic field values
timestamp - timestamp when read
Read the oriientation components
obj - the sensor object
readVal - the 3 orientation values
timestamp - timestamp when read
Read the sensor data
obj - the sensor object
accel - acceleration reading from sensor.
gyro - angular acceleration reading from sensor.
mag - magnetic field reading from sensor.
orientation - orientation reading from sensor.
timestamp - timestamp when read
overrun - overrun flag.
readings - table structure with fields for Timestamp, Acceleration, AngularVelocity, MagneticField, Orientation.
Read the sensor calibration status
obj - the sensor object
status - structure containing the calibration information.
Structure fields are:
System calibrarion
Accelerometer calibration status
Gyroscope calibration status
Magnetometer calibration status
Values for each will be either ’uncalibrated’, ’partial’ or ’full’.
Read the sensor info
obj - the sensor object
inf - structure containing the sensor information.
Structure fields are:
Software firmware version
sensor id value
sensor type ’bno055’
Flush sensor data
obj - the sensor object
None
Release the resources of the sensor
obj - the sensor object
None
Package: arduino