Remarks
The default settings for this object are correct for the TMP35.
Characteristic | Locus |
---|---|
Inheritance | System.Object > AnalogTemperature.Calibration |
Namespace | Meadow.Foundation.Sensors.Temperature |
Assembly | Meadow.Foundation.dll |
Syntax
public class Calibration : object
Constructors
Calibration()
Default constructor. Create a new Calibration object with default values for the properties.
Declaration
public Calibration()
Calibration(Double, Double, Double)
Create a new Calibration object using the specified values.
Declaration
public Calibration(double degreesCelciusSampleReading, double millivoltsAtSampleReading, double millivoltsPerDegreeCentigrade)
Parameters
Type | Name | Description |
---|---|---|
System.Double | degreesCelciusSampleReading | Sample reading from the data sheet. |
System.Double | millivoltsAtSampleReading | Millivolts output at the sample reading (from the data sheet). |
System.Double | 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 double MillivoltsAtSampleReading { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
MillivoltsPerDegreeCentigrade
Linear change in the sensor output (in millivolts) per 1 degree C change in temperature.
Declaration
public double MillivoltsPerDegreeCentigrade { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
SampleReading
Sample reading as specified in the product data sheet. Measured in degrees Centigrade.
Declaration
public double SampleReading { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |