RTD 2 Click Board
RTD 2 Click Board
The RTD 2 Click Board™ is a compact add-on board used for applications with resistive elements that change resistance over temperature. This board features the ADS1247, 24-bit analogue-to-digital converter with a programmable gain amplifier (PGA) for sensor measurement applications from Texas Instruments. It features a precision delta-sigma (ΔΣ) ADC with a single-cycle settling digital filter, and an internal oscillator, but also provides a low-drift voltage reference, and two matched programmable excitation current sources (IDACs). It also integrates sensor burn-out detection, voltage bias for thermocouples, system monitoring, and digital GPIOs. This Click Board™ is suitable for temperature sensor measurements such as RTDs, thermocouples and thermistors, for pressure measurements, process control, and many more.
The RTD 2 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket
Software Support
We provide a library for the RTD 2 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 covers all the necessary functions to control the RTD 2 Click Board™. A library performs the communication with the 4ADS1247 24-Bit, 2-kSPS, Analog-To-Digital Converters With Programmable Gain Amplifier (PGA) For Sensor Measurement via I2C interface.
Key Functions
void rtd2_hw_reset ( void )
- Hardware reset function.void rtd2_default_config ( void )
- Set default configuration function.float rtd2_get_temperature ( void )
- Get temperature function.
Example Description
The application is composed of three sections :
- System Initialization - Initializes SPI, sets AN, RST and CS pins as output, INT pin as input and start to write log.
- Application Initialization - Initialization driver enables - SPI, hardware reset the device and set default configuration and start the measurement, also write log.
- Application Task - (code snippet) This is an example that demonstrates the use of the RTD 2 Click Board™ . RTD 2 Click board can be used to measure ambient temperature from the PT100 3-wire temperature probe wired to the 4ADS1247 24-Bit, 2-kSPS, Analog-To-Digital Converters With Programmable Gain Amplifier (PGA) For Sensor Measurement on the RTD 2 Click Board™. All data logs write on USB UART changes for every 1 sec.
void application_task ( ) { if ( rtd2_check_new_data_ready( ) == RTD2_NEW_DATA_IS_READY ) { temperature = rtd2_get_temperature( ); FloatToStr( temperature, log_text ); mikrobus_logWrite( " Temperature : ", _LOG_TEXT ); mikrobus_logWrite( log_text, _LOG_TEXT ); mikrobus_logWrite( " C", _LOG_LINE ); mikrobus_logWrite( "--------------------------", _LOG_LINE ); Delay_ms( 1000 ); } else { rtd2_enable_start( RTD2_START_CONVERSION_DISABLE ); Delay_ms( 1000 ); } }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- SPI
- UART
- Conversions
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ 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.
MIKROSDK
Te RTD 2 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
RTD 2 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.