thermostat3
2.0.0.0
|
Thermostat 3 Click is a general-purpose thermostat Click boardâ„¢ designed to be used with any temperature sensor based on the MAX31855 sensor design.
We provide a library for the Thermostat3 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 Thermostat3 Click driver.
void thermostat3_cfg_setup ( thermostat3_cfg_t *cfg );
THERMOSTAT_RETVAL thermostat3_init ( thermostat3_t *ctx, thermostat3_cfg_t *cfg );
void thermostat3_default_cfg ( thermostat3_t *ctx );
void thermostat3_relay_control ( thermostat3_t *ctx, uint8_t relay_pos );
uint8_t thermostat3_get_fault_data ( temp_vals_t *tmp, uint8_t err );
float thermostat3_get_thermocouple_temperature ( temp_vals_t *tmp, uint8_t temp_in );
This application enables usage of the general purpose Thermostat Click to be used with temperature sensors.
The demo application is composed of two sections :
Initialization driver init
Waits for valid user input and executes functions based on set of valid commands
- Additional Functions : -void _displayFault( uint8_t f_error ) - Display fault
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.