From 8e8428257e25bfc28406c65d63a7e95ca66a1ad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Lecomte?= Date: Mon, 14 Oct 2019 19:16:26 +0200 Subject: [PATCH] Adjust the reading settings MAX6675 needs 200 ms to convert the analog value to digital. Take that into account, increase the reading period, decrease the number of readings to be averaged. --- user.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/user.h b/user.h index f47666b..87ebd0d 100644 --- a/user.h +++ b/user.h @@ -20,11 +20,12 @@ // Delay time between temperature readings // from the temperature sensor (ms). // (must be larger than LOOP_PERIOD_MS) -#define READING_PERIOD_MS 10 +// MAX6675 takes about 200 ms to convert +#define READING_PERIOD_MS 200 // How many readings are taken to determine a mean temperature. // accounts for the thermocouple noise -#define NUMREADINGS 100 +#define NUMREADINGS 10 // delay between 2 control updates // (must be larger than LOOP_PERIOD_MS)