Next: Examples, Previous: Addons Overview, Up: Introduction [Contents][Index]
There are two types of sensors available:
Matlab compatible functions are provided for a number of sensors, using a similar function naming as provided by the Matlab arduino package.
The functions for each sensor is listed in the function reference, Sensors and provides for:
BME280 temperature, pressure and humidity sensor
BNO055 acceleration, angular velocity, orientation and magnetic field sensor
LIS3DH acceleration sensor
LPS22HB temperature and pressure sensor
LSM6DSO acceleration, angular velocity sensor
MPU-6050 acceleration, angular velocity sensor
SI7021 temperature and humidity sensor
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.
The functions for each sensor is listed in the function reference, Arduino Sensors and provides for:
DS1307 RTC clock using i2c.
MPC3002 ADC using SPI
SI7021 temperature and humidity sensor
GUVAS12SD analog UV-B sensor
Next: Examples, Previous: Addons Overview, Up: Introduction [Contents][Index]