gainamp2 2.0.0.0
|
GainAMP 2 click is a 6-channel programmable gain amplifier, used to amplify signals on any of the 6 non-inverting input channels up to 32x, in eight discrete steps.
We provide a library for the GainAmp2 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 GainAmp2 Click driver.
- Initialization function.void gainamp2_cfg_setup ( gainamp2_cfg_t *cfg );
GAINAMP2_RETVAL gainamp2_init ( gainamp2_t *ctx, gainamp2_cfg_t *cfg );
- Return voltage measured from VOUT pin.void gainamp2_set_channel_gain ( gainamp2_t *ctx, uint8_t channel, uint8_t gain );
float gainamp2_get_voltage ( gainamp2_t *ctx );
void gainamp2_write_Command( gainamp2_t *ctx, uint8_t instruction, uint8_t input )
This application is programmable gain amplifier
The demo application is composed of two sections :
Initializes and sets GainAMP 2 click channel 0 to amplify the signal 2 times
Displays the voltage measured from VOUT pin
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.