Skip to main content

Class SteinhartHartCalculatedThermistor

Thermistor temperature sensor object using the Steinhart-Hart equation to determine temperature

Assembly: Thermistor.dll
View Source
public class SteinhartHartCalculatedThermistor : Thermistor, IObservable<IChangeResult<Temperature>>, ITemperatureSensor, ISamplingSensor<Temperature>, ISensor<Temperature>, ISensor, ISamplingSensor

Inheritance: System.Object -> Meadow.Foundation.ObservableBase<UNIT> -> Meadow.Foundation.SamplingSensorBase<UNIT> -> Meadow.Foundation.Sensors.Temperature.Thermistor

Implements:
System.IObservable<Meadow.IChangeResult<Meadow.Units.Temperature>>, Meadow.Peripherals.Sensors.ITemperatureSensor, Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Temperature>, Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Temperature>, Meadow.Peripherals.Sensors.ISensor, Meadow.Peripherals.Sensors.ISamplingSensor

Properties

BetaCoefficient

Gets the beta coefficient of the thermistor used in the Steinhart-Hart equation

View Source
public double BetaCoefficient { get; }

SeriesResistance

Gets the resistance of the fixed-value series resistor in your voltage divider circuit

View Source
public Resistance SeriesResistance { get; }

NominalResistance

Gets the nominal resistance of the thermistor (e.g. 10kOhm for a 10k thermistor)

View Source
public override Resistance NominalResistance { get; }

Fields

DefaultBetaCoefficient

The common default beta coefficient (3950) for many thermistors

View Source
public const double DefaultBetaCoefficient = 3950

Methods

ReadSensor()

Update the Temperature property

View Source
protected override Task<Temperature> ReadSensor()
Returns

System.Threading.Tasks.Task<Meadow.Units.Temperature>

Implements

  • System.IObservable<Meadow.IChangeResult<Meadow.Units.Temperature>>
  • Meadow.Peripherals.Sensors.ITemperatureSensor
  • Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Temperature>
  • Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Temperature>
  • Meadow.Peripherals.Sensors.ISensor
  • Meadow.Peripherals.Sensors.ISamplingSensor