Unlock the power of data with our cutting-edge data acquisition (DAQ) solution empowering real-time monitoring, precise measurements, and data-driven decision-making
A
A
Hardware Overview
How does it work?
DAQ 3 Click is based on the ADAQ4003, a fast and precise system-in-package DAQ signal chain solution from Analog Devices. This μModule combines multiple standard signal processing and conditioning blocks into a single device containing a high bandwidth fully differential ADC driver, a low noise reference buffer, an 18-bit SAR ADC, and selectable gain options. It can convert 2,000,000 samples per second (2 MSPS), achieving a high degree of specified accuracy. The ADAQ4003 also has a valid first conversion after being powered down for long periods to reduce the power consumed in applications where the ADC does not convert constantly. The ADAQ4003 requires a supply voltage of 1.8V to work regularly. Therefore, a small regulating LDO, the ADP151 from Analog Devices, provides a 1.8V out of mikroBUS™ rails. In combination with LT3032, dual low noise positive and negative low drop-out voltage linear regulator, it can generate regulated ±15V positive and negative rails for any additional signal conditioning. This Click board™ also includes the LT6656, a precise voltage regulator that provides low noise and a low drop-out voltage reference of 4.096V. This feature intends to optimally
drive the dynamic input impedance ofthe SAR ADC reference node. DAQ 3 Click communicates with MCU using the 16-bit SPI serial interface compatible with standard SPI, QSPI™, MICROWIRE™, and digital signal processors (DSPs). The ADAQ4003 also has a Turbo mode allowing a slower SPI clock rate, simplifying interfacing. Turbo mode activates by writing to the configuration register and replaces the busy indicator feature when enabled. The ADAQ4003 can achieve the maximum throughput of 2MSPS only with enabled Turbo mode and a minimum clock rate of 75MHz. An additional feature of this Click board™ represents specific settings related to a fully differential ADC driver like Power-Down Reference Buffer and Amplifier labeled as DRE and DAM routed on the RST and AN pins of the mikroBUS™ socket. Also, the ADC driver has one power mode pin labeled as MOD and routed on the PWM pin of the mikroBUS™ socket, which enables the full performance of the driver with this pin set to its high logic state. On the other hand, the ADAQ4003 also uses an INT pin as an interrupt, indicating that the conversion result is available on the SDO line of the SPI interface. This Click board™ also comes with the
jumpers labeled from JP2-JP8 required to achieve optimized performance with selectable gain options of 0.454, 0.909, 1, or 1.9. With jumpers labeled as JP4 and JP7 populated on the board, the default gain of the ADAQ4003 is set to 1. Please consult the attached datasheet for more information about the correct jumper configuration when selecting gain. DAQ 3 Click possesses two SMA connectors labeled IN- and IN+, providing low-noise analog signal sources. These inputs are fed and buffered with the LTC6373, a precision instrumentation amplifier with fully differential outputs that achieve excellent offset voltage, gain error, gain drift, and gain non-linearity. The user can easily program the gain to one of seven available settings through 3 slide switches labeled GAIN SEL. This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VIO 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.
Features overview
Development board
Flip&Click PIC32MZ is a compact development board designed as a complete solution that brings the flexibility of add-on Click boards™ to your favorite microcontroller, making it a perfect starter kit for implementing your ideas. It comes with an onboard 32-bit PIC32MZ microcontroller, the PIC32MZ2048EFH100 from Microchip, four mikroBUS™ sockets for Click board™ connectivity, two USB connectors, LED indicators, buttons, debugger/programmer connectors, and two headers compatible with Arduino-UNO pinout. Thanks to innovative manufacturing technology,
it allows you to build gadgets with unique functionalities and features quickly. Each part of the Flip&Click PIC32MZ development kit contains the components necessary for the most efficient operation of the same board. In addition, there is the possibility of choosing the Flip&Click PIC32MZ programming method, using the chipKIT bootloader (Arduino-style development environment) or our USB HID bootloader using mikroC, mikroBasic, and mikroPascal for PIC32. This kit includes a clean and regulated power supply block through the USB Type-C (USB-C) connector. All communication
methods that mikroBUS™ itself supports are on this board, including the well-established mikroBUS™ socket, user-configurable buttons, and LED indicators. Flip&Click PIC32MZ development kit allows you to create a new application in minutes. Natively supported by Mikroe software tools, it covers many aspects of prototyping thanks to a considerable number of different Click boards™ (over a thousand boards), the number of which is growing every day.
Microcontroller Overview
MCU Card / MCU

Architecture
PIC32
MCU Memory (KB)
2048
Silicon Vendor
Microchip
Pin count
100
RAM (Bytes)
524288
Used MCU Pins
mikroBUS™ mapper
Take a closer look
Click board™ Schematic

Step by step
Project assembly
Software Support
Library Description
This library contains API for DAQ 3 Click driver.
Key functions:
float daq3_get_voltage ( daq3_t *ctx );DAQ 3 get voltage function.int32_t daq3_get_conversion_result ( daq3_t *ctx, daq3_reg_cfg_t cfg_data );DAQ 3 get conversion result function.err_t daq3_generic_read ( daq3_t *ctx, uint8_t reg, uint8_t *data_out );DAQ 3 data reading function.
Open Source
Code example
The complete application code and a ready-to-use project are available through the NECTO Studio Package Manager for direct installation in the NECTO Studio. The application code can also be found on the MIKROE GitHub account.
/*!
* @file main.c
* @brief Daq3 Click example
*
* # Description
* The demo application reads ADC value, calculate and display voltage ( mV ).
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initializes SPI driver and start to write log.
*
* ## Application Task
* This is an example that demonstrates the use of the DAQ 3 Click board.
* In this example, we read ADC value, calculate and display the voltage ( mV ) data.
* The maximum output voltage ( Vout ) is 4V and
* depends on the gain that is set at the Click.
* The formula used to calculate is Vin = Vout / gain.
* Keep in mind that Vout should not exceed 4V.
* For example, if the gain is set to 2 the maximum Vin is 2V ( 2V = 4V / 2 ).
* Results are being sent to the Usart Terminal where you can track their changes.
*
* @author Nenad Filipovic
*
*/
#include "board.h"
#include "log.h"
#include "daq3.h"
static daq3_t daq3;
static log_t logger;
void application_init ( void ) {
log_cfg_t log_cfg; /**< Logger config object. */
daq3_cfg_t daq3_cfg; /**< Click config object. */
/**
* Logger initialization.
* Default baud rate: 115200
* Default log level: LOG_LEVEL_DEBUG
* @note If USB_UART_RX and USB_UART_TX
* are defined as HAL_PIN_NC, you will
* need to define them manually for log to work.
* See @b LOG_MAP_USB_UART macro definition for detailed explanation.
*/
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_printf( &logger, "\r\n" );
log_info( &logger, " Application Init " );
// Click initialization.
daq3_cfg_setup( &daq3_cfg );
DAQ3_MAP_MIKROBUS( daq3_cfg, MIKROBUS_1 );
err_t init_flag = daq3_init( &daq3, &daq3_cfg );
if ( init_flag == SPI_MASTER_ERROR ) {
log_error( &logger, " Application Init Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
daq3_default_cfg ( &daq3 );
log_info( &logger, " Application Task \r\n" );
Delay_ms ( 100 );
log_printf( &logger, "---------------------------\r\n" );
log_printf( &logger, " DAQ 3 Click \r\n" );
log_printf( &logger, "---------------------------\r\n" );
}
void application_task ( void ) {
float voltage = daq3_get_voltage( &daq3 );
log_printf( &logger, " Voltage : %.3f mV \r\n", voltage );
log_printf( &logger, "---------------------------\r\n" );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
}
int main ( void )
{
/* Do not remove this line or clock might not be set correctly. */
#ifdef PREINIT_SUPPORTED
preinit();
#endif
application_init( );
for ( ; ; )
{
application_task( );
}
return 0;
}
// ------------------------------------------------------------------------ END
Additional Support
Resources
Category:ADC
































