magneto9 2.0.0.0
|
Magneto 9 Click is a compact add-on board that contains a low-power, accurate, and reliable magnetic sensing device. This board features the A1359, dual tracking output linear hall-effect sensor from Allegro MicroSystems.
We provide a library for the Magneto9 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 Magneto9 Click driver.
magneto9_cfg_setup
Config Object Initialization function. magneto9_init
Initialization function. magneto9_read_adc_voltage
This function reads raw 12-bit ADC data and converts it to voltage by using I2C serial interface. magneto9_read_an_pin_voltage
This function reads results of AD conversion of the AN pin and converts them to proportional voltage level. magneto9_get_pwm_pin
This function returns the PWM pin logic state. This example demonstrates the use of Magneto 9 click board.
The demo application is composed of two sections :
Initializes the driver and logger.
Reads the ADC voltage and calculates the magnetic field strength from it. Voltage increases with increasing positive (south) applied magnetic field. All data are being displayed on the USB UART 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.