Page 1 of 2
Ammeter click
From MikroElektonika Documentation
Ammeter click is a mikroBUS™ add-on board with circuitry for measuring electric
current (both AC and DC).
Ammeter click
Features and usage notes
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 12bit ADC which then outputs a
digital value through the
mikroBUS™ SPI interface.
Schematic also available in PDF (http://cdndocs.mikroe.com/images/6/6d/Ammeter-clickboard-schematic-v100.pdf)
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.
Ammeter click
IC/Module
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).
Programming
MCP3201
(http://ww1.microchip.com/downloads/en/DeviceDoc/21290D.pdf)
MAX6106
(https://www.maximintegrated.com/en/products/analog/voltagereferences/MAX6106.html)
AD8616 (http://www.analog.com/media/en/technicaldocumentation/data-sheets/AD8615_8616_8618.pdf)
Interface
SPI, AN
Power
3.3V, 5V
supply
Website
www.mikroe.com/click/ammeter/
(http://www.mikroe.com/click/ammeter/)
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 1);
13
sum = sum + read;
14
}
15
16
avrg = sum / 10;
17
return avrg;
18
19 }
Code examples that demonstrate the usage of Ammeter click with MikroElektronika hardware, written for mikroC for PIC are available on Libstock
(http://libstock.mikroe.com/projects/view/1884/ammeter-click).
Resources
- Vendor’s data sheet (http://ww1.microchip.com/downloads/en/DeviceDoc/21290D.pdf)
- Three electronic helper, a learn.mikroe.com article covering Ammeter click (http://learn.mikroe.com/three-electronic-helpers)
Page 2 of 2
- Ammeter click example on Libstock (http://libstock.mikroe.com/projects/view/1884/ammeter-click)
Retrieved from "http://docs.mikroe.com/index.php?title=Ammeter_click&oldid=608"
◾ This page was last modified on 4 August 2016, at 18:37.
◾ Content is available under Creative Commons Attribution unless otherwise noted.
http://docs.mikroe.com/index.php?title=Ammeter_click&printable=yes
8/8/2016
很抱歉,暂时无法提供与“MIKROE-2377”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格
- 1+196.05090
- 5+192.13530
- 国内价格 香港价格
- 1+49.448251+5.97013