[BPI-M3] BPI Temperature(LM75) Module and how to use

OS: BPI-M3 Ubuntu15.10 (Kernel3.4) Version: 1.0 HDMI

Step 1: Version V1.0 doesn’t include LM75 model. The kernel should be recompiled. Open CONFIG_SENSORS_LM75 https://github.com/BPI-SINOVOIP/BPI-M3-bsp/commit/a5f6f3d0547a19b4274ef2bb78aa4e6a7b102571 Version V2.0 is going to support the model by default.

Step 2:

sudo su sudo apt-get install i2c-tools lm-sensors

Step 3:Check the LM75 device to see if it’s on track.(address 0x48) (I2c port number for M3: 2 )

i2cdetect -y 2

. 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: – -- – -- – -- – -- – -- – -- – 10: – -- – -- – -- – -- – -- – -- – -- – -- 20: – -- – -- – -- – -- – -- – -- – -- – -- 30: – -- – -- – -- – -- – -- – -- – -- – -- 40: – -- – -- – -- – -- 48 – -- – -- – -- – 50: – -- – -- – -- – -- – -- – -- – -- – -- 60: – -- – -- – -- – -- – -- – -- – -- – -- 70: – -- – -- – -- – --

Step 4: Input lm75 address

echo lm75 0x48 > /sys/class/i2c-adapter/i2c-2/new_device

Step 5:Check Temperature

cat /sys/class/i2c-adapter/i2c-2/0-0048/temp1_input

Step 6:In order to get the temperature continuously then the watch command can be used with sensors

watch sensors


Video demo:

more about BPI Temperature(LM75) module:

https://bananapi.gitbooks.io/bpi-accessories/content/lm75_temperature_sensor_module.html