Compass QMC5883/GY-271(I2C): Difference between revisions
Jump to navigation
Jump to search
Created page with "Image:TArduinoQMC5883GY271CompassI2C.png == Summary == QMC5883/GY-271 3-axis digital compass with I²C interface for measuring magnetic fields in milligauss (mG) and optional onboard thermometer. == Description == The **QMC5883/GY-271 Compass** measures X, Y, and Z components of the magnetic field with high resolution. It supports configurable full-scale range, oversampling ratio, and sample rate. An optional onboard thermometer can report temperature in Cels..." |
(No difference)
|
Latest revision as of 09:09, 8 September 2025
File:TArduinoQMC5883GY271CompassI2C.png
Summary
QMC5883/GY-271 3-axis digital compass with I²C interface for measuring magnetic fields in milligauss (mG) and optional onboard thermometer.
Description
The **QMC5883/GY-271 Compass** measures X, Y, and Z components of the magnetic field with high resolution. It supports configurable full-scale range, oversampling ratio, and sample rate. An optional onboard thermometer can report temperature in Celsius or Fahrenheit, with an adjustable offset. The sensor communicates via I²C and provides an overflow digital output for out-of-range measurements.
Diagram:
Properties
- Enabled – Enables or disables the sensor.
- Full Scale Range (Gauss) – Measurement range (default 2 Gauss).
- Over Sample Ratio – Oversampling rate (default 64).
- Sample Rate (Hz) – Frequency of measurements (default 200 Hz).
- Thermometer – Onboard temperature sensor:
- Enabled (boolean)
- In Fahrenheit (boolean)
- Offset (default 37)
- Address – I²C device address.
Pins
Input Pins
- Reset (clock) – Resets the sensor.
- Clock – Sampling clock input.
Output Pins
- X (mG) – X-axis magnetic field in milligauss.
- Y (mG) – Y-axis magnetic field in milligauss.
- Z (mG) – Z-axis magnetic field in milligauss.
- Thermometer Out (analog) – Temperature output from onboard thermometer.
- Out (i2c) – I²C communication interface.
- Overflow (digital) – High when magnetic measurement exceeds range.
Categories
- File:TArduinoDigitalCategory.png Category Digital – Digital sensor components.
- File:TArduinoI2CCategory.png Category I2C – I²C-enabled devices.
- File:TArduinoSensorCategory.png Category Sensors – Magnetic and orientation sensors.