Remarks

The default settings for this object are correct for the TMP35.

Characteristic Locus
Inheritance System.Object > AnalogTemperature.Calibration
Inherited Members System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace Meadow.Foundation.Sensors.Temperature
Assembly Meadow.Foundation.dll

Syntax

public class Calibration

Constructors

Calibration()

Default constructor. Create a new Calibration object with default values for the properties.

Declaration
public Calibration()

Calibration(Int32, Int32, Int32)

Create a new Calibration object using the specified values.

Declaration
public Calibration(int sampleReading, int millivoltsAtSampleReading, int millivoltsPerDegreeCentigrade)

Parameters

Type Name Description
System.Int32 sampleReading

Sample reading from the data sheet.

System.Int32 millivoltsAtSampleReading

Millivolts output at the sample reading (from the data sheet).

System.Int32 millivoltsPerDegreeCentigrade

Millivolt change per degree centigrade (from the data sheet).

Properties

MillivoltsAtSampleReading

Millivolt reading the sensor will generate when the sensor is at the Samplereading temperature. This value can be obtained from the data sheet.

Declaration
public int MillivoltsAtSampleReading { get; protected set; }

Property Value

Type Description
System.Int32

MillivoltsPerDegreeCentigrade

Linear change in the sensor output (in millivolts) per 1 degree C change in temperature.

Declaration
public int MillivoltsPerDegreeCentigrade { get; protected set; }

Property Value

Type Description
System.Int32

SampleReading

Sample reading as specified in the product data sheet. Measured in degrees Centigrade.

Declaration
public int SampleReading { get; protected set; }

Property Value

Type Description
System.Int32