OFF
MIKROE-922
30 g
Status:
ADC Click is a compact add-on board that converts an analog voltage into a digital representation. This board features the MCP3204, a 4-channel 12-bit A/D converter with SPI serial interface from Microchip. The MCP3204 is specified for a maximum conversion of up to 100ksps as a throughput rate. Its SAR architecture is based on a successive approximation of 12-bit ADC with onboard track-and-hold circuitry. It features four single-ended inputs where the output serial data is straight binary and SPI-compatible. This Click board™ makes the perfect solution for the development of the most demanding applications, from general-purpose remote data acquisition and instrumentation to industrial applications.
ADC Click 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.
This product is no longer in stock
Availability date:
ADC Click is based on the MCP3204, a 4-channel 12-bit A/D converter with SPI serial interface from Microchip. The MCP3204 contains an input channel selection multiplexer (CH0, CH1, CH2, CH3) which for reference can use the VCC (3.3V or 5V) or a 4.096V of the MCP1541 voltage reference from Microchip. The voltage reference determines the analog voltage range and can be selected via REFERENCE onboard jumper. To connect the analog voltages to the ADC Click, utilize the four labeled terminals CH0-3 along with two GND terminals for referencing the ground. Each analog input pin goes through the MCP6284, a 5MHz rail-to-rail OpAmp from Microchip.
The ADC Click uses a standard 4-Wire SPI serial interface to communicate with the host MCU, supporting both 0 and 3 of the SPI modes and operating at clock rates of up to 2MHz. Communication with the ADC Click is initiated by bringing the CS line LOW.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the PWR SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
Type
ADC
Applications
Can be used for the development of the most demanding applications, from general-purpose remote data acquisition and instrumentation to industrial applications
On-board modules
MCP3204 - A/D converter with SPI serial interface from Microchip
MCP6284 - 5MHz rail-to-rail OpAmp from Microchip
MCP1541 - voltage reference from Microchip
Key Features
Analog to digital conversion from four single-ended channels, operational amplifier on all four channels, 12-bit resolution, up to 100ksps, three voltage values reference selection, low power consumption, and more
Interface
SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V
This table shows how the pinout on ADC Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
J1 | REFERENCE | Left | Reference Voltage Selection VCC/4.096V : Left position VCC, Right position 4.096V |
J2 | PWR SEL | Left | Power/Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Analog Supply Voltage | 2.7 | - | 5.5 | V |
Sampling Rate | 50 | - | 100 | ksps |
ADC Resolution | - | - | 12 | bit |
We provide a library for the ADC Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for ADC Click driver.
Key functions
Get Single-Ended Channel function.
Get Pseudo-Differential Pair function.
Example Description
This example demonstrates the use of ADC Click board. The all channels can be configured as single-ended or pseudo-differential pair.
void application_task( void )
{
adc_get_single_ended_ch( &adc, ADC_CH0_OR_CH01 );
adc_get_single_ended_ch( &adc, ADC_CH1_OR_CH10 );
adc_get_single_ended_ch( &adc, ADC_CH2_OR_CH23 );
adc_get_single_ended_ch( &adc, ADC_CH3_OR_CH32 );
adc_get_differential_ch( &adc, ADC_CH0_OR_CH01 );
log_printf( &logger, "* CH0 = %u mVrn", adc.ch0 );
log_printf( &logger, "* CH1 = %u mVrn", adc.ch1 );
log_printf( &logger, "* CH2 = %u mVrn", adc.ch2 );
log_printf( &logger, "* CH3 = %u mVrn", adc.ch3 );
log_printf( &logger, "* CH0 - CH1 = %d mVrn", adc.ch01 );
log_printf( &logger, "-----------------------------rn" );
Delay_ms( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), 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. UART terminal is available in all MIKROE compilers.
This Click board™ is supported with mikroSDK - MIKROE 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.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.