c3dhall4 2.1.0.0
|
3D Hall 4 Click is a compact add-on board that can detect the strength of a magnetic field in all three dimensions. This board features the SENM3Dx, a 3D Hall magnetic sensor from SENIS. It is a CMOS-integrated magnetic field sensor that allows the acquisition of all three magnetic field components at the same time and in the same spot. The sensor is equipped with on-chip EPROM to hold initialization, calibration data, and other settings and definitions.
We provide a library for the 3D Hall 4 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 3D Hall 4 Click driver.
c3dhall4_cfg_setup
Config Object Initialization function. c3dhall4_init
Initialization function. c3dhall4_default_cfg
Click Default Configuration function. c3dhall4_read_data
This function reads the measurement status, 3-axes magnetic field data, and the chip internal temperature. c3dhall4_reg_write
This function writes a desired number of data bytes starting from the selected register by using SPI serial interface. c3dhall4_reg_read
This function reads a desired number of data bytes starting from the selected register by using SPI serial interface. This example demonstrates the use of 3D Hall 4 click board by reading the magnetic field strength from 3 axes and the sensor internal temperature.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Reads data from the sensor and displays them on the USB UART once per second.
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.