Thermo J Click Board
Thermo J Click Board
The Thermo J Click Board™ is a temperature measurement Click Board™, which uses a thermocouple type-J probe, connected to a PPC-SMP-J onboard connector. The active part of the Thermo J Click Board™ is the MCP9600 by Microchip - a thermocouple EMF to temperature converter, with 1.5°C of maximum accuracy. The onboard PCC-SMP-J connector ensures the secure connection and accurate readings for the connected thermocouple.
The main advantage of the thermocouples over some other types of temperature measuring devices is the wide range of temperatures that they can measure. With the addition of four programmable ALERT lines routed to the mikroBUS pins, the Thermo J Click Board™ is an ideal solution for the temperature measurements in extreme conditions, hard to reach places, machinery, and similar applications.
Software Support
We provide a library for the Thermo J Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library contains functions which are used to communicate and control the Thermo J Click Board™. Temperature read and write functions require the I2C slave address as an argument - so that more than one device with the different slave addresses can be used on the same I2C bus.
Key Functions
float THERMOJ_getTemperature(uint8_t slaveAddress)
- Returns current temperature in Celsius
void THERMOJ_write_byte(uint8_t slaveAddress, uint8_t registerAddress, uint8_t value)
- Writes single byte to any register
uint8_t THERMOJ_read_byte(uint8_t slaveAddress, uint8_t registerAddress)
- Reads single byte from any register
Example Description
The application is composed of three sections:
- System Initialization - Initializes pins, I2C peripheral, UART used for logging
- Application Initialization -Initializes driver and configures module
- Application Task - (code snippet) Sequential temperature measurement every 500 milliseconds. Measurement readings will be logged to UART
The full application code, and ready to use projects can be found on our LibStock page.
void applicationTask() { temperature = THERMOJ_getTemperature(_THERMOJ_ADDRESS_GND); FloatToStr(temperature,text); LOG_write("Current temperature: ", _LOG_TEXT); LOG_write(text, _LOG_LINE); Delay_ms(500); }
Other MikroElektronika libraries used in the example:
- UART
- Conversions
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART click, USB UART 2 click or RS232 click to connect 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.
Thermo J Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.