Hall Current 2 Click Board
Hall Current 2 Click Board
The Hall Current 2 Click Board™ is a very accurate current measurement Click Board™, which relies on the Hall effect. Its most distinctive feature is a very low series resistance of only 1.2mohm, making this device a nearly-perfect ampere meter. The maximum current which can be measured with the Hall current 2 ranges from -12A to +12A, with optimised precision. The measurement is thermally compensated and conditioned by the integrated sections of the hall sensor IC. The result is available via the I2C interface of the high precision, 12 bit AD converter, as well as in the analogue form, from the analogue pin of the microBUS, directly from the Hall effect current sensor IC. The Hall Current 2 Click Board™ does not require any current sensing resistors.
Software Support
We provide a library for the Hall Current 2 Click Board™ on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
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.
Example Description
The application is composed of three sections:
- System Initialization - Initializes I2C module and INT pin as INPUT and RST pin as OUTPUT.
- Application Initialization - Initializes Driver init and reset chip.
- Application Task - (code snippet) - Reads current and logs on USB UART every 1 second.
It was tested with the voltage of 1V at the input and with a load of 1A to 2A.
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 ); }
The full application code, and ready to use projects can be found on our Libstock page.
Other mikroE Libraries used in the example:
- UART Library
- Conversions Library
- C_String Library
- I2C Library
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.
MIKROSDK
The Hall Current 2 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.
Hall Current 2 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.