Next: Test Functions, Previous: Matlab Compatability Classes, Up: Function Reference [Contents][Index]
BME280 pressure, temperature and humidity 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)
obj - created object
a = arduino()
sensor = bme280(a)
Read the temperature
obj - the sensor object
C - read temperature in deg C.
timestamp - timestamp when read
a = arduino()
s = bme280(a)
# get temp
temp = s.readTemperature
See also: bme280.
Read the relative humidity
obj - the sensor object
relH - relative humidity as a percentage (0 - 100.0)
timestamp - timestamp when read
Read the pressure
obj - the sensor object
P - pressure reading from sensor.
timestamp - timestamp when read
Read the sensor data
obj - the sensor object
P - pressure reading from sensor.
H - humidity reading from sensor.
C - temperature reading from sensor.
timestamp - timestamp when read
overrun - overrun flag.
readings - table structure with fields for Timestamp, Pressure, Temperature and Humidity.
Read the sensor info
obj - the sensor object
inf - structure containing the sensor information.
Structure fields are:
Chip firmware version
sensor id value
sensor type ’bme280’
Status value read from sensor
Flush sensor data
obj - the sensor object
None
Release the resources of the sensor
obj - the sensor object
None
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
LIS3DH 3 degrees sensor
Constructor to create LIS3DH 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)
obj - created object
a = arduino()
sensor = lis3dh(a)
Read the acceleration rate
obj - the sensor object
readVal - the 3 acceleration values
timestamp - timestamp when read
Read the sensor data
obj - the sensor object
accel - acceleration reading from sensor.
timestamp - timestamp when read
overrun - overrun flag.
readings - table structure with fields for Timestamp, Acceleration.
Read the sensor info
obj - the sensor object
inf - structure containing the sensor information.
Structure fields are:
sensor id value
sensor type ’lis3dh’
sensor status value
Flush sensor data
obj - the sensor object
None
Release the resources of the sensor
obj - the sensor object
None
LPS22HB absolute pressure and temperature sensor
Constructor to create LPS22HB 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 0x5C)
I2C bus - 0 or 1 (default 0)
obj - created object
a = arduino()
sensor = lps22hb(a)
Read the temperature
obj - the sensor object
C - read temperature in deg C.
timestamp - timestamp when read
a = arduino()
s = lps22hb(a)
# get temp
temp = s.readTemperature
See also: lps22hb.
Read the pressure
obj - the sensor object
P - pressure reading from sensor.
timestamp - timestamp when read
Read the sensor data
obj - the sensor object
P - pressure reading from sensor.
C - temperature reading from sensor.
timestamp - timestamp when read
overrun - overrun flag.
readings - table structure with fields for Timestamp, Pressure, Temperature and Humidity.
Read the sensor info
obj - the sensor object
inf - structure containing the sensor information.
Structure fields are:
Chip firmware version
sensor id value
sensor type ’lps22hb’
Status value read from sensor
Flush sensor data
obj - the sensor object
None
Release the resources of the sensor
obj - the sensor object
None
LSM6DSO 6 degrees sensor
Constructor to create LSM6DSO 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)
obj - created object
a = arduino()
sensor = lsm6dso(a)
Read the temperature
obj - the sensor object
C - read temperature in deg C.
timestamp - timestamp when read
a = arduino()
s = lsm6dso(a)
# get temp
temp = s.readTemperature
See also: lsm6dso.
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 sensor data
obj - the sensor object
accel - acceleration reading from sensor.
gyro - angular acceleration reading from sensor.
timestamp - timestamp when read
overrun - overrun flag.
readings - table structure with fields for Timestamp, Acceleration, AngularVelocity.
Read the sensor info
obj - the sensor object
inf - structure containing the sensor information.
Structure fields are:
sensor id value
sensor type ’lsm6dso’
Flush sensor data
obj - the sensor object
None
Release the resources of the sensor
obj - the sensor object
None
MPU-6050 6 degrees sensor
Constructor to create MPU-6050 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)
obj - created object
a = arduino()
sensor = mpu6050(a)
Read the temperature
obj - the sensor object
C - read temperature in deg C.
timestamp - timestamp when read
a = arduino()
s = mpu6050(a)
# get temp
temp = s.readTemperature
See also: mpu6050.
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 sensor data
obj - the sensor object
accel - acceleration reading from sensor.
gyro - angular acceleration reading from sensor.
timestamp - timestamp when read
overrun - overrun flag.
readings - table structure with fields for Timestamp, Acceleration, AngularVelocity.
Read the sensor info
obj - the sensor object
inf - structure containing the sensor information.
Structure fields are:
sensor id value
sensor type ’mpu6050’
Flush sensor data
obj - the sensor object
None
Release the resources of the sensor
obj - the sensor object
None
SI7021 temperature and humidity sensor
Constructor to create si7021 sensor
arObj - the arduino parent object
propertyname, propertyvalue - optional property name, value pairs. Current known properties are: Current properties are:
I2C address of the si7021 (default 0x40)
I2C bus (default 0)
obj - created SI7020 object
a = arduino()
sensor = si7021(a)
Read the temperature
obj - the si7021 object
C - read temperature in deg C.
timestamp - timestamp when read
a = arduino()
s = si7021(a)
# get temp
temp = s.readTemperature()
See also: si7021.
Read the relative humidity
obj - the si7021 object
relH - relative humidity as a percentage (0 - 100.0)
timestamp - timestamp when read
Read the sensor data
obj - the si2071 sensor object
H - humidity reading from sensor.
C - temperature reading from sensor.
timestamp - timestamp when read
overrun - overrun flag.
readings - table structure with fields for Timestamp, Temperature and Humidity.
Read the sensor info
dsObj - the si7021 object
inf - structure containing the sensor information.
Structure fields are:
Chip firmware version
sensor id value
String for detected chip type
Flush sensor data
obj - the sensor object
None
Release the resources of the sensor
obj - the sensor object
None
Next: Test Functions, Previous: Matlab Compatability Classes, Up: Function Reference [Contents][Index]