OFF
MIKROE-2377
21 g
Status:
Ammeter Click is a compact add-on board with circuitry for measuring AC and DC electric current. This board features the AD8616, a precision 20MHz CMOS rail-to-rail input/output operational amplifier from Analog Devices. The Ammeter Click can measure the exact amperage between 1mA and 1A for DC current. It’s also possible to measure the AC current by deriving the value from peak-to-peak measurements. The maximum safe voltage range for the current measurement is 48V. This Click board™ makes the perfect solution for the development of applications based on electric current measuring and monitoring, tools, and more.
Ammeter Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
This product is no longer in stock
Availability date:
Ammeter Click is based on the AD8616, a precision 20MHz CMOS rail-to-rail input/output operational amplifier from Analog Devices. It is a dual single-supply amplifier featuring very low offset voltage, wide signal bandwidth, and low input voltage and current noise. The AD8616 uses a patented trimming technique that achieves superior precision without laser trimming. Two onboard screw terminals labeled probe+ and probe-are bringing in the current, which then passes through a shunt resistor. A voltage proportional to the strength of the current is generated across the resistor, which is then processed in the operational amplifier. The voltage amplified through the AD8616 can be directly monitored through the AN pin of the mikroBUS™ socket.
One of the main features of the Ammeter Click is the MCP3201, a 12-bit A/D converter with the SPI serial interface from Microchip. This A/D converter has a sampling rate of up to 100ksps and has an onboard sample and hold circuitry. It provides a single pseudo-differential input with maximum differential nonlinearity at ±1LSB. The AD8616 fed the amplified current to this A/D convertor, which gets the 2.048V reference voltage from the MAX6106, a micropower low-dropout high-output-current voltage reference from Analog Devices. The MCP3201 outputs digital value through the mikroBUS™ socket SPI interface to the host MCU.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the PWR 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.
NOTE: It's crucial to avoid powering the board from the identical source that you intend to measure.
Type
Current sensor,Measurements
Applications
Can be used for the development of applications based on electric current measuring and monitoring, tools, and more.
On-board modules
AD8616 - rail-to-Rrail input/output operational amplifier from Analog Devices
MCP3201 - 12-bit A/D converter with the SPI serial interface from Microchip
MAX6106 - micropower low-dropout voltage reference from Analog Devices
Key Features
Maximum safe voltage 48V, exact amperage between 1mA and 1A for DC, AC current by deriving the value from peak-to-peak measurements, 12-bit ADC, direct analog readings, and more
Interface
Analog,SPI
ClickID
No
Compatibility
mikroBUS
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V
This table shows how the pinout on Ammeter Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | PWR SEL | Left | Power Voltage Level Selection 3V3/5V: Left position 3V3, Right position 5V |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Maximum Safe Voltage | - | - | 48 | V |
Amperage Range for DC | 1 | - | 1000 | mA |
Amperage Range for AC | 1 | - | 700 | mA |
We provide a library for the Ammeter 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 Ammeter Click driver.
Key functions
Example Description
Demo app measures and displays current by using Ammeter click board.
void application_task ( void )
{
amperage = ammeter_amperage( &ammeter );
log_printf( &logger, " Current: %.2f mA rn", amperage );
log_printf( &logger, "-----------------------rn" );
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:
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.
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.
Type | Current sensor,Measurements |
Applications | Can be used for the development of applications based on electric current measuring and monitoring, tools, and more. |
On-board modules | AD8616 - rail-to-Rrail input/output operational amplifier from Analog Devices MCP3201 - 12-bit A/D converter with the SPI serial interface from Microchip MAX6106 - micropower low-dropout voltage reference from Analog Devices |
Key Features | Maximum safe voltage 48V, exact amperage between 1mA and 1A for DC, AC current by deriving the value from peak-to-peak measurements, 12-bit ADC, direct analog readings, and more |
Interface | Analog,SPI |
ClickID | No |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
Ammeter click is a mikroBUS™ add-on board with circuitry for measuring electric current (both AC and DC).
Two onboard screw terminals (probe+ and probe-) are bringing in the current, which then passes through a shunt resistor. A voltage proportional to the strength of the current is generated accross the resistor. This voltage passes through an AD8615 operational amplifier before it's fed into a 12-bit ADC which then outputs a digital value through the mikroBUS™ SPI interface. Ammeter click carries MCP3201, a 12-bit ADC. In case you need more precise measurements with a higher sample rate, you can use Ammeter click with a DSP microcontroller. In such case you would take the analog voltage directly through the click's AN pin. In both cases, the firmware processes the digital value to determine the exact amperage between 1mA and 1A for DC current. It's also possible to measure AC current by deriving the value from peak to peak measurements. At the same time, the voltage can be directly monitored through the AN pin. The maximum safe voltage range for the current measured is 48V. The board uses either a 3.3V or 5V power supply (it's important not to power the board from the same power source you wish to measure).
This code snippet shows how to read the ADC values from the board.
1 unsigned int getADC() 2 { 3 char i, buffer; 4 volatile unsigned int read, read1, avrg, sum; 5 sum = 0; 6 for(i=0; i<10; i++ ) 7 { 8 Chip_Select = 0; 9 read = SPI1_Read(buffer); 10 read1 = SPI1_Read(buffer); 11 Chip_Select = 1; 12 read = ((read & 0x1F) << 8); 13 read = ((read | read1) >> 1); 14 sum = sum + read; 15 } 16 17 avrg = sum / 10; 18 return avrg; 19 }
Code examples that demonstrate the usage of Ammeter click with MikroElektronika hardware, written for mikroC for PIC are available on Libstock