Code Monkey home page Code Monkey logo

hmc6343's Introduction

HMC6343

AUTHOR: Nikolai Andre Ek Ovesen
EMAIL: [email protected]
GIT: https://github.com/n-ovesen/
Web: http://nikolaiovesen.com

Summary

Wrote a quick library to interface with the HMC6343 tilt compensated compass unit with an arduino,
even though this is not a complicated unit to interface with this simplifies the job further.

Getting Started

Hook it up to the i2c pins on your arduino (A4 and A5 or the dedicated pins on newer versions)

If you are using a 5v arduino as most people you should also throw in a 5v – 3v logic level converter to make sure you don’t get 150USD worth of blue smoke, unless that’s your thing of course.

Software

You need some way of compiling and uploading it to your arduino (DUH!)

Todo list:

- Make a function for calibration
- Make a function to set the orientation of the device (by default it should be placed flat)
- Make schematics to show how to wire the HMC6343 to the arduino

Found some bugs issues or some improvement?

Please do not hesitate to send me an email with the problem and what sort of arduino you are using and what you did to create the bug/problem.

And of course if you have some solution to something your solution will be marked with comments within the appropiate section of code :)

Licensing

HMC6343 – A library to interface an i2c compatible arduino with the HMC6343
Tilt compensated compass.
Copyright © 2013 Nikolai Andre Ek Ovesen
All rights reserved.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU General Public License
along with this library. If not, see <http://www.gnu.org/licenses/>.

hmc6343's People

Contributors

n-ovesen avatar paulstoffregen avatar

Watchers

Antony Ingram 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.