c3dhall6 2.0.0.0
|
3D Hall 6 Click is a very accurate, magnetic field sensing Click boardâ„¢, used to measure the intensity of the magnetic field across three perpendicular axes.
We provide a library for the 3dHall6 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for 3dHall6 Click driver.
c3dhall6_cfg_setup
Config Object Initialization function. c3dhall6_init
Initialization function. c3dhall6_set_reference_values
This function sets reference values for voltage and angle calculations. c3dhall6_get_adc_value
This function reads ADC value on selected channel. c3dhall6_get_volt
This function reads ADC value on selected channel and converts that value to Volts or miliVolts - depending on reference voltage setting. This application measure the intensity of the magnetic field across three perpendicular axes.
The demo application is composed of two sections :
Initializes device.
Executes one or more 'c3dhall6_log_xxx_task' functions Additional Functions :
- c3dhall6_log_adc_task() - performs and logs adc measurements on all channels
- c3dhall6_log_volt_task() - performs and logs voltage measurements on all channels
- c3dhall6_log_angleRad_task() - performs and logs angle measurements in radians on each die
- c3dhall6_log_angleDeg_task() - performs and logs angle measurements in degrees on each die
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.