CMPS03 Magnetic Compass Module

SKU: SEN0036

This compass module has been specifically designed for use in robots as an aid to navigation. The aim was to produce a unique number to represent the direction the robot is facing. The compass uses the Philips KMZ51 magnetic field sensor, which is sensitive enough to detect the Earths magnetic field. The output from two of them mounted at right angles to each other is used to compute the direction of the horizontal component of the Earths magnetic field. We have examples of using the Compass module with a wide range of popular controllers.

Detail of CMPS03 Magnetic Compass PCB components-DFRobot product sku:SEN0036 image.
  • Docs
  • Tech Specs
  • Specification

    Feature Category Specification
    Power Supply Requirement 5V DC input, nominal current consumption 25mA
    Bearing Acquisition Methods 1. PWM signal (output on pin 4)
    2. I2C interface (available on pins 2, 3)
    PWM Signal - Basic Parameters - Pulse width range: 1mS (0°) ~ 36.99mS (359.9°)
    - Low-level interval between pulses: 65mS
    - Signal cycle time: 66ms ~ 102ms
    - Hardware resolution: 1uS (driven by 16-bit timer)
    PWM Signal - Angle Mapping 100uS per degree, with 1mS offset; Formula: Pulse width (mS) = 0.1×Angle + 1
    PWM Signal - Measurement Recommendation Do not pursue measurement accuracy higher than 0.1° (corresponding to 10uS pulse width)

    Pinout

    pinout

    Pin Function
    1 +5v
    2 I2C interface
    3 I2C interface
    4 PWM signal
    5 Calibration in progress indicator (active low)
    6 Calibration input
    7 Unused
    8 Unused
    9 0v power supply

    Was this article helpful?

    TOP