From ca9ebee8cbfcc4ae722404b77b98cc655799d65b Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 27 Feb 2023 16:43:29 -0500 Subject: [PATCH] print raw temp --- cubesatsim/cubesatsim.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index e9f8be5b..162c1080 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -3775,6 +3775,7 @@ void config_gpio() { adc_select_input(4); const float conversion_factor = 3.27f / (1 << 12); uint16_t raw = adc_read(); + Serial.printf("Raw: %d\n",raw); float result = raw * conversion_factor; float temp = 27 - (result - 0.706)/0.001721; Serial.printf(" temp = %f C", temp);