temp: Use a 15k resistor instead of 10k
This is required because otherwise we cannot read temperatures below 25°C.
This commit is contained in:
parent
b0956b033d
commit
0663f2147d
BIN
Misc/Temp-Monitor/schematic.png
(Stored with Git LFS)
BIN
Misc/Temp-Monitor/schematic.png
(Stored with Git LFS)
Binary file not shown.
|
@ -36,7 +36,7 @@ while True:
|
|||
if value > 0.9999:
|
||||
value = 20e3
|
||||
else:
|
||||
value = 10e3 * 1 / (1 / value - 1)
|
||||
value = 15e3 * 1 / (1 / value - 1)
|
||||
|
||||
temperature = THERMISTOR_BETA / math.log(value / THERMISTOR_RINF) - 273.15
|
||||
|
||||
|
|
Loading…
Reference in a new issue