From 6d936335877bb8833c68c87a142d44dd095c296d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Tue, 8 Dec 2020 23:14:57 +0100 Subject: [PATCH] application: recalibrate lid temperature --- application.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application.c b/application.c index fb122ca..3edb46b 100644 --- a/application.c +++ b/application.c @@ -207,8 +207,8 @@ static float lid_temperature(void) // convert to °C // calibrated using a DS18B20 (accuracy = +- 0.5°C), with 12-bit precision - // 2.7013 V = 20.500 °C, 0.35925 V = 84.062 °C - return -27.125 * voltages[1] + 93.7727; + // 2.3491 V = 21.500 C, 0.1337 V = 104.9 °C + return -37.6456 * voltages[1] + 109.933; } /** set the power delivered to the lid heater