thermok 2.0.0.0
|
THERMO K click carries the MCP9600 IC from Microchip. Depending on the type of probe it uses the click can measure temperatures from −200 °C to +1372 °C.
We provide a library for the ThermoK 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for ThermoK Click driver.
- Initialization function.void thermok_cfg_setup ( thermok_cfg_t *cfg );
THERMOK_RETVAL thermok_init ( thermok_t *ctx, thermok_cfg_t *cfg );
- Get statusfloat thermok_get_temperature ( thermok_t *ctx, uint8_t reg, uint8_t temp_format );
void thermok_get_status ( thermok_t *ctx, thermok_alert_t *status );
uint16_t thermok_get_device_info ( thermok_t *ctx );
Demo application shows basic temperature reading using Thermo K click.
The demo application is composed of two sections :
Configuring clicks and log objects. Reads the device ID and also checks the click and MCU communication.
Reads Temperature data(Type K probe) and this data logs to USBUART every 500ms.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.