# Title: Compass 3 Click Board™ ## Description: How Does The Compass 3 Click Board™ Work? The Compass 3 Click Board™ uses the MMC5883MA, a complete 3-axis magnetic sensor with on-chip signal processing and integrated I2C bus suitable for use in various applications, from MEMSIC. The device eliminates the need for A/D converters or timing resources by being directly connected to a microprocessor. It can measure magnetic fields within the full scale range of ±8Gauss (G), with 0.25mG per LSB resolution at 16bits operation mode and 0.4mG total RMS noise level, enabling heading accuracy of ±1° in electronic compass applications. An integrated SET/RESET function provides for the elimination of error due to Null Field output change with temperature. Temperature information from the integrated temperature sensor is available over the I2C Interface. The SET/RESET function can be performed for each measurement, periodically, or when the temperature changes by a predetermined amount as the specific application requires. In addition, the SET/RESET function clears the sensors of any residual magnetic polarization resulting from exposure to strong external magnets. The MMC5883MA is packaged in a low profile LGA package (3.0 x 3.0 x 1.0 mm) and an operating temperature range from -40°C to +85°C. The MMC5883MA provides an I2C digital output with 400 kHz, fast mode operation. The Compass 3 Click Board™ is designed to be operated only with a 3.3V logic level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with different logic levels. SPECIFICATIONS Type Compass,Magnetic Applications The Compass 3 Click Board™ be used in electronic compass and navigation, position sensing or general purpose magnetic field measurements. On-board modules Compass 3 Click uses the MMC5883MA IC, a complete 3-axis magnetic sensor with on-chip signal processing, from Memsic Inc. Key Features Measuring of magnetic field within the full scale range of ±8Gauss (G), 16bits resolution, 0.25mG per LSB sensitivity, heading accuracy of ±1° 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 for the Compass 3 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 NC 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 COMPASS 3 CLICK ELECTRICAL SPECIFICATIONS Description Min Typ Max Unit Field Range (Each Axis) - ±8 - G Supply Voltage 2.16 3.3 3.6 V Operating Temperature Range -40 - 85 °C ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, Magnet, Memsic, MikroE, Sensor ## Price range: 6.3 - 6.3 GBP ## Link: https://thedebugstore.com/products/mikroe-4063-compass-3-click-board-uk ## Compare-at price range: 9.0 - 9.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) - [Memsic Device Support: Development Boards & Tools for MEMS Sensors](https://thedebugstore.com/a/llms/collections/devices-memsic) - [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) - [Google Shopping - invalid product](https://thedebugstore.com/a/llms/collections/google-shopping-valid-products) - [Magnetic Field Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/magnetic-field-sensor-click-boards-catalogue) - [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-4063, Available: yes, Inventory: 1 ## Metafields - full_description:
The Compass 3 Click Board™ uses the MMC5883MA, a complete 3-axis magnetic sensor with on-chip signal processing and integrated I2C bus suitable for use in various applications, from MEMSIC. The device eliminates the need for A/D converters or timing resources by being directly connected to a microprocessor. It can measure magnetic fields within the full scale range of ±8Gauss (G), with 0.25mG per LSB resolution at 16bits operation mode and 0.4mG total RMS noise level, enabling heading accuracy of ±1° in electronic compass applications.

An integrated SET/RESET function provides for the elimination of error due to Null Field output change with temperature. Temperature information from the integrated temperature sensor is available over the I2C Interface.
The SET/RESET function can be performed for each measurement, periodically, or when the temperature changes by a predetermined amount as the specific application requires. In addition, the SET/RESET function clears the sensors of any residual magnetic polarization resulting from exposure to strong external magnets. The MMC5883MA is packaged in a low profile LGA package (3.0 x 3.0 x 1.0 mm) and an operating temperature range from -40°C to +85°C. The MMC5883MA provides an I2C digital output with 400 kHz, fast mode operation.
The Compass 3 Click Board™ is designed to be operated only with a 3.3V logic level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with different logic levels.
| Type | Compass,Magnetic |
| Applications | The Compass 3 Click Board™ be used in electronic compass and navigation, position sensing or general purpose magnetic field measurements. |
| On-board modules | Compass 3 Click uses the MMC5883MA IC, a complete 3-axis magnetic sensor with on-chip signal processing, from Memsic Inc. |
| Key Features | Measuring of magnetic field within the full scale range of ±8Gauss (G), 16bits resolution, 0.25mG per LSB sensitivity, heading accuracy of ±1° |
| Interface | I2C |
| Compatibility | mikroBUS |
| Click board size | S (28.6 x 25.4 mm) |
| Input Voltage | 3.3V |
This table shows how the pinout for the Compass 3 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 | |
| NC | 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 |
| Description | Min | Typ | Max | Unit |
|---|---|---|---|---|
| Field Range (Each Axis) | - | ±8 | - | G |
| Supply Voltage | 2.16 | 3.3 | 3.6 | V |
| Operating Temperature Range | -40 | - | 85 | °C |
We provide a library for the Compass 3 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
This library holds functions that can be used to read, write and measure magnetic field and temperature.
void compass3_write_byte ( uint8_t reg_adr, uint8_t data_in ); - Writes 8-bit data into register defined by 8-bit register address.void compass3_full_measurement ( float *x_val, float *y_val, float *z_val ); - Measures magnetic field surrounding the device.float compass3_read_temp ( ); - Function is used to measure temperature.The application is composed of three sections :
void application_task ( )
{
if( compass3_check_int () == COMPASS3_INTERRUPT )
{
compass3_full_measurement ( &x_val, &y_val, &z_val );
FloatToStr( x_val, log_txt );
mikrobus_logWrite( " X-axis: ", _LOG_TEXT );
mikrobus_logWrite( log_txt, _LOG_TEXT );
mikrobus_logWrite( "mG", _LOG_LINE );
FloatToStr( y_val, log_txt );
mikrobus_logWrite( " Y-axis: ", _LOG_TEXT );
mikrobus_logWrite( log_txt, _LOG_TEXT );
mikrobus_logWrite( "mG", _LOG_LINE );
FloatToStr( z_val, log_txt );
mikrobus_logWrite( " Z-axis: ", _LOG_TEXT );
mikrobus_logWrite( log_txt, _LOG_TEXT );
mikrobus_logWrite( "mG", _LOG_LINE );
Delay_ms( 1000 );
mikrobus_logWrite( "--------------------", _LOG_LINE );
}
}
The full application code, and ready to use projects can be found on our LibStock page.
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
The Compass 3 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.
- attachments: [{"download_file":[{"download_file":"Compass 3 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"MEMSIC MMC5883MA 3-Axis Compass Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - condition: new - custom_product: false - mpn: MIKROE-4063 - google_product_category: Electronics - custom_label_0: Click Board - warranty: 12 months - brand: MikroE - key_feature_1: Three Axis Magnetic Field and Temperature Sensing - manufacturer: Mikroelektronika d.o.o. - target_keyword: Compass 3 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 Compass 3 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Compass 3 Click Board™","bold":true,"italic":true},{"type":"text","value":" uses the MMC5883MA, a complete 3-axis magnetic sensor with on-chip signal processing and integrated I2C bus suitable for use in various applications, from MEMSIC. The device eliminates the need for A/D converters or timing resources by being directly connected to a microprocessor. It can measure magnetic fields within the full scale range of ±8Gauss (G), with 0.25mG per LSB resolution at 16bits operation mode and 0.4mG total RMS noise level, enabling heading accuracy of ±1° in electronic compass applications."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"An integrated SET/RESET function provides for the elimination of error due to Null Field output change with temperature. Temperature information from the integrated temperature sensor is available over the I2C Interface."}]},{"type":"paragraph","children":[{"type":"text","value":"The SET/RESET function can be performed for each measurement, periodically, or when the temperature changes by a predetermined amount as the specific application requires. In addition, the SET/RESET function clears the sensors of any residual magnetic polarization resulting from exposure to strong external magnets. The MMC5883MA is packaged in a low profile LGA package (3.0 x 3.0 x 1.0 mm) and an operating temperature range from -40°C to +85°C. The MMC5883MA provides an I2C digital output with 400 kHz, fast mode operation."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Compass 3 Click Board™","bold":true},{"type":"text","value":" is designed to be operated only with a 3.3V logic level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with different logic levels."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nCompass,Magnetic\nApplications\nThe Compass 3 Click Board™ be used in electronic compass and navigation, position sensing or general purpose magnetic field measurements.\nOn-board modules\nCompass 3 Click uses the MMC5883MA IC, a complete 3-axis magnetic sensor with on-chip signal processing, from Memsic Inc.\nKey Features\nMeasuring of magnetic field within the full scale range of ±8Gauss (G), 16bits resolution, 0.25mG per LSB sensitivity, heading accuracy of ±1°\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 for the "},{"type":"text","value":"Compass 3 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\nNC\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"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"COMPASS 3 CLICK ELECTRICAL SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nField Range (Each Axis)\n-\n±8\n-\nG\nSupply Voltage\n2.16\n3.3\n3.6\nV\nOperating Temperature Range\n-40\n-\n85\n°C"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:The Compass 3 Click Board™ is an expansion board that can measure the three-axis magnetic field which is perfect for implementation in applications such as electric compasses. This board features MMC5883MA, a complete 3-axis magnetic sensor with signal processing from MEMSIC. For obtaining the sensor measurement data of the magnetic field and temperature, an I2C protocol is used.
The main feature of the sensor is the capability to measure magnetic fields within the full-scale range of 8Gauss (G), with 0.25mG per LSB resolution at 16bits operation mode and 0.4mG total RMS noise level, enabling heading accuracy of 1º in electronic compass applications.
The Compass 3 Click Board™ is suitable for applications such as electrical compass, position sensing, general magnetic field measurement and more.