Next: , Previous: , Up: Introduction   [Contents][Index]


7 Sensors Overview

There are two types of sensors available:

  1. Matlab compatible(ish) sensors for environment and IMU.
  2. Additional lightweight wrappers for some chips in a arduinosensor namespace.

7.1 Matlab Compatible Sensors

7.1.1 Overview

Matlab compatible functions are provided for a number of sensors, using a similar function naming as provided by the Matlab arduino package.

7.1.2 Available Sensors

The functions for each sensor is listed in the function reference, Sensors and provides for:

bme280

BME280 temperature, pressure and humidity sensor

bno005

BNO055 acceleration, angular velocity, orientation and magnetic field sensor

lis3dh

LIS3DH acceleration sensor

lps22hb

LPS22HB temperature and pressure sensor

lsm6dso

LSM6DSO acceleration, angular velocity sensor

mpu6050

MPU-6050 acceleration, angular velocity sensor

SI7021

SI7021 temperature and humidity sensor

7.2 Lightweight Arduino Sensors

7.2.1 Overview

Arduino sensors are a collection of lightweight wrappers around other underlying protocols for providing specific sensor functionality.

For instance a DS1307 chip communicates using I2C protocol and so a DS1307 class exists that provides the conversion/commands in order to communicate to the chip.

Using the class, providing the functionality is very easy:


a = arduino()
rtc = arduinosensor.DS1307(a)
# get and display rtc time as a date string
datestr(rtc.clock)

It is lightweight compared to the addon functionality, as it only requires a wrapper class rather than add on code, however it is limited to then using available addon and core codes rather than creating new ones.

Currently the are only a small number of sensors available, however this will be built upon in future versions.

7.2.2 Available Sensors

The functions for each sensor is listed in the function reference, Arduino Sensors and provides for:

DS1307

DS1307 RTC clock using i2c.

MPC3002

MPC3002 ADC using SPI

SI7021

SI7021 temperature and humidity sensor

GUVAS12SD

GUVAS12SD analog UV-B sensor


Next: Examples, Previous: Addons Overview, Up: Introduction   [Contents][Index]