Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
interfaces:pi-lm75 [2016/01/21 20:09] – darron | interfaces:pi-lm75 [2022/08/25 22:50] (current) – darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Pi LM75 temperature sensor module ==== | + | ==== LM75 temperature sensor module ==== |
<wrap right> | <wrap right> | ||
{{: | {{: | ||
Line 8: | Line 8: | ||
It's not very accurate. | It's not very accurate. | ||
+ | ===CONFIG=== | ||
+ | < | ||
+ | dtparam=i2c_arm=on | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | ===TOOLS=== | ||
+ | |||
+ | < | ||
+ | apt install i2c-tools lm-sensors | ||
+ | </ | ||
+ | |||
+ | ===TEST=== | ||
+ | |||
+ | < | ||
+ | i2cdetect -y 1 | ||
+ | | ||
+ | 00: -- -- -- -- -- -- -- -- | ||
+ | 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
+ | 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
+ | 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
+ | 40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- | ||
+ | 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
+ | 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
+ | 70: -- -- -- -- -- -- -- -- | ||
+ | </ | ||
+ | |||
+ | ===SETUP=== | ||
+ | |||
+ | < | ||
+ | echo lm75 0x48 > / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | find / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ===MEASURE=== | ||
+ | |||
+ | < | ||
+ | watch -n 1 / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Every 1.0s: / | ||
+ | |||
+ | lm75-i2c-1-48 | ||
+ | Adapter: bcm2835 (i2c@7e804000) | ||
+ | temp1: | ||
+ | |||
+ | cpu_thermal-virtual-0 | ||
+ | Adapter: Virtual device | ||
+ | temp1: | ||
+ | |||
+ | rpi_volt-isa-0000 | ||
+ | Adapter: ISA adapter | ||
+ | in0: N/A | ||
+ | </ |