TEMPERATURE i [TO] IN n/BB n

Command:

TEMPERATURE i [TO] IN n/BB n

Command Syntax:

CONNECT TEMPERATURE i [TO] IN n/BB n

Range:

Temperature reading default is in Celsius. The range depends on the specific temperature sensor being used.

Humidity reading from 0 to 100 %

Describe:

Connects a temperature sensor to the system using either of several connection methods.

Note: The default temperature sensor is included in the Breadboard pack See TI Analog Temperature Sensor Data Sheet

 

If the sensor is based on a thermistor and provides an analog output, it uses a single analog input pin. If the sensor is a DS18B20 digital temperature sensor, it uses a single bi-directional digital GPIO pin.

The analog thermistor temperature sensors is by default, assumed to be a PTC thermistor. If the thermistor is an NTC style, an optional keyword can be added to the connect command sequence to change the style of the thermistor.

The analog thermistor temperature sensor uses a specific set of thermistor constants, different than those used by the THERMISTOR object, to convert the reading into a temperature reading. The constants are used in the Steinhart-Hart model to convert the analog reading to temperature.

Description

Value

C1

8.76741e-8

C2

2.34125e-4

C3

1.129148e-3

R1 – reference resistance

10000.0 ohms

CONNECT TEMPERATURE i [TO] IN 1 – thermistor sensor attached to analog input.

CONNECT TEMPERATURE i [TO] BB 1 – DS18B20 digital attached to digital pin.

CONNECT TEMPERATURE i [TO] I2 C – LM75A attached to I2C port.

CONNECT TEMPERATURE i [TO] BB 5 NTC – connect an analog temperature sensor to analog input and specifies an NTC style thermistor.

CONNECT TEMPERATURE i [TO] BB 6 PTC – connect an analog temperature sensor to analog input and specifies a PTC style thermistor.

Result:

Analog temperature sensor.

Type or
Addressable Component:

Sensor

TI Analog Temperature Sensor Data Sheet