Remarks
Typical wiring
3.3V >-----[ 10k R ]---+-------------< Analog_in | +---[ TM ]--- < GND
Syntax
public abstract class Thermistor : SamplingSensorBase<Units.Temperature>, ISamplingSensor<Units.Temperature>, ITemperatureSensor
Constructors
Thermistor(IAnalogInputPort)
Creates a new Thermistor object using the provided analog input
Declaration
protected Thermistor(IAnalogInputPort analogInput)
Parameters
Type | Name | Description |
---|---|---|
IAnalogInputPort | analogInput | The analog input reading the thermistor voltage divider output |
Properties
AnalogInput
The analog input eing used to determine output voltage of the voltage divider circuit
Declaration
protected IAnalogInputPort AnalogInput { get; }
Property Value
Type | Description |
---|---|
IAnalogInputPort |
NominalResistance
The nominal resistance of the thermistor (e.g. 10kOhm for a 10k thermistor)
Declaration
public abstract Resistance NominalResistance { get; }
Property Value
Type | Description |
---|---|
Resistance |
NominalTemperature
The nominal temperature for the nominal resistance, typically 25C.
Declaration
public virtual Units.Temperature NominalTemperature { get; }
Property Value
Type | Description |
---|---|
Units.Temperature |
Temperature
The temperature from the last reading.
Declaration
public Units.Temperature? Temperature { get; protected set; }
Property Value
Type | Description |
---|---|
System.Nullable<Units.Temperature> |
Events
TemperatureUpdated
Raised when the temperature is updated
Declaration
public event EventHandler<IChangeResult<Units.Temperature>> TemperatureUpdated
Event Type
Type | Description |
---|---|
EventHandler<IChangeResult<Units.Temperature>> |