NTC_THERMISTOR Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Namespaces | Variables
ntc_thermistor_presets.hpp File Reference

Example curves as data. The driver includes this header nowhere: a preset is a convenience, and a part is added by writing a Curve, never by changing the driver. More...

#include <array>
#include <cstdint>
#include "ntc_thermistor_types.hpp"

Go to the source code of this file.

Namespaces

namespace  ntc_thermistor
 The NTC thermistor driver: everything it declares lives here; internals in detail.
 
namespace  ntc_thermistor::presets
 Example curves; see ntc_thermistor_presets.hpp.
 

Variables

constexpr std::array< TablePoint, 39 > ntc_thermistor::presets::kTdkNtcg163jf103ft1sRows
 The 39 nominal rows of the TDK NTCG163JF103FT1S, -40 to +150 degC in 5 degC steps.
 
constexpr Curve ntc_thermistor::presets::kTdkNtcg163jf103ft1s
 TDK NTCG163JF103FT1S: R25 10 kOhm +-1 %, B25/85 3435 K +-1 %, table mode. R25, B and both tolerances are from the datasheet's Electrical Characteristics (Rev.3, p. 1); the rows are not (see the rows above).
 
constexpr Curve ntc_thermistor::presets::kGeneric10kB3950
 The common 10 kOhm / B 3950 class (B25/50), beta mode: typical values of probes and beads, not a datasheet claim. No tolerance is declared; read your part's sheet and override.
 

Detailed Description

Example curves as data. The driver includes this header nowhere: a preset is a convenience, and a part is added by writing a Curve, never by changing the driver.

presets::kTdkNtcg163jf103ft1s is the worked example of the documentation: a 10 kOhm 0603 chip thermistor with a 39-row table. Its rows are a secondary listing of the vendor's nominal column and are unverified: the datasheet prints no table (docs/presets.md, docs/worked-example.md). presets::kGeneric10kB3950 holds the typical values of the common 10 kOhm / 3950 K class: there is no single datasheet for it, so read yours and override. Neither carries a valid window: a Config still declares min_temperature_mc and max_temperature_mc (beta mode requires them).

Config{.curve = presets::kTdkNtcg163jf103ft1s} is a valid table-mode configuration; Config{.curve = presets::kGeneric10kB3950, .min_temperature_mc = ..., .max_temperature_mc = ...} a valid beta-mode one.