我有两个SparkFun热电偶突围-MAX31855K,我试图通过树莓派读取,但我都能读取两个温度,但是现在我遇到了一个错误:提高MAX31855Error(“热电偶接地短路“)下面是我的代码:
from max31855 import MAX31855, MAX31855Error
cs_pin = 8
cs_pin2 = 7
clock_pin = 11
data_pin = 9
units = "f"
sensor_bottom = MAX31855(cs_pin, clock_pin, data_pin, units)
sensor_top = MAX31855(cs_pin2, clock_pin, data_pin, units)
tempf = sensor_bottom.get()
tempf2 = sensor_top.get()