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]
Rating:
Author: MIKROE
Last Updated: 2018-04-16
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Current sensor
Downloaded: 4903 times
Not followed.
License: MIT license
Hall current 2 click is a very accurate current measurement Click board, which relies on the Hall effect. The maximum current which can be measured with the Hall current 2 ranges from -12A to +12A, with optimized precision.
Do you want to subscribe in order to receive notifications regarding "Hall current 2 Click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Hall current 2 Click" changes.
Do you want to report abuse regarding "Hall current 2 Click".
Library Description
This library provides basic functionality for reading the current value and controlling the Click board.
Key functions:
void hallcurrent2_reset() - Function for reseting the click board sensor.
int16_t hallcurrent2_getData() - Function that returns the 12bit digital value.
int16_t hallcurrent2_getCurrent() - Function that returns the current value.
Examples Description
The application is composed of three sections:
void applicationTask() { CurrentData = hallcurrent2_getCurrent(); IntToStr(CurrentData, text); mikrobus_logWrite("--- Current :", _LOG_TEXT); mikrobus_logWrite(text, _LOG_TEXT); mikrobus_logWrite(" mA", _LOG_LINE); Delay_ms( 1000 ); }
Other mikroE Libraries used in the example:
Additional notes and information
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.