Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›Magnetometers and 9-Axis IMUs

Component guide · Intermediate · 3 min read

Magnetometers and 9-Axis IMUs

BNO055, BNO085, MMC5603 and Compass Calibration

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerOptionsCompass calibrationHeading, tilt and declinationWiring and useTry itCommon mistakesFAQsParts and next steps
Short answer

A 9-axis IMU adds a magnetometer to a gyroscope and accelerometer so it can give a stable heading as well as roll and pitch. Sensors such as the BNO055 and BNO085 do the sensor fusion on the chip and output orientation directly. A bare magnetometer gives raw field values that you must calibrate for hard-iron and soft-iron errors before using it as a compass.

Key specs at a glance

Fusion chips
BNO055, BNO085/BNO086 output orientation and quaternions
Raw magnetometers
MMC5603, BMM150, TMAG5273 (3D Hall)
Interface
I2C, SPI or UART
Supply
3.3 V; Qwiic and STEMMA QT boards
Industrial AHRS
Serial or RS485 9-axis modules
Output
Euler angles, quaternion, raw data
01

Options

Pick between a fusion sensor and raw parts.

SensorOutputNotes
BNO055Fused Euler angles and quaternionEasy to use; occasionally needs recalibration
BNO085 / BNO086Fused rotation vector, gesture, step counterBetter fusion; more complex I2C/SPI protocol
MMC5603 / BMM150Raw magnetic fieldYou write the fusion and calibration
TMAG52733D Hall field, wide rangeGreat for magnet position, not a compass
Industrial AHRS (BWSENSING AH50, DMC630)Attitude and heading over serialFor vehicles and equipment
MPU9250-class boardsRaw 9-axis dataCheck availability; the MPU6050 has no magnetometer
BNO055
Output:
Fused Euler angles and quaternion
Notes:
Easy to use; occasionally needs recalibration
BNO085 / BNO086
Output:
Fused rotation vector, gesture, step counter
Notes:
Better fusion; more complex I2C/SPI protocol
MMC5603 / BMM150
Output:
Raw magnetic field
Notes:
You write the fusion and calibration
TMAG5273
Output:
3D Hall field, wide range
Notes:
Great for magnet position, not a compass
Industrial AHRS (BWSENSING AH50, DMC630)
Output:
Attitude and heading over serial
Notes:
For vehicles and equipment
MPU9250-class boards
Output:
Raw 9-axis data
Notes:
Check availability; the MPU6050 has no magnetometer
02

Compass calibration

Metal and magnets near the sensor bend the field. Hard-iron errors shift the whole reading, and soft-iron errors stretch it. To calibrate, rotate the board slowly through all orientations while logging the field. The ideal data forms a sphere centred on zero; subtract the centre offset and scale the axes to correct. Many libraries and BNO chips include calibration routines and status flags.

03

Heading, tilt and declination

A magnetometer finds magnetic north. Tilt compensation uses the accelerometer so the heading stays right when the board is not level. Add the local magnetic declination to get true north; in India this is only a few degrees. Keep the sensor away from motors, speakers, power wires and batteries. For vehicles and drones see GPS and compass.

04

Wiring and use

  1. 1
    Connect 3.3 V, GND, SDA and SCL; see I2C.
  2. 2
    Check the address with an I2C scanner.
  3. 3
    Install the vendor library and read orientation.
  4. 4
    Place the sensor far from motors and power cables.
  5. 5
    Calibrate in the final location, then save the offsets.
  6. 6
    Compare with a phone compass to check the direction.
05

Try it: Angle converter calculator

Change the values and the diagram and results update as you type.

06

Common mistakes to avoid

  • !Calibrating the sensor outside the enclosure it will live in.
  • !Mounting next to motors or speakers.
  • !Using true north without declination.
  • !Assuming the MPU6050 has a magnetometer.
  • !Not waiting for the BNO calibration status to reach full.
07

Frequently asked questions

Do I need a magnetometer?

Only for heading. Roll and pitch work with an accelerometer and gyroscope.

BNO055 or BNO085?

BNO055 is simpler and cheaper. BNO085 has better fusion and extra features.

Why does my compass drift?

Nearby metal, electric currents and temperature all affect it.

What is sensor fusion?

Combining sensor data to get a stable orientation.

Can a magnetometer work indoors?

Yes, but steel and wiring distort the field.

Parts for this guide

  • Adafruit BNO055 9-DOF Absolute Orientation IMU Fusion Breakout – STEMMA QT / Qwiic
    ₹4,595View
  • BNO085 IMU Sensor Module – I2C/SPI/UART Interface
    ₹2,209View
  • Adafruit MMC5603 Triple-Axis Magnetometer Sensor – I2C/SPI Interface, STEMMA QT
    ₹1,009View
  • Adafruit TMAG5273 (A2) 3D Hall Effect Magnetometer – ±133mT / 266mT – STEMMA QT
    ₹939View
  • BWSENSING AH50 AHRS Sensor, 9-Axis MEMS Attitude & Heading Reference System, IMU, RS485
    ₹13,262View
Shop Accelerometers, Gyroscopes & IMUs

Calculators

Angle converter calculator

Terms in this guide

Hard-iron and soft-iron errorDistortions of a compass reading. Hard-iron comes from nearby magnets and currents; soft-iron comes from iron that bends the magnetic field. Calibration removes most of both.Sensor fusionCombining accelerometer, gyroscope and magnetometer data to get a stable orientation that is better than any single sensor.AHRSAttitude and heading reference system: an IMU with fusion software that outputs roll, pitch and heading.IMUInertial measurement unit: a combined accelerometer and gyroscope, sometimes with a magnetometer.GyroscopeA sensor that measures rotation rate, in degrees per second.

Projects that use it

Put this into practice: 1 step-by-step build in our project library uses parts from this guide.

Intermediate · 3 hoursBike trip computer with GNSS speed and a crash alertView project
Browse all 1 project

Keep learning

Component guideIntermediateMPU6050 Accelerometer and GyroscopeThe MPU6050 is a 6-axis motion sensor that combines a 3-axis accelerometer and a 3-axis gyroscope on one chip and talks over I2C at address 0x68.3 min read · SensorsComparisonIntermediateAccelerometersAn accelerometer measures acceleration along three axes, which lets you detect tilt, taps, free fall and vibration.3 min read · SensorsConcept explainerIntermediateI2C ExplainedI2C is a two-wire bus that lets one microcontroller talk to many sensors and displays using a data line (SDA) and a clock line (SCL).4 min read · Electronics FundamentalsHow-toIntermediateDrone GPS, Compass and RTK ModulesA GPS and compass module lets a drone hold position and return home.3 min read · Drones & FPVComponent guideBeginnerHall Effect Sensors and Reed SwitchesA Hall effect sensor detects a magnetic field with no contact.3 min read · SensorsComponent guideBeginnerVibration, Shock and Tilt Sensors (SW-420, SW-520D)Vibration and tilt sensors are simple switches that close or open when shaken or tilted.3 min read · Sensors

Sources

  • Bosch BNO055, CEVA BNO08x and Memsic MMC5603 documentation

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerOptionsCompass calibrationHeading, tilt and declinationWiring and useTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide5 items · ₹22,014

Adafruit BNO055 9-DOF Absolute Orientation IMU Fusion Breakout – STEMMA QT / Qwiic · BNO085 IMU Sensor Module – I2C/SPI/UART Interface · Adafruit MMC5603 Triple-Axis Magnetometer Sensor – I2C/SPI Interface, STEMMA QT · Adafruit TMAG5273 (A2) 3D Hall Effect Magnetometer – ±133mT / 266mT – STEMMA QT · BWSENSING AH50 AHRS Sensor, 9-Axis MEMS Attitude & Heading Reference System, IMU, RS485

Ask the Community

Ask a question