Give your robot a sense of direction with the GY-271 3-Axis Digital Compass Module, available now at the best price in Bangladesh from ElectraPac. This compact magnetometer measures the Earth's magnetic field in three dimensions, allowing your project to calculate its exact heading relative to Magnetic North. It is the essential "inner compass" for Dhaka’s drone builders, autonomous boat makers, and mobile robot enthusiasts. Read more
The GY-271 3-Axis Digital Compass (Magnetometer) is a high-precision sensor designed to detect the Earth's magnetic field. At Electrapac, we recommend this module for robotics enthusiasts and drone builders in Bangladesh who need to give their projects "directional awareness"—allowing a robot to know exactly which way is North.
Product OverviewThe GY-271 module is typically based on the QMC5883L (an upgraded version of the classic HMC5883L). It uses anisotropic magnetoresistive (AMR) technology to measure magnetic fields across three axes ( and ). By processing these three values, your microcontroller can calculate a "Heading" in degrees, acting just like a traditional needle compass but with digital precision.
3-Axis Sensing: Measures magnetic force in all directions, allowing your device to maintain a heading even if it is tilted or moving up an incline.
Built-in Voltage Regulator: Features an on-board LDO, making it safe to power directly from an Arduino's 5V pin or a 3.3V Raspberry Pi pin.
Low Power Consumption: Its tiny current draw makes it ideal for battery-powered navigation systems and handheld devices.
I2C Communication: Uses only two wires (SDA and SCL) for data, leaving plenty of pins free on your Arduino for motors and other sensors.
High Resolution: Capable of detecting minute changes in magnetic fields, which is essential for smooth, jitter-free navigation in autonomous rovers.
To get an accurate "North" reading from your Electrapac Compass module, follow these steps:
VCC: Connect to 5V or 3.3V.
GND: Connect to Ground.
SCL/SDA: Connect to the I2C pins (A5/A4 on Arduino Uno).
Calibration is Mandatory: Magnetic sensors are sensitive to "Hard Iron" (nearby metal) and "Soft Iron" (electronic interference). You must run a calibration sketch (rotating the sensor in a figure-8) to offset these errors before the compass will point accurately.
Primary ApplicationsPro-Tip: Keep the GY-271 away from high-current wires and DC motors. The magnetic field generated by a spinning motor will "confuse" the sensor and cause your robot to drive in circles!
Autonomous Robots: Providing a steady heading for rovers so they can travel in a straight line.
Drone Navigation: Helping quadcopters maintain orientation and return to a "Home" location.
Smart Binoculars: Displaying the current viewing direction on an internal screen.
Weather Stations: Determining wind direction when paired with a mechanical vane.
Handheld Digital Compasses: Building custom navigation tools for hiking or geography projects.
We source our GY-271 Magnetometers with high-quality pull-up resistors and clean soldering to ensure stable I2C communication. Visit us at www.electrapac.com for the navigation sensors that keep your autonomous projects on the right track.
| Specifications | Descriptions |
|---|---|
| Sensor Model | HMC5883L GY271 3Axis Sensor |
| IC Model | QMC5883L / HMC5883L |
| Interface | I2C (Standard Serial Interface) |
| Operating Voltage | 3.3V to 5V DC (On-board regulator) |
| Measuring Range | ±1.3 to 8 Gauss |
| Heading Accuracy | 1° to 2° |
| Output Rate | Up to 160Hz |
| Dimensions | ~14mm x 13mm |
| Package | 1 x 1 HMC5883L GY271 3Axis Sensor Module |
Subscribe to our newsletter and get early access to new arrivals, tech trends, and exclusive unboxing reviews from Electrapac.?