AC Current Click Board
AC Current Click Board
The AC Current Click Board™ can measure alternating currents up to 30A. It features the MCP3201 ADC (analogue to digital) converter and the MCP607 CMOS Op-Amp, both from Microchip. The Click Board™ is designed to run on either a 3.3V or 5V power supply. It communicates with the target MCU over an SPI interface and the AN pin on the MikroBUS™ interface.
The AC Current Click Board™ can only be used for sensors with voltage output (30A input current).
Software Support
We provide a demo application for the AC Click Board™ on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Key Functions
void accurrent_init ( );
- Click initialization setting CS to Highfloat accurrent_getmA( );
- Gets the current value of AC Current in mAfloat accurrent_getA( );
- Gets the current value of AC Current in A
Example Description
The application is composed of three sections:
- System Initialization - GPIO and SPI module initialization
- Application Initialization - SPI driver and slick initialization
- Application Task - (code snippet) - reading the value of current and displaying it via UART N
void applicationTask() { ac_current = accurrent_getmA(); FloatToStr(ac_current,text); mikrobus_logWrite("Current value: ",_LOG_TEXT); mikrobus_logWrite(text,_LOG_TEXT); mikrobus_logWrite(" mA",_LOG_LINE); Delay_ms(1000); }
The full application code, and ready to use projects can be found on our Libstock page.
Other MikroElektronika libraries used in the example:
- UART
- SPI
- CONVERSIONS
ADDITIONAL NOTES AND INFORMATION
Depending on the development board you are using, you may need a 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.
MIKROSDK
The AC Click Board™ is supported with mikroSDK - MikroElektronika 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.
AC Current Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.