-
Notifications
You must be signed in to change notification settings - Fork 13
BMP 280
Description: This Kernel driver supports Bosch Sensortec BMP 180 and BMP 280 pressure and temperature sensor which is configured over I2C.
Link: https://github.com/beagleboard/linux/blob/4.4/drivers/iio/pressure/bmp280.c
Usage: In order to use the BMP 280/180 sensors, you can either instantiate it by specifieng the device address in i2c-2. Otherwise, you can load the device tree for BMP280 to the slots as mentioned here.
echo BBB_BMP280 > /sys/devices/platform/bone_capemgr/slots
To check if the overlay has successfully loaded and the BMP280 device configured you can check the kernel log with dmesg
Following are the sysfs entries which will be available in /sys/bus/iio/iio:device0/
on successful device tree load:
in_temp outputs the temperature value in Kelvin
in_preassure outupts the preassure value in pascal