100k NTC 3950 3D Printer Hotend Thermistor & 4.7k Pull-Up Calculator

Model a 100 kΩ B3950 hotend thermistor with a 4.7 kΩ bias resistor at 200 °C–260 °C, check ADC resolution and generate firmware LUTs.

Jump to results

Inputs

Thermistor parameters
Divider & firmware LUT
Match R25 near your primary target temperature.

Results

Estimates
Resistance at 210 °C626.45 Ω
Divider output voltage
0.388 V
Expected 12-bit ADC code
482 / 4,095
Voltage sensitivity
-5.8 mV/°C
Resolution at spot temp
0.139 °C/LSB
Self-heating power
0.24 mW
Firmware LUT entries
65 × int16_t (130 bytes)
NTC resistance & ADC divider voltage curve (−40 °C to 125 °C)
-40°C 0°C 25°C 60°C 100°C 125°C10^7Ω10^3ΩIndigo: log R(T) · Amber: V_adc(T)
Temperature vs. resistance & ADC curve
Temp (°C)NTC ResistanceV_adc (V)12-bit ADC
-40 °C4.02 MΩ3.2964,090
-25 °C1.44 MΩ3.2894,082
-10 °C582.46 kΩ3.2744,062
0 °C336.21 kΩ3.2554,039
15 °C158.37 kΩ3.2053,977
25 °C100 kΩ3.1523,911
40 °C53.01 kΩ3.0313,762
55 °C29.78 kΩ2.853,537
70 °C17.6 kΩ2.6043,232
85 °C10.87 kΩ2.3042,859
100 °C6.98 kΩ1.9722,447
125 °C3.59 kΩ1.4291,773
Generated C99 firmware LUT & Python converter
#include <stdint.h>

/* OhmBitLab NTC LUT: R25=100000 ohm, B=3950 K, R_pullup=4700 ohm, ntc-low, 12-bit ADC */
#define NTC_LUT_SIZE 65U
#define NTC_ADC_SHIFT 6U
#define NTC_ADC_STEP (1U << NTC_ADC_SHIFT)

/* Temperature in tenths of deg C (e.g. 250 = 25.0 C) indexed by (adc >> NTC_ADC_SHIFT) */
static const int16_t ntc_temp_c_x10[NTC_LUT_SIZE] = {
   1500,  2500,  2500,  2500,  2500,  2383,  2254,  2149,
   2059,  1982,  1913,  1852,  1796,  1745,  1698,  1654,
   1613,  1574,  1537,  1503,  1469,  1438,  1407,  1377,
   1349,  1321,  1294,  1268,  1242,  1217,  1193,  1168,
   1144,  1121,  1097,  1074,  1051,  1028,  1005,   982,
    959,   936,   913,   890,   866,   842,   818,   793,
    767,   741,   714,   686,   657,   626,   594,   559,
    523,   482,   438,   388,   330,   259,   166,    21,
   -500
};

int16_t ntc_adc_to_c_x10(uint16_t adc) {
  uint16_t idx = adc >> NTC_ADC_SHIFT;
  if (idx >= NTC_LUT_SIZE - 1U) return ntc_temp_c_x10[NTC_LUT_SIZE - 1U];
  int32_t t0 = ntc_temp_c_x10[idx];
  int32_t t1 = ntc_temp_c_x10[idx + 1U];
  uint16_t frac = adc & (NTC_ADC_STEP - 1U);
  return (int16_t)(t0 + (((t1 - t0) * (int32_t)frac) >> NTC_ADC_SHIFT));
}
import math

R_PULLUP = 4700
ADC_MAX = 4095
TOPOLOGY = "ntc-low"
R25 = 100000
BETA = 3950

def adc_to_temp_c(adc: int) -> float:
    if adc <= 0 or adc >= ADC_MAX:
        raise ValueError("ADC reading saturated at rail")
    ratio = adc / ADC_MAX
    r_ntc = R_PULLUP * ratio / (1.0 - ratio) if TOPOLOGY == "ntc-low" else R_PULLUP * (1.0 - ratio) / ratio
    inv_t = (1.0 / 298.15) + math.log(r_ntc / R25) / BETA
    return (1.0 / inv_t) - 273.15

# Example spot check at 210 C -> ADC ~ 482
print(f"{adc_to_temp_c(482):.2f} C")

Choose a bias resistor near the NTC resistance at your most critical temperature to maximize mV/°C sensitivity and minimize quantization error.

Why 3D printer boards pair a 100 kΩ NTC with a 4.7 kΩ pull-up

A 100 kΩ NTC drops dramatically to roughly 400–600 Ω at 200–220 °C printing temperatures. Using a 100 kΩ pull-up would crush the hotend voltage down near 15 mV with terrible ADC resolution; swapping to a 4.7 kΩ bias resistor shifts maximum voltage sensitivity up into the 150–250 °C nozzle band.

Use the 65-point or 129-point LUT setting to maintain tight temperature resolution across both bed-heating (60 °C) and hotend-extrusion (210–250 °C) regions.

Formulas

  • At 210 °C (483.15 K): R_ntc ≈ 512 Ω
  • V_adc = 3.3 V × R_ntc ÷ (4,700 + R_ntc)
  • Self-heating = V_adc² ÷ R_ntc

Worked example

At 210 °C, a 100 kΩ B3950 thermistor drops to ~512 Ω. With a 4.7 kΩ pull-up on 3.3 V, V_adc is ~0.324 V (12-bit code ~402) with −4.9 mV/°C sensitivity and ~0.16 °C/LSB resolution.

Frequently asked questions

Why does room-temperature resolution look coarse with a 4.7 kΩ pull-up on a 100 kΩ NTC?

At 25 °C the 100 kΩ thermistor dwarfs the 4.7 kΩ resistor, pushing V_adc to 95.5% of Vref. That trade-off is intentional to maximize precision at 200 °C.

Should I use 12-bit or 16-bit oversampling for a hotend thermistor?

Software oversampling (averaging 16–64 12-bit samples) smooths PWM heater switching noise and improves PID derivative stability without changing hardware.

What happens if a hotend thermistor wire opens or shorts?

In NTC-low wiring, an open wire pulls ADC to 4095 (clamped cold) while a dead short pulls ADC to 0 (clamped hot); firmware must trigger thermal-runaway mintemp/maxtemp faults on both rails.