No description
Find a file
Limor Fried 7a6abc3ff3 Complete QMC5883P library implementation
- Add complete Control Register 1 & 2 functionality
- Add all setter/getter functions for mode, ODR, OSR, DSR, range, set/reset mode
- Add status register functions (isDataReady, isOverflow)
- Add data reading functions (getRawMagnetic, getGaussField)
- Add soft reset and self-test functions
- Add comprehensive test example with range cycling
- All functions tested and verified working with hardware
- Gauss conversion automatically adapts to current range setting
- Range cycling test demonstrates consistent Gauss values across all ranges

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-18 18:43:52 -04:00
.github/workflows Initial commit: Add basic QMC5883P library 2025-07-18 17:24:41 -04:00
examples/test_QMC5883P Complete QMC5883P library implementation 2025-07-18 18:43:52 -04:00
.clang-format Initial commit: Add basic QMC5883P library 2025-07-18 17:24:41 -04:00
.gitignore Initial commit: Add basic QMC5883P library 2025-07-18 17:24:41 -04:00
Adafruit_QMC5883P.cpp Complete QMC5883P library implementation 2025-07-18 18:43:52 -04:00
Adafruit_QMC5883P.h Complete QMC5883P library implementation 2025-07-18 18:43:52 -04:00
package-lock.json Initial commit: Add basic QMC5883P library 2025-07-18 17:24:41 -04:00
package.json Initial commit: Add basic QMC5883P library 2025-07-18 17:24:41 -04:00
QMC5883P.pdf:Zone.Identifier Initial commit: Add basic QMC5883P library 2025-07-18 17:24:41 -04:00
README.md Initial commit: Add basic QMC5883P library 2025-07-18 17:24:41 -04:00

Adafruit QMC5883P Library Build Status


This is a library for the QMC5883P 3-axis magnetometer

Features

  • 3-axis magnetic field sensing
  • 16-bit resolution
  • I2C interface
  • Multiple full-scale ranges (±2G, ±8G, ±12G, ±30G)
  • Built-in self-test capability
  • Temperature compensation

Installation

To install, use the Arduino Library Manager and search for "Adafruit QMC5883P" and install the library.

Dependencies

This library depends on the Adafruit BusIO library

Hardware

The QMC5883P is a 3-axis magnetometer with I2C interface. It requires a 3.3V or 5V power supply.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

License

MIT license, all text above must be included in any redistribution. See license.txt for more information.