templog7 2.1.0.0
|
Temp-Log 7 Click is a compact add-on board used to measure and record the temperature of an environment over time. This board features the TMP1826, a high-accuracy, 1-Wire® compatible digital output temperature sensor from Texas Instruments with integrated 2-kbit EEPROM. It supports a wide operating temperature range from –20°C to +85°C with its high accuracy of ±0.1°C (typical)/±0.3°C (maximum) and comes with a factory-programmed 64-bit unique identification number for addressing and NIST traceability. Besides a programmable alarm function that outputs an interrupt signal to the MCU when a specific temperature event occurs, it also has three digital I/O pins configurable for general purposes or to identify the device's position on a shared bus.
We provide a library for the Temp-Log 7 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Temp-Log 7 Click driver.
templog7_cfg_setup
Config Object Initialization function. templog7_init
Initialization function. templog7_default_cfg
Click Default Configuration function. templog7_read_temperature
This function starts the one shot measurement and reads the temperature value in Celsius. templog7_write_eeprom
This function writes a desired number of data bytes to the EEPROM memory. templog7_read_eeprom
This function reads a desired number of data bytes from the EEPROM memory. This example demonstrates the use of Temp-Log 7 click board by reading the temperature in Celsius,
then writing the specified data to the memory and reading it back.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which
clears the EEPROM memory, sets the temperature resolution to 16-bit, enables alert interrupt and sets the temperature alerts to 5 degrees Celsius for low and 40 degrees for high level. Other three IO pins are configured as INPUT.
Reads the temperature in degrees Celsius and the gpio state. After that writes
a desired number of bytes to the memory and then verifies if it is written correctly by reading from the same memory location and displaying the memory content. All data is displayed on the USB UART where you can track changes.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.