Remarks

Typical wiring

3.3V >-----[ 10k R ]---+-------------< Analog_in | +---[ TM ]--- < GND

Characteristic Locus
Inheritance System.Object ObservableBase<Units.Temperature> SensorBase<Units.Temperature> SamplingSensorBase<Units.Temperature> > Thermistor > SteinhartHartCalculatedThermistor
Implements ISamplingSensor<Units.Temperature> ITemperatureSensor
Inherited Members SamplingSensorBase<Units.Temperature>.StartUpdating(Nullable<TimeSpan>) SamplingSensorBase<Units.Temperature>.StopUpdating() SensorBase<Units.Temperature>.Updated SensorBase<Units.Temperature>.samplingLock SensorBase<Units.Temperature>.SamplingTokenSource SensorBase<Units.Temperature>.Conditions SensorBase<Units.Temperature>.IsSampling SensorBase<Units.Temperature>.UpdateInterval SensorBase<Units.Temperature>.ReadSensor() SensorBase<Units.Temperature>.RaiseEventsAndNotify(IChangeResult<>) SensorBase<Units.Temperature>.Read() ObservableBase<Units.Temperature>.observers ObservableBase<Units.Temperature>.NotifyObservers(IChangeResult<>) Meadow.Foundation.ObservableBase<Units.Temperature>.Subscribe(IObserver<>) Meadow.Foundation.ObservableBase<Units.Temperature>.CreateObserver(Action<>, System.Nullable<Predicate<IChangeResult<UNIT>>>)
Namespace Meadow.Foundation.Sensors.Temperature
Assembly Thermistor.dll

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>>