TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 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 (136628 times)
  2. FAT32 Library (69833 times)
  3. Network Ethernet Library (55887 times)
  4. USB Device Library (46225 times)
  5. Network WiFi Library (41861 times)
  6. FT800 Library (41080 times)
  7. GSM click (28942 times)
  8. PID Library (26402 times)
  9. mikroSDK (26316 times)
  10. microSD click (25328 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: 1676 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

DIGI POT 5 click

0

DIGI POT 5 click is a digitally controlled quad potentiometer, with the resistance of 10KΩ. It has an 8bit wiper step resolution, which allows the wiper to take 257 different discrete positions (across 256 internal resistors). The digital wiper position can be controlled via the SPI interface.

[Learn More]

Stepper 3 click

0

Stepper 3 click is designed to drive unipolar stepper motors, with a supply voltage applied to the common wire. The current flows through the common wire and the motor coil, via the activated current sink driver, to the ground. This Click board™ uses the ULN2003A, a high voltage and current Darlington transistors array IC, as the sink driver. This IC is an ideal solution for this purpose, as it has seven high power Darlington output stages, activated by TTL/CMOS logic level signals, applied to the control pins. This allows driving unipolar stepper motors with up to 30V and 500mA per coil.

[Learn More]

Brushless 22 click

0

Brushless 22 Click is a compact add-on board suitable for controlling brushless DC (BLDC) motors with any MCU. This board features the MTD6508, a 3-phase full-wave sensorless driver for BLDC motors from Microchip Technology. It features 180° sinusoidal drive, high torque output, and silent drive, rated for an operating voltage range including both mikroBUS™ power rails, and comes with speed control achieved through pulse-width modulation (PWM). Besides, it features several diagnostic circuits and drive-control functions such as motor lock protection, overcurrent limitation, and thermal shutdown protection.

[Learn More]