Giter Site home page Giter Site logo

mmc5883ma-arduino-library's Introduction

version license release open source

MMC5883MA Arduino Library

For use with the Duinotech 3 Axis Compass Magnetometer Module

I'm not sure who the author of this code is. Let me know and I will include attribution.

The Duinotech 3-Axis Compass Magnetometer Module (Part Number: XC-4496) can be purchased from Jaycar Electronics. Unfortunately, the module comes with no instructions and very brief specifications:

  • Operating Voltage: 5VDC (or 3.3 VDC)
  • Resolution: 12 bits
  • Interface: I2C
  • Includes: 5V to 3.3V level shifter (so you can operate it from 5 VDC)
  • Dimensions: 20(L) x 16(W) x 5(H) mm

There are two versions of this board which use different chips.

The QMC5883L Sensor

The QMC5883L is a multi-chip three-axis magnetic sensor. It is based on technology licensed from Honeywell AMR (Anisotropic Magnetoresistive) technology.

The MMC5883MA Sensor

The MMC5883MA is a 3-axis magnetic sensor with on-chip signal processing and integrated I2C bus.

I2C Address

Since you can have multiple devices connected via I2C, all devices have a unique address. The Honeywell HMC5883L uses the following I2C address:

  • 7-bit Address: 0x1E (A 7-bit I2C address includes the 7-bit slave address in the first 7 bits of the byte. The eighth bit (the bit in the Least Significant Bit — LSB — position) is the read/write flag. A 0 in the eighth bit indicates a write and a 1 in the eighth bit signifies a read — Figure 3).

The QST QMC5883L uses:

  • 7-bit address: 0x0D

The Memsic MMC5883MA uses:

  • 7-bit address: 0x30

All devices support standard and fast I2C speed modes (i.e., 100kHz and 400kHz). Arduino boards use the Wire library to communicate with I2C devices. The Wire library expects you to use the 7 bit address. Valid addresses are between 8 and 127, the addresses between 0 and 7 are reserved.

A full description of the board types and appropriate Arduino Libraries is available at my Medium article: Connecting the Duinotech 3-Axis Compass to an Arduino.

mmc5883ma-arduino-library's People

Contributors

reefwing avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.