We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2019-09-27
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Magnetic
Downloaded: 3262 times
Not followed.
License: MIT license
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. It is equipped with the MLX90380, a monolithic contactless sensor IC sensitive to the flux density applied orthogonally and parallel to the IC surface, from Melexis.
Do you want to subscribe in order to receive notifications regarding "3D Hall 6 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "3D Hall 6 click" changes.
Do you want to report abuse regarding "3D Hall 6 click".
Library Description
Library contains function for setting CS pin state Library contains functions for setting reference values, reading raw data, reading adc data Library contains functions for performing voltage, angle(degrees) and angle(radians) calculations.
Key functions:
void c3dhall6_set_referenceValues( float reference_voltage, float ref_adc_ch0, float ref_adc_ch1, float ref_adc_ch2, float ref_adc_ch3 )
- sets reference values for voltage and angle calculationsvoid c3dhall6_get_Volt( uint8_t channel_no, float * channel_voltage )
- reads ADC value on selected channel and converts that value to Volts or miliVolts - depending on reference voltage settingvoid c3dhall6_get_angle_deg( uint8_t die, float * angle_value )
- reads ADC values for selected die and calculates angle value in degreesExamples description
The application is composed of three sections :
void applicationTask( )
{
c3dhall6_log_angleDeg_task( );
Delay_ms(100);
}
Additional Functions
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.