# Title: 3D Hall 9 Click Board™ ## Description: How Does The 3D Hall 9 Click Board™ Work? The 3D Hall 9 Click Board™ as its foundation uses the ALS31300, a 3D linear Hall-effect sensor used to detect the strength of a magnetic field in all three dimensions (X, Y, and Z axes) from Allegro Microsystems. The ALS31300 provides a 12-bit digital output value proportional to the magnetic field generally applied to any of the Hall elements, alongside a 12-bit temperature output representing the junction temperature of the IC. The quiescent output value (zero magnetic fields used) is at mid-scale. The ALS31300 comes with the factory-programmed sensitivity range of ±500G, suitable for 3D linear sensing or 2D angle sensing applications. Power management on the ALS31300 is user-selectable and highly configurable, allowing for system-level optimization of current consumption and performance. It supports three different power modes: Active Mode, Sleep Mode, and Low-Power Duty Cycle Mode (LPDCM). The operating mode of the ALS31300 will be determined by the selected proper value of the 0x27 register. More information on the operational modes can be found in the attached datasheet. The 3D Hall 9 Click Board™ communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting Standard Mode operation with a clock frequency of 100kHz and Fast Mode up to 400kHz. It provides data in digital format of 12-bits corresponding to the magnetic field measured in each X, Y, and Z axes. The ALS31300 also requires a supply voltage of 3V to work regularly. Therefore, a small LDO regulator, NCP170 from ON Semiconductor, provides 3V out of mikroBUS™ 3V3 power rail. This Click board™ also uses the Enable pin labelled as EN and routed to the CS pin of the mikroBUS™ socket to optimize power consumption, used for its power ON/OFF purposes. The ALS31300 provides the ability to set different I2C slave addresses (16 unique addresses) by populating the appropriate resistors (R8 and R6), thus forming a voltage divider with a voltage value that corresponds to the desired I2C address. It also possesses an additional interrupt signal, routed on the INT pin of the mikroBUS™ socket labelled as INT, which integrates detection and reporting of significant changes in an applied magnetic field (independently enabled or disabled for each of the three axes). An interrupt event is initiated when the applied magnetic field forces the ADC output to a value greater than or equal to the user-programmed threshold. The 3D Hall 9 Click Board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development. SPECIFICATIONS Type Magnetic Applications The 3D Hall 9 Click Board™ be used for various applications, such as 3D sensing for head-on linear motion, slide-by position sensing, and rotation angle measurements On-board modules ALS31300 - 3D linear Hall-effect sensor used to detect the strength of a magnetic field in all three dimensions (X, Y, and Z axes) from Allegro Microsystems Key Features Low power consumption, 1% accurate factory-trimmed sensitivity ±500 G, integrated temperature sensor, I2C interface with selectable slave addresses, and more Interface I2C Compatibility mikroBUS Click board size S (28.6 x 25.4 mm) Input Voltage 3.3V PINOUT DIAGRAM This table shows how the pinout of the 3D Hall 9 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 NC NC 2 RST INT 15 INT Interrupt Enable EN 3 CS RX 14 NC NC 4 SCK TX 13 NC NC 5 MISO SCL 12 SCL I2C Clock NC 6 MOSI SDA 11 SDA I2C Data Power Supply 3.3V 7 3.3V 5V 10 NC Ground GND 8 GND GND 9 GND Ground ONBOARD SETTINGS AND INDICATORS Label Name Default Description LD1 PWR - Power LED Indicator R6, R8 R6, R8 Unpopulated I2C Address Selection Jumpers 3D HALL 9 CLICK ELECTRICAL SPECIFICATIONS Description Min Typ Max Unit Supply Voltage - 3.3 - V Sensing Range -500 - +500 G Sensitivity - 4 - V Resolution - 12 - bit Operating Temperature Range -40 +25 +85 °:C ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Allegro Microsystems, Click Board, Magnetic Field, MikroE, Sensor ## Price range: 11.9 - 11.9 GBP ## Link: https://thedebugstore.com/products/mikroe-4948-3d-hall-9-click-board-uk ## Compare-at price range: 17.0 - 17.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [Allegro MicroSystems Device Support: Development Boards & Tools](https://thedebugstore.com/a/llms/collections/allegro-microsystems-device-support-uk) - [Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/sensor-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-4948, Available: yes, Inventory: 2 ## Metafields - title_tag: MikroE 3D Hall 9 Click Board™ (MIKROE-4948) - description_tag: The 3D Hall 9 Click Board™ is a compact add-on board used to detect the strength of a magnetic field in all three dimensions. This board features the ALS31300, a 3D linear Hall-effect sensor with digital output and advanced low power management from Allegro Microsystems. Available from Debug Store UK. - badge:
- widget:The 3D Hall 9 Click Board™ as its foundation uses the ALS31300, a 3D linear Hall-effect sensor used to detect the strength of a magnetic field in all three dimensions (X, Y, and Z axes) from Allegro Microsystems. The ALS31300 provides a 12-bit digital output value proportional to the magnetic field generally applied to any of the Hall elements, alongside a 12-bit temperature output representing the junction temperature of the IC. The quiescent output value (zero magnetic fields used) is at mid-scale. The ALS31300 comes with the factory-programmed sensitivity range of ±500G, suitable for 3D linear sensing or 2D angle sensing applications.

Power management on the ALS31300 is user-selectable and highly configurable, allowing for system-level optimization of current consumption and performance. It supports three different power modes: Active Mode, Sleep Mode, and Low-Power Duty Cycle Mode (LPDCM). The operating mode of the ALS31300 will be determined by the selected proper value of the 0x27 register. More information on the operational modes can be found in the attached datasheet.
The 3D Hall 9 Click Board™ communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting Standard Mode operation with a clock frequency of 100kHz and Fast Mode up to 400kHz. It provides data in digital format of 12-bits corresponding to the magnetic field measured in each X, Y, and Z axes. The ALS31300 also requires a supply voltage of 3V to work regularly. Therefore, a small LDO regulator, NCP170 from ON Semiconductor, provides 3V out of mikroBUS™ 3V3 power rail. This Click board™ also uses the Enable pin labelled as EN and routed to the CS pin of the mikroBUS™ socket to optimize power consumption, used for its power ON/OFF purposes.
The ALS31300 provides the ability to set different I2C slave addresses (16 unique addresses) by populating the appropriate resistors (R8 and R6), thus forming a voltage divider with a voltage value that corresponds to the desired I2C address. It also possesses an additional interrupt signal, routed on the INT pin of the mikroBUS™ socket labelled as INT, which integrates detection and reporting of significant changes in an applied magnetic field (independently enabled or disabled for each of the three axes). An interrupt event is initiated when the applied magnetic field forces the ADC output to a value greater than or equal to the user-programmed threshold.
The 3D Hall 9 Click Board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development.
| Type | Magnetic |
| Applications | The 3D Hall 9 Click Board™ be used for various applications, such as 3D sensing for head-on linear motion, slide-by position sensing, and rotation angle measurements |
| On-board modules | ALS31300 - 3D linear Hall-effect sensor used to detect the strength of a magnetic field in all three dimensions (X, Y, and Z axes) from Allegro Microsystems |
| Key Features | Low power consumption, 1% accurate factory-trimmed sensitivity ±500 G, integrated temperature sensor, I2C interface with selectable slave addresses, and more |
| Interface | I2C |
| Compatibility | mikroBUS |
| Click board size | S (28.6 x 25.4 mm) |
| Input Voltage | 3.3V |
This table shows how the pinout of the 3D Hall 9 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
| Notes | Pin | ![]() |
Pin | Notes | |||
|---|---|---|---|---|---|---|---|
| NC | 1 | AN | PWM | 16 | NC | ||
| NC | 2 | RST | INT | 15 | INT | Interrupt | |
| Enable | EN | 3 | CS | RX | 14 | NC | |
| NC | 4 | SCK | TX | 13 | NC | ||
| NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
| NC | 6 | MOSI | SDA | 11 | SDA | I2C Data | |
| Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | NC | |
| Ground | GND | 8 | GND | GND | 9 | GND | Ground |
| Label | Name | Default | Description |
|---|---|---|---|
| LD1 | PWR | - | Power LED Indicator |
| R6, R8 | R6, R8 | Unpopulated | I2C Address Selection Jumpers |
| Description | Min | Typ | Max | Unit |
|---|---|---|---|---|
| Supply Voltage | - | 3.3 | - | V |
| Sensing Range | -500 | - | +500 | G |
| Sensitivity | - | 4 | - | V |
| Resolution | - | 12 | - | bit |
| Operating Temperature Range | -40 | +25 | +85 | °:C |
We provide a library for the 3D Hall 9 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on Mikroe Github account.
This library contains API for 3D Hall 9 Click driver.
Key functions
c3dhall9_write_register This function writes a desired data to the selected register by using I2C serial interface.
c3dhall9_read_register This function reads a desired data from the selected register by using I2C serial interface.
c3dhall9_read_data This function reads new data which consists of X, Y, and Z axis values in Gauss, and temperature in Celsius. It also calculates the angles between all axes in Degrees based on the raw axes data read.
This example demonstrates the use of the 3D Hall 9 Click Board™ by reading the magnetic flux density from 3 axes as well as the angles between axes and the sensor temperature.
void application_task ( void )
{
c3dhall9_data_t sensor_data;
if ( C3DHALL9_OK == c3dhall9_read_data ( &c3dhall9, &sensor_data ) )
{
log_printf( &logger, " X-axis: %.1f Gaussrn", sensor_data.x_axis );
log_printf( &logger, " Y-axis: %.1f Gaussrn", sensor_data.y_axis );
log_printf( &logger, " Z-axis: %.1f Gaussrn", sensor_data.z_axis );
log_printf( &logger, " Angle XY: %.1f Degreesrn", sensor_data.angle_xy );
log_printf( &logger, " Angle XZ: %.1f Degreesrn", sensor_data.angle_xz );
log_printf( &logger, " Angle YZ: %.1f Degreesrn", sensor_data.angle_yz );
log_printf( &logger, " Temperature: %.2f Celsiusrnn", sensor_data.temperature );
Delay_ms ( 300 );
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on Mikroe Github account.
Other Mikroe Libraries used in the example:
Depending on the development board you are using, you may need a 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.
The 3D Hall 9 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
- manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - backorder_label: If no stock shown above, check availability - attachments: [{"download_file":[{"download_file":"3D Hall 9 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Allegro Microsystems ALS31300 3-D Linear Hall Effect Sensor Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"ON Semiconductor NCP170 LDO Regulator Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - condition: new - custom_product: false - mpn: MIKROE-4948 - google_product_category: Electronics - custom_label_0: Click Board - mpn: MIKROE-4948 - 6133788016829: {"product_id":"gid://shopify/Product/6133788016829","product_handle":"mikroe-1987-3d-hall-click-board-uk","product_order":0} - 6133832155325: {"product_id":"gid://shopify/Product/6133832155325","product_handle":"mikroe-3190-3d-hall-2-click-board-uk","product_order":1} - 6133834121405: {"product_id":"gid://shopify/Product/6133834121405","product_handle":"mikroe-3310-3d-hall-3-click-board-uk","product_order":2} - 6133832253629: {"product_id":"gid://shopify/Product/6133832253629","product_handle":"mikroe-3197-3d-hall-5-click-board-uk","product_order":3} - 6133844934845: {"product_id":"gid://shopify/Product/6133844934845","product_handle":"mikroe-3764-3d-hall-6-click-board-uk","product_order":4} - 6133841526973: {"product_id":"gid://shopify/Product/6133841526973","product_handle":"mikroe-3629-3d-hall-7-click-board-uk","product_order":5} - 6711085498557: {"product_id":"gid://shopify/Product/6711085498557","product_handle":"mikroe-4498-3d-hall-8-click-board","product_order":6} - 7686659965151: {"product_id":"gid://shopify/Product/7686659965151","product_handle":"mikroe-5125-3d-hall-10-click-board-uk","product_order":7} - key_feature_2: Low power consumption, 1% accurate factory-trimmed sensitivity ±500 G, integrated temperature sensor, I2C interface with selectable slave addresses, and more - key_feature_3: Based on the ALS31300 - 3D linear Hall-effect sensor used to detect the strength of a magnetic field in all three dimensions (X, Y, and Z axes) from Allegro Microsystems - key_feature_4: Can be used for various applications, such as 3D sensing for head-on linear motion, slide-by position sensing, and rotation angle measurements - key_feature_5: mikroBUS: I2C Interface - device_vendor: Allegro MicroSystems - device_type: ALS31300EEJASR-500 - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - target_keyword: 3D Hall 9 Click Board - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241545969853"] - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The 3D Hall 9 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"3D Hall 9 Click Board™","bold":true,"italic":true},{"type":"text","value":" as its foundation uses the ALS31300, a 3D linear Hall-effect sensor used to detect the strength of a magnetic field in all three dimensions (X, Y, and Z axes) from Allegro Microsystems. The ALS31300 provides a 12-bit digital output value proportional to the magnetic field generally applied to any of the Hall elements, alongside a 12-bit temperature output representing the junction temperature of the IC. The quiescent output value (zero magnetic fields used) is at mid-scale. The ALS31300 comes with the factory-programmed sensitivity range of ±500G, suitable for 3D linear sensing or 2D angle sensing applications."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"Power management on the ALS31300 is user-selectable and highly configurable, allowing for system-level optimization of current consumption and performance. It supports three different power modes: Active Mode, Sleep Mode, and Low-Power Duty Cycle Mode (LPDCM). The operating mode of the ALS31300 will be determined by the selected proper value of the 0x27 register. More information on the operational modes can be found in the attached datasheet."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"3D Hall 9 Click Board™","bold":true},{"type":"text","value":" communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting Standard Mode operation with a clock frequency of 100kHz and Fast Mode up to 400kHz. It provides data in digital format of 12-bits corresponding to the magnetic field measured in each X, Y, and Z axes. The ALS31300 also requires a supply voltage of 3V to work regularly. Therefore, a small LDO regulator, NCP170 from ON Semiconductor, provides 3V out of mikroBUS™ 3V3 power rail. This Click board™ also uses the Enable pin labelled as EN and routed to the CS pin of the mikroBUS™ socket to optimize power consumption, used for its power ON/OFF purposes."}]},{"type":"paragraph","children":[{"type":"text","value":"The ALS31300 provides the ability to set different I2C slave addresses (16 unique addresses) by populating the appropriate resistors (R8 and R6), thus forming a voltage divider with a voltage value that corresponds to the desired I2C address. It also possesses an additional interrupt signal, routed on the INT pin of the mikroBUS™ socket labelled as INT, which integrates detection and reporting of significant changes in an applied magnetic field (independently enabled or disabled for each of the three axes). An interrupt event is initiated when the applied magnetic field forces the ADC output to a value greater than or equal to the user-programmed threshold."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"3D Hall 9 Click Board™","bold":true},{"type":"text","value":" can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nMagnetic\nApplications\nThe 3D Hall 9 Click Board™ be used for various applications, such as 3D sensing for head-on linear motion, slide-by position sensing, and rotation angle measurements\nOn-board modules\nALS31300 - 3D linear Hall-effect sensor used to detect the strength of a magnetic field in all three dimensions (X, Y, and Z axes) from Allegro Microsystems\nKey Features\nLow power consumption, 1% accurate factory-trimmed sensitivity ±500 G, integrated temperature sensor, I2C interface with selectable slave addresses, and more\nInterface\nI2C\nCompatibility\nmikroBUS\nClick board size\nS (28.6 x 25.4 mm)\nInput Voltage\n3.3V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout of the "},{"type":"text","value":"3D Hall 9 Click Board™","bold":true},{"type":"text","value":" corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\nPin\nNotes\nNC\n1\nAN\nPWM\n16\nNC\nNC\n2\nRST\nINT\n15\nINT\nInterrupt\nEnable\nEN\n3\nCS\nRX\n14\nNC\nNC\n4\nSCK\nTX\n13\nNC\nNC\n5\nMISO\nSCL\n12\nSCL\nI2C Clock\nNC\n6\nMOSI\nSDA\n11\nSDA\nI2C Data\nPower Supply\n3.3V\n7\n3.3V\n5V\n10\nNC\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\nDescription\nLD1\nPWR\n-\nPower LED Indicator\nR6, R8\nR6, R8\nUnpopulated\nI2C Address Selection Jumpers"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"3D HALL 9 CLICK ELECTRICAL SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nSupply Voltage\n-\n3.3\n-\nV\nSensing Range\n-500\n-\n+500\nG\nSensitivity\n-\n4\n-\nV\nResolution\n-\n12\n-\nbit\nOperating Temperature Range\n-40\n+25\n+85\n°:C"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:The 3D Hall 9 Click Board™ is a compact add-on board used to detect the strength of a magnetic field in all three dimensions. This board features the ALS31300, a 3D linear Hall-effect sensor with digital output and advanced low power management from Allegro Microsystems. The ALS31300 features an I2C interface, enabling it to be easily configured by MCU with the measurement data provided in digital format of 12-bits corresponding to the magnetic field measured in each X, Y, and Z axes. It also provides the ability to set different I2C slave addresses (16 unique addresses) by populating the appropriate resistors desired by the user. Power management of the ALS31300 is highly configurable, allowing for system-level optimization of supply current and performance.
The 3D Hall 9 Click Board™ is suitable for various applications, such as 3D sensing for head-on linear motion, slide-by position sensing, and rotation angle measurements.