hallcurrent18 2.1.0.0
|
Hall Current 18 Click is a compact add-on board that contains a precise solution for AC/DC current sensing. This board features the MCS1806, an isolated Hall-effect current sensor from MPS. The sensor is immune to external magnetic fields via differential sensing and has no magnetic hysteresis. The MCS1806 features galvanic isolation between the pins of the primary conductive path and the sensor leads, allowing it to replace optoisolators and other isolation devices.
We provide a library for the Hall Current 18 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Hall Current 18 Click driver.
hallcurrent18_cfg_setup
Config Object Initialization function. hallcurrent18_init
Initialization function. hallcurrent18_default_cfg
Click Default Configuration function. hallcurrent18_read_current
Hall Current 18 read current function. hallcurrent18_read_voltage
Hall Current 18 read voltage level function. hallcurrent18_read_raw_adc
Hall Current 18 read raw ADC value function. This example demonstrates the use of Hall Current 18 click boardâ„¢ by reading and displaying the current measurements.
The demo application is composed of two sections :
The initialization of SPI module and log UART. After driver initialization, the app sets the default configuration and set the zero voltage reference.
The demo application reads the current measurements [A] and displays the results. Results are being sent to the UART Terminal, where you can track their changes.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
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. UART terminal is available in all MikroElektronika compilers.