daq 2.0.0.0
|
DAQ Click is a compact add-on board representing a data acquisition solution. This board features the ADAQ7768-1, a 24-bit precision data acquisition (DAQ) μModule system that encapsulates signal conditioning, conversion, and processing blocks into one SiP from Analog Devices. It supports a fully differential input signal with a maximum voltage range of ±12V with an excellent common-mode rejection ratio (CMRR). The input signal is fully buffered with a low input bias current, enabling the ADAQ7768-1 to interface to sensors with high output impedance directly.
We provide a library for the DAQ 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 DAQ Click driver.
daq_cfg_setup
Config Object Initialization function. daq_init
Initialization function. daq_default_cfg
Click Default Configuration function. daq_set_gain
Set gain range. daq_read_data
Reading adc data. daq_calculate_voltage
Convert data from raw ADC to voltage. This example showcases ability of the device to read ADC
data and calculate voltage for set configuration.
The demo application is composed of two sections :
Initialization of communication modules (SPI, UART) and
additional pins for controling device. Resets device and then configures default configuration and sets read range by setting gain to +-12V. In the end reads vendor and device ID to confirm communication.
Reads ADC data and calculates voltage from it, every 0.3 seconds.
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.