How does it work?
ADC 17 Click as its foundation uses the MAX11645, a high-performance two-channel analog-to-digital converter (ADC) from Analog Devices. The MAX11645 uses successive-approximation conversion technique and fully differential input track/hold (T/H) circuitry to capture and convert an analog signal to a serial 12-bit digital output. It can measure either two single-ended or one differential input(s).
The MAX11645 is capable of sample rates up to 94ksps. By taking advantage of the ADC’s high sample rate, multiple channels can be converted in a short period. This capability allows the device to spend more time in shutdown mode, reducing total power consumption. It also includes a 2.048V internal reference which determines its full-scale analog input range. The fully differential analog inputs are software configurable for unipolar or bipolar applications; input signals from 0 to VREF (unipolar) or ±VREF/2 (bipolar) range can be resolved with accurate 12-bit accuracy.
ADC 17 Click communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting Standard Mode operation with a clock frequency of 100kHz and Fast Mode up to 400kHz.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development.
Specifications
Type
ADC
Applications
Can be used for various applications from energy-harvesting sensors to portable consumer electronics, point-of-load monitoring (voltage, current, and temperature), and more
On-board modules
MAX11645 – high-performance two-channel analog-to-digital converter (ADC) from Analog Devices
Key Features
Two single-ended channels or one fully differential channel, low power consumption, high accuracy, software-configurable unipolar/bipolar operation, internal 2.048V reference, high-speed I2C interface, and more
Interface
I2C
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on ADC 17 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
ADC 17 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Analog Input Voltage | 0 | – | 2.048 | V |
Resolution | – | 12 | – | bits |
Operating Temperature Range | -40 | +25 | +30 | °C |
Software Support
We provide a library for the ADC 17 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.
Library Description
This library contains API for ADC 17 Click driver.
Key functions
-
adc17_set_channel
This function sets the selected channel active by modifying the config byte. -
adc17_get_voltage
This function reads the voltage from the previously selected channel by using I2C serial interface. -
adc17_write_setup_byte
This function writes a setup byte to the ADC chip by using I2C serial interface.
Example Description
This example demonstrates the use of ADC 17 Click board™ by reading the voltage from the two analog input channels.
void application_task ( void )
{
float voltage;
if ( ADC17_OK == adc17_set_channel ( &adc17, ADC17_CHANNEL_0 ) )
{
if ( ADC17_OK == adc17_get_voltage ( &adc17, &voltage ) )
{
log_printf ( &logger, " AIN0 voltage: %.3f V rnn", voltage );
}
}
if ( ADC17_OK == adc17_set_channel ( &adc17, ADC17_CHANNEL_1 ) )
{
if ( ADC17_OK == adc17_get_voltage ( &adc17, &voltage ) )
{
log_printf ( &logger, " AIN1 voltage: %.3f V rnn", voltage );
}
}
Delay_ms ( 500 );
}
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:
- MikroSDK.Board
- MikroSDK.Log
- Click.ADC17
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. UART terminal is available in all MikroElektronika compilers.
mikroSDK
This 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.
For more information about mikroSDK, visit the official page.