From b55c8dd180014f54d2c7cb5fad01a7334c12a8af Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Fri, 29 May 2026 21:10:13 +0200 Subject: [PATCH 1/2] lower tolerance in ntc pullup --- hw/usbc_soldering_iron.kicad_sch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usbc_soldering_iron.kicad_sch b/hw/usbc_soldering_iron.kicad_sch index 810e209..964110c 100644 --- a/hw/usbc_soldering_iron.kicad_sch +++ b/hw/usbc_soldering_iron.kicad_sch @@ -22158,7 +22158,7 @@ (justify left) ) ) - (property "Value" "10k" + (property "Value" "10k 0.1%" (at 87.376 212.09 0) (show_name no) (do_not_autoplace no) From de372c220554cf67c4cf99918d53bacb006b168e Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Fri, 29 May 2026 21:10:41 +0200 Subject: [PATCH 2/2] note in LUT comment --- fw/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fw/main.c b/fw/main.c index f755ca5..4cbe34b 100644 --- a/fw/main.c +++ b/fw/main.c @@ -15,7 +15,8 @@ // constants // LUT for converting NTC readings to degrees celsius -// Nominal: 1kOhm, Beta: 3380, Step: 64 +// Nominal: 10kOhm, Beta: 3380, Step: 64 +// TODO: Add a fixed offset to account for toollerances const uint8_t ntc_step_size = 64; const int16_t ntc_lut[] = { 1316, 197, 155, 133, 119, 108, 100, 93, 87, 82, 77, 73, 69, 66, 63, 60,