Sen descrición

Lesords 179a2bff4e ci: add an action to automatically close stale issues and PRs hai 1 ano
.github 179a2bff4e ci: add an action to automatically close stale issues and PRs hai 1 ano
examples de221d7360 Update: print xyHeading and zxHeading %!s(int64=3) %!d(string=hai) anos
img bd2d29dbf4 update readme %!s(int64=7) %!d(string=hai) anos
.gitattributes 21d0d9bfeb Added .gitattributes %!s(int64=7) %!d(string=hai) anos
.gitignore 00acb21071 Added .gitignore %!s(int64=7) %!d(string=hai) anos
.gitlab-ci.yml b789efbeb7 Seeed:Arduino: fix travis.yml write error %!s(int64=5) %!d(string=hai) anos
.travis.yml b789efbeb7 Seeed:Arduino: fix travis.yml write error %!s(int64=5) %!d(string=hai) anos
LICENSE.txt 5ef7849bbb Added LICENSE.txt %!s(int64=8) %!d(string=hai) anos
README.md 2c14b4f841 Seeed:Arduino: Add travis build status %!s(int64=6) %!d(string=hai) anos
bmm150.cpp 457ac66e0c Pretty printed the Arduino code with astyle %!s(int64=6) %!d(string=hai) anos
bmm150.h 457ac66e0c Pretty printed the Arduino code with astyle %!s(int64=6) %!d(string=hai) anos
bmm150_defs.h 457ac66e0c Pretty printed the Arduino code with astyle %!s(int64=6) %!d(string=hai) anos
keywords.txt 78aebdb7b5 Added keywords.txt %!s(int64=7) %!d(string=hai) anos
library.properties a5e6a448ca Added library.properties %!s(int64=7) %!d(string=hai) anos

README.md

Grove_3_Axis_Compass_V2.0(BMM150) Build Status

This is Arduino library for Bosch BMM150 a Geomagnetic Sensor IC.

Grove - 3-Axis Digital Compass V2

The Grove - 3-Axis Digital Compass V2 is a digital compass sensor based on Bosch BMM150. It allows measurement of the magnatic field in three perpendicular axes and the output can be read out over I2C interface, perfectly suitable for 3-Axis mobile applications.

Key features

IC Name Interface Votage Range VDDIO Range Magnetic Range Magnetic Resolution Output Degree
BMM150 I2C 3.3V ~ 5.0V 1.2V ~ 3.6V ±1300µT(x,y), ±2500μT(z) ~0.3μT 0º ~ 360º

Usage

Basic example

  1. Taking an Arduino board, connect Grove_3_Axis_Compass_V2.0(BBM150) to the I2C port.
  2. Open example/compass/compass.ino.
  3. Compile and upload sketch.
  4. Open Arduino serial monitor.
  5. Heading value is in range of 0º ~ 360º, this value is for Y axis, 0º means Y axis points at North, 90º means Y axis points at West, 180º means Y axis points at South, 270º means Y points at East.

Example use figure-8 calibration

  1. Open example/figure8_calibration/figure8_calibration.ino.
  2. Compile and upload sketch.
  3. Open Arduino serial monitor.
    Figure-8 Calibration, the figure-8 calibration is an easy way to get offset values for x/y/z axis.

  4. Do figure-8 calibration in 10 seconds while serial monitor echo dot symbol. The calibration period can be changed through the parameter timeout in calibrate(uint16_t timeout).

For more infomation refer to [wiki page]().


This software is written by Lambor for Seeed Studio and is licensed under The MIT License. Check License.txt for more information.

Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.

Seeed is a hardware innovation platform for makers to grow inspirations into differentiating products. By working closely with technology providers of all scale, Seeed provides accessible technologies with quality, speed and supply chain knowledge. When prototypes are ready to iterate, Seeed helps productize 1 to 1,000 pcs using in-house engineering, supply chain management and agile manufacture forces. Seeed also team up with incubators, Chinese tech ecosystem, investors and distribution channels to portal Maker startups beyond.

Analytics