TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136734 times)
  2. FAT32 Library (69950 times)
  3. Network Ethernet Library (55941 times)
  4. USB Device Library (46265 times)
  5. Network WiFi Library (41886 times)
  6. FT800 Library (41170 times)
  7. GSM click (28983 times)
  8. PID Library (26413 times)
  9. mikroSDK (26360 times)
  10. microSD click (25375 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Temp Probe click

Rating:

5

Author: MIKROE

Last Updated: 2020-12-29

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Measurement

Downloaded: 1692 times

Not followed.

License: MIT license  

Temp Probe Click is a compact add-on board used as thermocouple temperature monitoring system. This board features the LTC2986, a high accuracy digital temperature measurement system used to directly digitize thermocouples with 0.1°C accuracy and 0.001°C resolution from Analog Devices.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Temp Probe click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Temp Probe click" changes.

Do you want to report abuse regarding "Temp Probe click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Temp Probe Click

Temp Probe Click

Native view of the Temp Probe Click board.

View full image
Temp Probe Click

Temp Probe Click

Front and back view of the Temp Probe Click board.

View full image

Library Description

Library performs a control of the Temp Probe Click board™ and performs a configuration on which way temperature be measured. Library offers a choice to measure temperature on the desired channel/channels, depending on the cold junction channel. The device can use a lot of different sensors for measurement, such as thermocouples, diodes, sense resistors, thermistors... For more details check documentation.

Key functions:

  • uint8_t tempprobe_write_byte( uint16_t reg_addr, uint8_t data_in ) - .
  • uint8_t tempprobe_read_word( uint16_t reg_addr, uint32_t *data_out ) - .
  • uint8_t tempprobe_write_eeprom( void ) - Function writes the current settings from the chip registers to the EEPROM memory and checks is error occurred.
  • uint8_t tempprobe_read_temp( uint16_t sel_channel, float *data_out ) - Function reads temperature data from the desired channel.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes SPI interface and performs a device configuration for properly working. Configures the desired channels and offers a choice to choose in which format temperature be measured. Temperature format can be celsius or fahrenheit.
  • Application Task - Allows start of the conversion for the selected (masked) channels and when conversion cycle is done, reads temperature from channel 10, on which the thermocouple type K sensor is connected. The cold junction channel is channel 9, on which sensor measures the ambient temperature.
void application_task ( )
{
    uint8_t check_state;
    
    tempprobe_write_byte( TEMPPROBE_REG_COMM_STATUS, TEMPPROBE_START_CONV  );
    check_state = tempprobe_check_busy( );
    
    while ( check_state != TEMPPROBE_NO_BUSY_STATE )
    {
        check_state = tempprobe_check_busy( );
    }

    mikrobus_logWrite( ">> PN-Junction: ", _LOG_TEXT );
    tempprobe_read_temp( TEMPPROBE_REG_PN_JUNCTION_CONV_RES , &temperature_k );
    FloatToStr( temperature_k, demo_text );
    mikrobus_logWrite( demo_text, _LOG_LINE );

    mikrobus_logWrite(">> Thermo K: ", _LOG_TEXT );
    tempprobe_read_temp( TEMPPROBE_REG_THERMO_K_CONV_RES, &temperature_pn );
    FloatToStr( temperature_pn, demo_text );
    mikrobus_logWrite( demo_text, _LOG_LINE ); 

    Delay_ms( 1500 );
}

Other mikroE Libraries used in the example:

  • Conversions
  • SPI
  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

MRAM 4 click

0

MRAM 4 Click is a compact add-on board representing a magneto-resistive random-access memory solution. This board features the EM064LX, an industrial STT-MRAM persistent memory from Everspin Technologies. It is a 64Mb MRAM IC RAM and can achieve up to 200MHz as a single and double data rate (STR/DTR). The MRAM technology is analog to Flash technology with SRAM-compatible read/write timings (Persistent SRAM, P-SRAM), where data is always non-volatile. It also has a hardware write-protection feature and performs read and write operations with data retention for ten years and unlimited read, write, and erase operations for the supported life of the chip.

[Learn More]

Magnetic 6 click

0

Magneto 6 Click features low power three dimensional Hall effect sensor, TLI493D-A2B6, designed for magnetic sensing applications. It measures the magnetic field in X, Y, and Z direction. Each X, Y and Z Hall probe is connected sequentially to a multiplexer, which is then connected to an Analog to Digital Converter (ADC).

[Learn More]

I2C MUX 4 click

5

I2C MUX 4 Click is a compact add-on board that contains a dual bidirectional translating switch dedicated for applications with I2C slave address conflicts. This board features the TCA9543APWR, a low voltage 2-channel I2C bus switch with interrupt logic from Texas Instruments.

[Learn More]