From 9fbd4d377e6447c63b97b70548587687d119b339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 10 Dec 2020 18:17:49 +0100 Subject: [PATCH] application: minor, add cooling alternative --- application.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application.c b/application.c index cae7fda..c5f8dc1 100644 --- a/application.c +++ b/application.c @@ -348,9 +348,14 @@ static void tec_cool(void) // ++ -- ++ off heat 1.5 // ++ ++ -- cool off 1.4 // ++ ++ ++ cool heat 2.1 + // cool only top at max power gpio_clear(GPIO_PORT(MBLK019_CH26_PIN), GPIO_PIN(MBLK019_CH26_PIN)); // sink current, powering the opto-coupler, switching the transistor on gpio_clear(GPIO_PORT(MBLK019_CH14_PIN), GPIO_PIN(MBLK019_CH14_PIN)); // sink current, powering the opto-coupler, switching the transistor on gpio_set(GPIO_PORT(MBLK019_CH35_PIN), GPIO_PIN(MBLK019_CH35_PIN)); // don't sink current, not powering the opto-coupler, switching the transistor off + // cool top and bottom, sharing the load + //gpio_set(GPIO_PORT(MBLK019_CH26_PIN), GPIO_PIN(MBLK019_CH26_PIN)); + //gpio_clear(GPIO_PORT(MBLK019_CH14_PIN), GPIO_PIN(MBLK019_CH14_PIN)); + //gpio_clear(GPIO_PORT(MBLK019_CH35_PIN), GPIO_PIN(MBLK019_CH35_PIN)); } /** read bed top half temperature