ADC 5 Click Board
ADC 5 Click Board
Key Features:
- The ADC 5 click specified to work with sample rates from 50Ks/s to 200Ks/s. It uses a precise LDO as a reference voltage source and SAR approximation method of sampling
- Based on the ADC121S021 a single channel, 50ks/s to 200Ks/s, a 12-Bit SAR ADC, LP2950 - micropower voltage regulator with low voltage drop, both made by Texas Instruments.
- ADC 5 click can be used to digitally convert input voltage signals up to 3.3V so that the signals can be analyzed by various algorithms on the CPU or a MCU.
- mikroBUS: SPI Interface
The ADC 5 Click Board™ is a device used to sample an analogue voltage on the input and convert it to digital information. In general, ADC (analogue to digital converters) are the most commonly used devices for converting the voltage signals into information, which can be then processed in the digital domain. There are many types of ADC converters commercially available. They can vary in bit depth, sample rate, used approximation algorithm (SAR, delta-sigma..) and so on. Those attributes affect how accurately the sampled voltage will be translated into the digital world.
Software Support
We provide a library for the ADC 5 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
Key functions
adc5_getData
- Returns raw 10-bit data
adc5_getVoltage
- Returns measured voltage in millivolts
Example Description
The demo application is composed of three sections:
- System Initialization - CS GPIO as the output pin, initializes SPI and UART for logging.
- Application Initialization - Initializes ADC 5 driver.
- Application Task (code snippet) - Sequential reading of the voltage. Information about the current-voltage is logged to UART. The operation is repeated every second.
void applicationTask() { ADC_Value = adc5_getVoltage(); WordToStr( ADC_Value, text ); mikrobus_logWrite( "Voltage:", _LOG_TEXT ); mikrobus_logWrite( text, _LOG_TEXT ); mikrobus_logWrite( " mV", _LOG_LINE ); Delay_1sec(); }
The full application code, and ready to use projects can be found on our LibStock page.
Other MikroElektronika libraries used in the example:
- UART
- Conversions
- String
Additional Notes and Information
Depending on the development board you are using, you may need a 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.
mikroSDK
The ADC 5 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.
ADC 5 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.