adc8 2.0.0.0
|
ADC 8 Click is a high precision, low-power, 16-bit analog-to-digital converter (ADC), based around the ADS1115 IC.
We provide a library for the Adc8 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Adc8 Click driver.
- Initialization function.void adc8_cfg_setup ( adc8_cfg_t *cfg );
ADC8_RETVAL adc8_init ( adc8_t *ctx, adc8_cfg_t *cfg );
void adc8_default_cfg ( adc8_t *ctx );
- Get [Package] Single channel voltagevoid adc8_get_diff_channel( adc8_t *ctx, adc8_diff_volt_t *volt );
void adc8_get_single_channel( adc8_t *ctx, adc8_single_volt_t *volt );
uint8_t adc8_get_interrupt_state( adc8_t *ctx );
The demo app shows voltage measurement across all singles and different channels.
The demo application is composed of two sections :
Configuring clicks and log objects. Settings the click in the default configuration.
Reads voltage from each channel one by one and the voltage difference between specified channels.
On the input channel AIN0, AIN1, AIN2 and AIN3 sets maximum voltage GND - 0.3V < VIN > VDD + 0.3V
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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.