Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
interfaces:pi-lm75 [2016/01/20 17:20]
darron created
interfaces:pi-lm75 [2022/08/25 22:50] (current)
darron
Line 1: Line 1:
-==== Pi LM75 ====+==== LM75 temperature sensor module ====
 <wrap right> <wrap right>
 {{:interfaces:lm75.jpg?200}} {{:interfaces:lm75.jpg?200}}
 </wrap> </wrap>
  
-Not sure what the official name is, need to look. This an LM75 on a small +This an LM75 on a small board for the Raspberry Pi.
-board for the Raspberry Pi. It doesn't seem to be very accurate.+
  
 +It's not very accurate.
 +
 +===CONFIG===
 +<code>
 +dtparam=i2c_arm=on
 +#dtparam=i2c_vc=on
 +</code>
 +
 +===TOOLS===
 +
 +<code>
 +apt install i2c-tools lm-sensors
 +</code>
 +
 +===TEST===
 +
 +<code>
 +i2cdetect -y 1
 +      1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
 +00:                         -- -- -- -- -- -- -- --
 +10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 +20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 +30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 +40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
 +50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 +60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 +70: -- -- -- -- -- -- -- --
 +</code>
 +
 +===SETUP===
 +
 +<code>
 +echo lm75 0x48 > /sys/class/i2c-adapter/i2c-1/new_device
 +</code>
 +
 +<code>
 +find /sys/class/i2c-adapter/i2c-1/1-0048/hwmon/
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/device
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/temp1_max
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/subsystem
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/update_interval
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/power
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/power/runtime_suspended_time
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/power/autosuspend_delay_ms
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/power/runtime_active_time
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/power/control
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/power/runtime_status
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/temp1_max_hyst
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/uevent
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/temp1_input
 +/sys/class/i2c-adapter/i2c-1/1-0048/hwmon/hwmon2/name
 +</code>
 +
 +===MEASURE===
 +
 +<code>
 +watch -n 1 /usr/bin/sensors
 +</code>
 +
 +<code>
 +Every 1.0s: /usr/bin/sensors
 +
 +lm75-i2c-1-48
 +Adapter: bcm2835 (i2c@7e804000)
 +temp1:        +31.5°C  (high = +80.0°C, hyst = +75.0°C)
 +
 +cpu_thermal-virtual-0
 +Adapter: Virtual device
 +temp1:        +38.9°C
 +
 +rpi_volt-isa-0000
 +Adapter: ISA adapter
 +in0:              N/A
 +</code>