Compass Module 3-Axis HMC5883L (#29133)

Similar documents
Gyroscope Module 3-Axis L3G4200D (#27911)

Web Site: Forums: forums.parallax.com Sales: Technical:

3-Axis Digital Compass IC HMC5883L

Parallax LSM9DS1 9-axis IMU Module (#28065)

3-Axis Digital Compass IC HMC5983

Web Site: Forums: forums.parallax.com Sales: Technical:

Web Site: Forums: forums.parallax.com Sales: Technical:

IST8301C 3D Magnetometer Sensor. Datasheet

DIGITAL COMPASS SOLUTION

3-Axis Digital Compass IC HMC5843

Web Site: Forums: forums.parallax.com Sales: Technical:

Propeller Activity Board (#32910)

MMC212xMG. Dual-axis Magnetic Sensor, With I 2 C Interface FEATURES. Signal Path X

Propeller Project Board USB (#32810)

Adafruit HMC5883L Breakout - Triple-Axis Magnetometer Compass Sensor

DB-Expander Daughterboard-to-SIP (#28325)

Web Site: Forums: forums.parallax.com Sales: Technical:

Specifications

3-Axis Magnetic Sensor QMC5883L

Specifications PMD-1208FS

Hitachi H48C 3-Axis Accelerometer Module (#28026)

Specifications USB-1408FS

Proto-DB (#28310): Prototyping Daughterboard

SILICON MICROSTRUCTURES

OOB (1) Detection Module, With I 2 C Interface Accelerometer

3-Axis Digital Compass IC HMC5983

OEM-ORP ORP. Reads mV mV. Range. 1 reading every 420ms. Response time. Any type & brand. Supported probes. Single point.

MAG3110 Frequently Asked Questions

PWR-I/O-DB Power and I/O Daughterboard (#28301)

Web Site: Forums: forums.parallax.com Sales: Technical:

DS75 Digital Thermometer and Thermostat

USB-1208LS Specifications

GMA301 ±6g Tri-Axial Digital Accelerometer

Manual iaq-engine Indoor Air Quality sensor

Board Of Education USB (#28850)

Digital Thermometer and Thermostat

Propeller Proto Board (#32212) Propeller Proto Board USB (#32812) Proto Board Accessory Kit (# )

Altimeter / Barometer Module SMD500 ultra low power, low voltage

Modern Robotics Inc. Sensor Documentation

3-Axis Compass with Algorithms HMC6343

CW2013. Low-Cost 1s Fuel Gauge IC with Low-SOC Alert. General Description. Features. Applications. Order Information

± 2g Tri-axis Accelerometer Specifications

Nuvoton Touch Key Series NT1160 Datasheet

PING))) Kit for Stingray (#28985)

GRAVITECH GROUP

GRAVITECH GROUP

Product Family Specification

EPT-200TMP-TS-U2 TMP102 Temperature Sensor Docking Board Data Sheet

Fully Integrated Thermal Accelerometer MXC6225XU

1. Features and Benefits

GSDM110 Three-Axis Digital Magnetometer

FM24CL04 4Kb FRAM Serial Memory

Eddie Control Board with Power Connector (#28993) Eddie Control Board PCB (# )

DS WIRE INTERFACE 11 DECOUPLING CAP GND

IMU Axis Gyro Evaluation Board Application Note

DS28CM00. I²C/SMBus Silicon Serial Number

GRAVITECH GROUP

Digital Thermometer and Thermostat

GENERAL DESCRIPTION MC3635 FEATURES

VBattery 7 VCC V DD IRLED IS31SE5001 SDA SCL INTB SDB. Figure 1 Typical Application Circuit

mcube Proprietary APS v1.0 1 / mcube Inc. All rights reserved.

GRAVITECH GROUP

XBee USB Adapter Board (#32400)

HDPM01. Description. Features. Applications

XRA1201/1201P 16-BIT I2C/SMBUS GPIO EXPANDER

XRA BIT I2C/SMBUS GPIO EXPANDER WITH INTEGRATED LEVEL SHIFTERS

MC3635 FEATURES GENERAL DESCRIPTION

DS2401 Silicon Serial Number

4515DO DESCRIPTION STANDARD RANGES(IN H20)

HMR3200/HMR3300 APPLICATIONS. Features. General Description. Block Diagram. Compassing & Navigation. Attitude Reference. Satellite Antenna Positioning

GENERAL DESCRIPTION FEATURES. Range, Sampling & Power ±2g range 6,7, or 8-bit resolution to 128 samples/sec 46 to 115 μa typical active current

Table of Contents 1 Typical Applications General Description Block Diagram Pinout System Connections Typical A

User-configurable Resolution. 9 to 12 bits (0.5 C to C)

TMR1202. General Description. TMR Bipolar Switch. Features and Benefits. Applications

Parallax WX ESP8266 Wi-Fi Modules

2-Wire, 5-Bit DAC with Three Digital Outputs

User-configurable Resolution. 9 to 12 bits (0.5 C to C)

CMPS03 - Compass Module

Digital Thermometer and Thermostat

IST8310 Datasheet, Version 1.2

SmartFan Fusion-4. Speed Control and Alarm for DC Fans CONTROL RESOURCES INCORPORATED. The driving force of motor control & electronics cooling.

ILI2303. ILI2303 Capacitive Touch Sensor Controller. Specification

USB-4303 Specifications

XS S ERIES TM PMB US TM O PTION C ARD

Temperature-Controlled, NV, I2C, Logarithmic Resistor DS1841

IST8307 Datasheet, Version 2.3

Specifications minilab 1008

GT24C256 2-WIRE. 256K Bits. Serial EEPROM

Figure 1 Typical Application Circuit

24C08/24C16. Two-Wire Serial EEPROM. Preliminary datasheet 8K (1024 X 8)/16K (2048 X 8) General Description. Pin Configuration

DIGITAL HUMIDITY SENSOR HYT-131

NHD 0216K3Z FL GBW. Serial Liquid Crystal Display Module

Propeller Board of Education (#32900)

ONYX-MM-XT PC/104 Format Counter/Timer & Digital I/O Module

IST8315 Brief Datasheet, Version 1.0

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5092 P-DIP-8-1

12-Bit Plus Sign Temperature Sensors with SMBus/I2C-Compatible Serial Interface

USB-1616FS. Analog Input and Digital I/O. Specifications

Embedded Systems and Software. Serial Interconnect Buses I 2 C (SMB) and SPI

AK-DS2482S-100. Reference manual. Copyright 2016 Artekit Italy All rights reserved

Transcription:

Web Site: www.parallax.com Forums: forums.parallax.com Sales: sales@parallax.com Technical: support@parallax.com Office: (916) 6248333 Fax: (916) 6248003 Sales: (888) 5121024 Tech Support: (888) 9978267 Compass Module 3Axis HMC5883L (#29133) The Compass Module 3Axis HMC5883L is a lowfield magnetic sensing device with a digital interface. The compass module converts any magnetic field to a differential voltage output on 3 axes. This voltage shift is the raw digital output value, which can then be used to calculate headings or sense magnetic fields coming from different directions. The module is designed for use with a large variety of microcontrollers with different voltage requirements. Features 3Axis magnetoresistive sensor 1 to 2 degree compass heading accuracy Wide magnetic field range (+/8 gauss) Fast 160 Hz maximum output rate Precision inaxis sensitivity and linearity Measures Earth s magnetic field, from milligauss to 8 gauss Key Specifications Power Requirements: 2.7 to 6.5 VDC Communication Interface: I²C (up to 400 khz) Operating temperature: 22 to +185 F (30 to +85 C) Dimensions: 0.73 x 0.65 in ( 1.9 x 1.7 cm) Application Ideas Auto and personal navigation UAV systems Robotic navigation Locationbased services (LBS) Resources and Downloads Check for the latest version of this document, free software, and example programs from the Compass Module 3Axis HMC5883L product page. Go to www.parallax.com and search for part number 29133. Copyright Parallax Inc. Compass Module 3Axis HMC5883L (#29133) v1.1 4/8/2015 Page 1 of 6

QuickStart Guide The following is a very basic procedure to get started initializing and reading values from the Compass Module. This module is equipped with 4.7 kω pullup resistors on the SDA line and a 2.2K resistor on the SCL line. There is no need for any external hardware to operate. The schematic is available from the 29133 product page at www.parallax.com. 1. With main power off, make the proper connections between the compass module and a microcontroller as shown above. The voltage connected to the VIN pin should be the same as the voltage powering the microcontroller communicating with the device. 2. Power on the device and load the BASIC Stamp or Propeller microcontroller sample code provided on the 29133 product page. Note: For other microcontrollers first, setup the module for continues output mode by writing (0x3C) 0x00 to the MODE register (0x02). Once running in continues mode set a pointer to OUTPUT_X_MSB by writing (0x3C) 0x03 to the device. Now the compass module will output raw data from OUTPUT_X_MSB OUTPUT_Y_LSB. The compass will automatically index through these registers; there is no need to set pointers for each of these registers. The last step would be to read from each of the six output registers, 8 bits of data per register. For more details on these modes and registers please see the datasheet on the 29133 product page at www.parallax.com. Precautions This module is VERY sensitive to ferrous material, metal objects, magnets and power supplies, etc. Any of these items in close range may affect performance. If you re experiencing adverse results, check your environment for anything that may influence magnetic fields. It is recommended to connect the unit with wires, keeping it away from a breadboard. Without tilt compensation the device will need to be level for accurate headings. For tilt compensation, you will need an accelerometer. See the application notes available on the 29133 product page for details on tilt compensation. Copyright Parallax Inc. Compass Module 3Axis HMC5883L (#29133) v1.1 4/8/2015 Page 2 of 6

Pin Descriptions Pin Name Type Function 1 GND G Ground 2 VIN P Supply Voltage 2.7 to 6.5 VDC (module is regulated to 2.5VDC) 3 DRDY I Data Ready, interrupt. (internally pulled high, see datasheet for details) 4 SCL I I²C Clock (Pulled high on module, Clock 160Hz Default) 5 SDA IO I²C Data (Pulled high on module) Module Dimensions Note: Dimensions listed are for PCB only. Size and placing of mounted components is subject to change. Copyright Parallax Inc. Compass Module 3Axis HMC5883L (#29133) v1.1 4/8/2015 Page 3 of 6

Device Information The following information is taken from the HMC5883L datasheet; please refer to it for complete details. It is available for download from the 29133 product page at www.parallax.com. Specifications Characteristics Conditions Min Typ Max Units Average Current Draw Field Range Idle Mode Measurement Mode Full Scale (FS) Total applied field (Typical) 2 100 µa 8 +8 gauss Mag Dynamic Range 3bit gain control ±1 ±8 gauss Resolution VDD=3.0V, GN=2 5 milligauss Linearity ±2.0 gauss input range 0.1 ±% FS Hysteresis ±2.0 gauss input range ±25 Ppm CrossAxis Sensitivity Output Rate (ODR) Measurement Period Test Conditions: Cross field =0.5 gauss, Happlied = ±3 gauss Continuous Measurement Mode Single Measurement Mode From receiving command to data ready ±0.2% %FS/gauss 0.75 75 160 Hz Hz 6 ms Turnon Time Ready for I²C commands 200 µs Gain Tolerance All gain/dynamic range settings ±5 % I²C Address 7bit address 8bit read address 8bit write address 0X1E 0X3D 0X3C I²C Rate Controlled by I²C Master 400 khz I²C Hysteresis Hysteresis of Schmitt trigger inputs on SCL & SDA Fall (VDDIO=1.8V) Rise (VDDIO=1.8V) 0.2*VDDIO 0.8*VDDIO hex hex hex Volts Volts Communication Protocol The compass module communicates via a twowire I²C bus system as a slave device. It supports standard and fast modes, 100 khz and 400 khz, but does not support a highspeed mode. No external pullup resistors are required to support these standard and fast speed modes (4.7 kω pullup resistors are built into module). *See page 8 in the datasheet for I²C communication details. Copyright Parallax Inc. Compass Module 3Axis HMC5883L (#29133) v1.1 4/8/2015 Page 4 of 6

Modes of Operation The Compass Module has several modes that can be accessed from the I²C bus, whose primary purpose is power management. All the modes are controlled by the Mode Register. The following section describing modes, was taken from the Honeywell HMC5883L datasheet. *See page 9 in the datasheet for more details. ContinuousMeasurement Mode During continuousmeasurement mode, the device continuously makes measurements, at user selectable rate, and places measured data in data output registers. All registers maintain values while in continuousmeasurement mode and I²C bus is enabled for use by other devices on the network. SingleMeasurement Mode This is the default powerup mode. During singlemeasurement mode, the device makes a single measurement and places the measured data in data output registers. All registers maintain values while in singlemeasurement mode. The I²C bus is enabled for use by other devices on the network while in singlemeasurement mode. Idle Mode During this mode the device is accessible through the I²C bus, but major sources of power consumption are disabled, such as, but not limited to, the ADC, the amplifier, and the sensor bias current. All registers maintain values while in idle mode. The I²C bus is enabled for use by other devices on the network while in idle mode. Register List This device is controlled and configured via a number of onchip registers, The table below lists the registers and their access. All address locations are 8 bits. For a detailed description of these registers please access the datasheet on our Product Page. Address Location Register Name Access 00 Configuration A Read/Write 01 Configuration B Read/Write 02 Mode Read/Write 03 Data Output X MSB Read 04 Data Output X LSB Read 05 Data Output Z MSB Read 06 Data Output Z LSB Read 07 Data Output Y MSB Read 08 Data Output Y LSB Read 09 Status Read 10 Identification A Read 11 Identification B Read 12 Identification C Read Copyright Parallax Inc. Compass Module 3Axis HMC5883L (#29133) v1.1 4/8/2015 Page 5 of 6

Example Code Example code is available for download from the 29133 product page at www.parallax.com. BASIC Stamp 2 The HMC5883L_demo.bs2 program reads raw X,Y,Z values from the Compass Module using the default I²C interface, and displays the values in the BASIC Stamp Editor s Debug Terminal. The software is a free download from www.parallax.com/basicstampsoftware. Propeller P8X32A The HMC5883L_demo.spin program reads raw X,Y,Z values from the Compass module using the default I²C interface, and displays the values in a serial terminal. This demo also shows the compass heading given by specifying a compass point (north, south, east, or west), a number of degrees, and then another compass point. For example, N23E is a heading. It calls FullDuplexSerial.spin, library object of the Propeller Tool software, which is available from www.parallax.com/propeller. The picture below is an example of this type of heading display. Revision History Version 1.1 Updated dimensions graphic with more accurate measurements of PCB size. Copyright Parallax Inc. Compass Module 3Axis HMC5883L (#29133) v1.1 4/8/2015 Page 6 of 6