Compass 4 Click Board™
Product Code: MIKROE-4231
How Does The Compass 4 Click Board™ Work? The Compass 4 Click Board™ is based on the AK09915, a complete 3-axis magnetic sensor with signal processing from AKM. The AK09915 incorporates magnetic sensors for detecting terrestrial magnetism in the X-axis, Y-axis, and Z-axis, a sensor driving circuit, signal amplifier chain, and an arithmetic circuit for processing the signal from each sensor. The output signal of each axis sensor is multiplexed, pre-amplified processed, and digitized by a 16-bit A/D converter (ADC). A three-axis magnetometer can be programmed to measure the magnetic component for each axis, within the full-scale range of ±4912 μT and sensitivity of 0.15 µT per LSB. The AK09915 has an analog circuit, digital logic, and interface block integrated on a chip. It also supports nine different Operation Modes that can be chosen by setting the appropriate registers. When the Single Measurement Mode is set, the magnetic sensor measurement starts. After magnetic sensor measurement and signal processing is finished, measured magnetic data is stored in measurement data registers, and then the AK09915 transits to Power-Down Mode automatically.
On transition to Power-Down Mode, Data Ready (DRDY) bit turns to "1". When any of the measurement data registers are read, the DRDY bit turns to "0". It remains "1" on the transition from Power-Down Mode to another Mode. Data Ready output pin of the AK09915 labeled as the DRY is routed to the INT pin of the mikroBUS™ socket. Besides Data Ready pin, the Compass 4 Click Board™ also has the Reset pin (RST), routed to the appropriate position on the mikroBUS™.
The Compass 4 Click Board™ provides the possibility of using both I2C and SPI interfaces with a maximum frequency of 2.5MHz for I2C and 4MHz for SPI communication. The selection can be performed by positioning SMD jumpers labeled as COMM SEL to an appropriate position. Note that all the jumpers must be placed to the same side, or else the Click board™ may become unresponsive. While the I2C interface is selected, the AK09915 allows the choice of the last two significant bits (LSB) of its I2C slave address. This can be done by using the SMD jumper labeled as ADDR SEL. Depending on the positions of each of the ADDR SEL jumpers, four different addresses can be set.
The Compass 4 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
Suitable for applications such as electrical compass, position sensing, general magnetic field measurement and more.
On-board modules
The Compass 4 Click Board™ is based on the AK09915, a complete 3-axis magnetic sensor with signal processing from AKM
Key Features
Full scale range of ±4912 μT, sensitivity of 0.15 µT per LSB, resolution at 16bits, Noise Suppression Filter (NSF)
Interface
I2C,SPI
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 4 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
Reset
RST
2
RST
INT
15
DRY
Data Ready Output
SPI Chip Select
CS
3
CS
RX
14
NC
SPI Clock
SCK
4
SCK
TX
13
NC
SPI Data Out
SDO
5
MISO
SCL
12
SCL
I2C Clock
SPI Data In
SDI
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
Visit the Debug Store website for more information on Compass 4 Click Board™