Component: Temperature (TMP117) (Environmental): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 85: | Line 85: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Sets up the I2C ready for operation and initialises the sensor with the default settings. Returns 1 if the device is correctly identified. | | colspan="2" | Sets up the I2C ready for operation and initialises the sensor with the default settings. Returns 1 if the device is correctly identified. | ||
| Line 99: | Line 99: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadRegister''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 118: | Line 118: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadTemperature''' | ||
|- | |- | ||
| colspan="2" | Reads the temperature as a floating point value in Celcius. | | colspan="2" | Reads the temperature as a floating point value in Celcius. | ||
| Line 132: | Line 132: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadTemperatureF''' | ||
|- | |- | ||
| colspan="2" | Reads the temperature as a floating point value in Fahrenheit | | colspan="2" | Reads the temperature as a floating point value in Fahrenheit | ||
| Line 146: | Line 146: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetMode''' | ||
|- | |- | ||
| colspan="2" | Sets the mode of the sensor and therefore the amount of power consumed by the sensor. | | colspan="2" | Sets the mode of the sensor and therefore the amount of power consumed by the sensor. | ||
| Line 165: | Line 165: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetTemperatureOffset''' | ||
|- | |- | ||
| colspan="2" | Allows an offset to be written to offset the output temperature | | colspan="2" | Allows an offset to be written to offset the output temperature | ||
| Line 184: | Line 184: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WriteRegister''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 209: | Line 209: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:23, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Environmental |
Temperature (TMP117) component
The TMP117 provides high accuracy temperature monitoring via a digital I2C interface.
Detailed description
No detailed description exists yet for this component
Examples
A basic example which moves an object on the panel. When the object is in range of the sensor the sensor output goes high, otherwise the sensor output goes low.
PhotoTransistorDemo
Macro reference
Initialise
| Initialise | |
| Sets up the I2C ready for operation and initialises the sensor with the default settings. Returns 1 if the device is correctly identified. | |
| Return | |
ReadRegister
| ReadRegister | |
| Address | |
| Return | |
ReadTemperature
| ReadTemperature | |
| Reads the temperature as a floating point value in Celcius. | |
| Return | |
ReadTemperatureF
| ReadTemperatureF | |
| Reads the temperature as a floating point value in Fahrenheit | |
| Return | |
SetMode
| SetMode | |
| Sets the mode of the sensor and therefore the amount of power consumed by the sensor. | |
| Mode | |
| 0=Shutdown, 3=Triggered, 7=Continuous | |
| Return | |
SetTemperatureOffset
| SetTemperatureOffset | |
| Allows an offset to be written to offset the output temperature | |
| Offset | |
| Temperature offset in degrees C | |
| Return | |
WriteRegister
| WriteRegister | |
| Address | |
| Value | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Temperature_TMP117.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Temperature_TMP117.fcfx