Compass 5 Click Board™
Product Code: MIKROE-4366
How Does The Compass 5 Click Board™ Work? The Compass 5 Click Board™ is based on the AK09918C, a 3-axis electronic compass with high sensitive Hall sensor technology from AKM Semiconductor. This I2C configurable electronic compass incorporates magnetic sensors for detecting terrestrial magnetism in the X, Y, and Z-axis. It has built-in ADC with 16-bit output data for each 3-axis magnetic component, a built-in magnetic sensitivity adjustment circuit and overflow monitor function, and several operating modes with a typical sensitivity of 0.15µT/LSB. It also has the limitation for the measurement range that the sum of absolute values of each axis should be smaller than 4912 μT. When the magnetic field exceeded this limitation, data stored at measurement data are not correct, which is called Magnetic Sensor Overflow. The Compass 5 Click Board™ includes a low-noise LDO voltage regulator SPX3819 from MaxLinear to provide the 1.8V supply voltage for the AK09918C and possesses several operating modes: Power-Down, Single Measurement, Continuous Measurement, and Self-Test Mode.
When power is turned ON, an AK09918C is in a Power-Down Mode. When a specified value is set in a MODE register, the AK09918C transits to the specified mode and starts operation. When a user wants to change Operation Mode, transit to Power-Down mode first and then transit to other Modes. After Power-Down Mode is set, a period of at least 100μs is needed before setting another Mode is possible.
The Compass 5 Click Board™ communicates with MCU using the standard I2C 2-Wire interface with a frequency up to 100kHz in the Standard Mode, and up to 400kHz in the Fast Mode. Since the sensor is supplied with 1.8V logic voltage level only, also featured on this Click board™ is a PCA9306 voltage-level translator from Texas Instruments. The I2C interface bus lines are routed to the dual bidirectional voltage-level translator that allows this Click board™ to be interfaced with both 3.3V and 5V MCUs.
The Compass 5 Click Board™ is designed to be operated with both 3.3V and 5V logic voltage levels that can be selected via VCC SEL jumper. This allows for both 3.3V and 5V capable MCUs to use the I2C communication lines properly. However, the Click board™ comes equipped with a library that contains easy to use functions and an example code that can be used as a reference for further development.
SPECIFICATIONS
Type
Magnetic
Applications
Can be used for map heading-up purposes to realize the pedestrian navigation function.
On-board modules
The Compass 5 Click Board™ is based on the AK09918C, a 3-axis electronic compass with high sensitive Hall sensor technology from AKM Semiconductor.
Key Features
Built-in ADC with 16-bit output data for each 3-axis magnetic component, a built-in magnetic sensitivity adjustment circuit and overflow monitor function, and several operating modes with a typical sensitivity of 0.15µT/LSB, and more.
Interface
I2C
Compatibility
mikroBUS
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V or 5V
PINOUT DIAGRAM
This table shows how the pinout for the Compass 5 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
NC
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
5V
Power Supply
Ground
GND
8
GND
GND
9
GND
Ground
ONBOARD SETTINGS AND INDICATORS
Label
Name
Default
Description
LD1
PWR
-
Power LED Indicator
JP1
VCC SEL
Left
P
Visit the Debug Store website for more information on Compass 5 Click Board™