- micropython version: >= v1.19.1
- Assumes use of 10kΩ nominal NTC_MF52 thermistors
from machine import Pin
import time
from NTC_MF52 import NTC_MF52AT_3950k as thermistor_setup
- set the pins you intend to use for ADC Pin(27)
- configure adc depth, default (16 bit == 0-65536 raspberry pico)
- measure and enter supply voltage across your voltage divider (default:3.3)
- enter the max expected amperage (default 2.0)
adc_pin = Pin(27) # <int> 31 & 32 & 34 (GPs 26,27,28) are the only pins for ADC
adc_depth = 65536 # <int> 2^bit_depth of ADC
supply_voltage = 3.263 # <float> supply voltage measured
known_divider_resistance = 9880 # <int> measured resistance in Ohms