The Adafruit TMP117 is a precision temperature sensor that offers high accuracy and resolution. It is capable of measuring temperatures with an accuracy of up to ±0.1°C without the need for calibration during manufacturing. The TMP117 is designed to communicate over the I2C interface, making it suitable for a wide range of applications including environmental monitoring, medical equipment, and industrial control systems.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground pin, connected to the system ground |
2 | SDA | I2C Data line for communication |
3 | SCL | I2C Clock line for communication |
4 | V+ | Supply voltage, between 1.8V and 5.5V |
#include <Wire.h>
#include <Adafruit_TMP117.h>
Adafruit_TMP117 tmp117;
void setup() {
Serial.begin(9600);
// Begin communication with the TMP117 sensor
if (!tmp117.begin()) {
Serial.println("Failed to find TMP117 sensor!");
while (1);
}
}
void loop() {
// Read temperature in Celsius from the sensor
float temperature = tmp117.readTempC();
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" C");
delay(1000); // Wait for 1 second before reading again
}
Wire
library's setClock()
function to adjust the I2C clock speed if necessary.Q: Can the TMP117 be used with a 3.3V system? A: Yes, the TMP117 can operate with a supply voltage as low as 1.8V.
Q: How can I change the I2C address of the TMP117? A: The TMP117 has one fixed I2C address and does not support address changes.
Q: Is calibration required for the TMP117? A: No, the TMP117 is factory-calibrated and does not require additional calibration for accurate readings.
Q: Can the TMP117 be used to measure the temperature of liquids? A: The TMP117 is not designed to be immersed in liquids. For liquid temperature measurements, a waterproof probe is required.
This documentation provides an overview of the Adafruit TMP117 temperature sensor, including its technical specifications, usage instructions, example code for Arduino UNO, and troubleshooting tips. For further information, consult the TMP117 datasheet and Adafruit's product guides.