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

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

Compass Module

Page history last edited by sarith.ong@liquidware.com 7 years, 11 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.

 

Applications

 

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

 

Specifications

 

  • 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

 

Resources

 

Media

 

YouTube plugin error

 

Link to the cheatsheet as a PDF...

 

 

 

Souce Code

 

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

 

 

 

 

 

 

Comments (0)

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