Flyer 2. All resource types. Latest update. All dates. STTS 2. Recommended for you. Digital temperature sensor and thermal watchdog, delta-sigma analog-to-digital ADC converter, I2C interface. Part number. Your browser is out-of-date. Don't show this message again I got it. Google Chrome Mozilla Firefox. Did you know? Receive updates.
Don't show anymore. Submit E-mail address: Please enter a valid email address. My dashboard Add project. Schematic Download. Author Konstantin Dimitrov 9 projects followers Follow. Respect project. Similar projects you might like. Powered by. Keep me signed in on this device. Or connect with your social account: Login with Arduino. Arduino UNO. For example, when the sensor has read the temperature of an object, it will store the result in a register that you can read from the controller.
Then you send the memory register that you want to read from or write to. For example, as shown in Figure 7, the object temperature is stored in memory register 01 of the TMP To get the temperature, you send:. You can find Arduino-compatible libraries for many devices that use the Wire library, but never expose it directly in their APIs.
Similarly, the readDieTempC sends a write command to read the chip temperature, then a read command to read the appropriate temperature register, then does the math and gives you the result. You can use the library manager to find these libraries or download the TMP library here and the Sensor library here.
Keep the. Open the Arduino IDE version 1. A dialog box will pop up asking you to find the library you want to add. Navigate to the. At the beginning of your code, include the appropriate libraries.
In the setup , initialize the sensor with begin. If the sensor responds, then begin will return true, and if not, it will return false.
This is how to check that the sensor is properly wired to your microcontroller:. The TMP can only read every four seconds.
0コメント