adc15 2.0.0.0
|
ADC 15 Click is a compact add-on board that contains a high-performance data converter. This board features the ADS131M02, a two-channel, simultaneously sampling, 24-bit, delta-sigma (ΔΣ), analog-to-digital converter from Texas Instruments. The ADC inputs can be independently configured via serial peripheral interface depending on the sensor input. A low noise, programmable gain amplifier (PGA) provides gains ranging from 1 to 128 to amplify low-level signals.
We provide a library for the ADC15 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 from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for ADC15 Click driver.
adc15_cfg_setup
Config Object Initialization function. adc15_init
Initialization function. adc15_default_cfg
Click Default Configuration function. adc15_read_voltage
Get voltage value. adc15_set_gain
Set gain for channel. adc15_set_word_len
Set word len. This example showcases ability of the click board to
read adc data from 2 different channels. It's also configuratable to read data in different output rate, resolutions( word/data len ), and gain.
The demo application is composed of two sections :
Initialization of communication modules (SPI, UART) and additional
pins for control of the device. Sets default configuration, that sets gain of 1 for both channels(+/-1.2V range) and word/data length of 24bit. In the end reads device ID.
Waits for data ready signal and reads voltage value of both channels,
and logs read status and channel voltage level.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
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.