TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136630 times)
  2. FAT32 Library (69834 times)
  3. Network Ethernet Library (55887 times)
  4. USB Device Library (46226 times)
  5. Network WiFi Library (41861 times)
  6. FT800 Library (41081 times)
  7. GSM click (28943 times)
  8. PID Library (26402 times)
  9. mikroSDK (26316 times)
  10. microSD click (25328 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

AC Current click

Rating:

6

Author: MIKROE

Last Updated: 2022-01-17

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: Current sensor

Downloaded: 6195 times

Not followed.

License: MIT license  

AC Current click can measure alternating currents up to 30A and it features the MCP3201 ADC (analog to digital) converter and the MCP607 CMOS Op Amp, both from Microchip. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target MCU over an SPI interface, and the AN pin on the mikroBUS line.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "AC Current click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "AC Current click" changes.

Do you want to report abuse regarding "AC Current click".

  • mikroSDK Library 2.0.0.0
  • Comments (2)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

AC Current click

AC Current click

Native view of the AC Current click board.

View full image
AC Current click

AC Current click

Front and back view of the AC Current click board.

View full image

Library description

Key functions:

  • void accurrent_init ( ); - Click initialization setting CS to High
  • float accurrent_getmA( ); - Gets the current value of AC Current in mA
  • float 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);
}


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 USB UART clickUSB 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.

 

ALSO FROM THIS AUTHOR

LTE IoT 9 click

0

LTE IoT 9 Click is a compact add-on board containing a cellular IoT Module that supports 3GPP Release 14 and all LTE bands.

[Learn More]

Timer Calculator

41

Timer Calculator is a free software development tool used for easier calculation of timer interrupts. If you like Timer Calculator you can support further development by contributing on following page: http://www.mikroe.com/timer-calculator/#support

[Learn More]

Pedometer click

0

Pedometer Click is designed to sense movement, more precisely, to sense and count steps taken by its user.

[Learn More]