The Grove - 6-Axis ±16 Accelerometer/Compass has 3 magnetic field channels and 3 acceleration channels, and 16-bit data output. It can be used easy with micro controller via I2C or SPI port. This sensor can be configured to generate an interrupt signal for free-fall, motion detection and magnetic field detection.