• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks or on the Web, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, Slack, and browsed web pages. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.


Compass Module

Page history last edited by sarith.ong@liquidware.com 10 years, 7 months ago



The compass module is a joint project between Liquidware and Modern Device and is available here as an assembled unit. Thanks! -Justin

This is a fully integrated compass module that combines the Honeywell HMC6352 2-axis magneto-resistive sensors with the required analog and digital support circuits, microprocessor and algorithms for heading computation.

It comes assembled with a 4-pin male header soldered on.

The Compass Sensor is fully integrated with the Antipasto Arduino IDE and can provide compass headings in degrees over Arduino serial.




  • Homebrew virtual reality & gaming systems
  • Robotics and dead reckoning navigation systems
  • Compassing & outdoor sports
  • GPS confirmation
  • Antenna positioning




  • HMC6352 chip
  • 4-pin male header included
  • 4-pin stack through header included
  • Heading output (0-360 degrees)
  • I2C 2-Wire Serial Interface
  • 3 output modes: Standby, Query, and Continuous
  • Heading accuracy: 2.5 degrees
  • Heading resolution: 0.5 degrees
  • Arduino pin compatible
  • +5V Tolerant I/O


Arduino Pin Mapping


Analog 2 = Ground Analog 3 = Vin Analog 4 = Data Analog 5 = Clock






YouTube plugin error


Link to the cheatsheet as a PDF...




Souce Code


#include <Wire.h>
#include <LibCompass.h>
LibCompass compass =
void setup() {
int c;
void loop() {
c = (int)compass.GetHeading();
Serial.print("Heading: ");
Serial.println(" degrees");







Comments (0)

You don't have permission to comment on this page.