How does it work?
GainAMP Click is based on the LTC6912, a dual programmable gain amplifier with a serial digital interface from Analog Devices. The amplifier features low noise, rail-to-rail input range, rail-to-rail output swing, total system dynamic range of up to 115dB, low power hardware shutdown, and a single or dual power supply of 2.7V up to 10.5V. It consists of 2 matching amplifiers with rail-to-rail outputs, which process rail-to-rail input signals when operated with unity gain. A half-supply reference generated internally at the AGND pin supports single power supply applications.
GainAMP Click is equipped with voltage supply terminals labeled V+ and V-, which can supply the amplifier with voltage. A few solder jumpers are available for you to set the input voltage to a V+ and a V- rail. Over the V+ VCC jumper, you can choose the V+ voltage rail, while over the V- GND, you can choose the V- rail. The VCC and the GND are set by default, which means 3.3V or 5V is chosen over the 3V3 5V jumper. The 3.3V is also set by default. If you want to use an external voltage supply, you need to set jumpers to V+ and V-.
The analog inputs and outputs are available over the INA, OUTA, INB, and OUTB screw terminals. There is an unsoldered jumper header aside from the screw terminals, which can allow you to read the analog values of the A channel output only.
GainAMP Click uses a 3-Wire SPI serial interface to communicate with the host MCU. The RST pin is actually a shutdown pin of the amplifier and serves as a reset pin. The channel A output values can be read over the AN pin if the jumper header is connected.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the 3V3 5V 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.
Specifications
Type
Amplifier
Applications
Can be used for the development of data acquisition systems, dynamic gain changing, automatic ranging circuits, automatic gain control, and more
On-board modules
LTC6912 – dual programmable gain amplifier with a serial digital interface from Analog Devices
Key Features
Rail-to-rail output swing, rail-to-rail input range, 2 channels with independent gain control, three pairs of screw terminals, wire-OR outputs possible, extended gain-bandwidth at high gains, channel-to-channel gain matching of 0.1dB max, single, or dual supply, and more
Interface
Analog,GPIO,SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on GainAMP Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1 | 3V3 5V | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
JP2 | V+ VCC | Right | Positive Voltage Supply Selection V+/VCC: Left position V+, Right position VCC |
JP3 | V- GND | Right | Negative Voltage Supply Selection V-/GND: Left position V-, Right position GND |
GainAMP Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Single or Dual Amplifier Voltage Supply | 2.7 | – | 10.5 | V |
Amplifier Gain | 0 | – | 100 | V/V |
Gain Matching | – | – | 0.1 | dB |
Software Support
We provide a library for the GainAMP Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for GainAMP Click driver.
Key functions
-
gainamp_read_an_pin_value
GainAMP read AN pin value function. -
gainamp_read_an_pin_voltage
GainAMP read AN pin voltage level function. -
gainamp_set_gain
Function for sets gain of the GainAMP Click.
Example Description
This is an example that demonstrates the use of the GainAMP Click board.
void application_task ( void )
{
gainamp_set_gain( &gainamp, GAINAMP_CHANNEL_A_x1 | GAINAMP_CHANNEL_B_x5 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
gainamp_set_gain( &gainamp, GAINAMP_CHANNEL_A_x10 | GAINAMP_CHANNEL_B_x100 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.GainAMP
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. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE 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.
For more information about mikroSDK, visit the official page.