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. ›Magnetic Angle Encoders

Component guide · Intermediate · 4 min read

Magnetic Angle Encoders

AS5600 12-bit Module and Grove AS5600, MT6701 and MT6816 (XJX-134, XJX-135), MT6835 21-bit SPI, Infineon TLI5012B, TE KMT39 AMR and OE-28 and OE-37 Hall Motor Encoders

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the Magnetic angle encoders: AS5600, MT6701, MT6816, MT6835, TLI5012B, KMT39 and OE-28/OE-37 isMagnetic angle encoders: AS5600, MT6701, MT6816, MT6835, TLI5012B, KMT39 and OE-28/OE-37 pinoutWiring the Magnetic angle encoders: AS5600, MT6701, MT6816, MT6835, TLI5012B, KMT39 and OE-28/OE-37Example codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

A magnetic encoder reads the angle of a small diametric magnet spun above the chip, so it is contactless and does not wear. AS5600 gives 12 bits over I2C, analog or PWM and is the easy start. MT6701 and MT6816 add SSI and ABZ outputs, and MT6835 gives 21 bits for gimbal and FOC motor control. OE-28 and OE-37 are Hall A/B encoders for gear motors.

Key specs at a glance

AS5600
12-bit, I2C 0x36, analog or PWM out
MT6701 / MT6816
14-bit, I2C/SSI, ABZ and PWM
MT6835
21-bit, SPI, ABZ and UVW
TLI5012B
15-bit GMR, SSC/SPI
KMT39
AMR, analog bridge output, ±0.2°
Magnet
Diametric, 4-6mm, 0.5-3mm air gap

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1AS5600 Magnetic Encoder Sensor Module – 12-bit, I2C/PWM/Analog Output₹144
  • Option 2Seeed Studio Grove AS5600 12-bit Magnetic Rotary Position Sensor – I2C/PWM/Analog Output₹749
  • Option 3MT6835 Magnetic Encoder Module PWM/SPI Brushless Motor 21BIT Encoder with 4x2mm Magnet₹729
  • Option 4MagnTek MT6835 Magnetic Encoder Module PWM/SPI 21BIT Absolute Angle Sensor with Magnet – ABZ/UVW Output₹619
  • Option 5MagnTek MT6835 Magnetic Encoder Module – 21BIT Absolute AMR Encoder with SPI/PWM/ABZ/UVW Outputs₹729
  • Option 6XJX-134 MT6701 Magnetic Rotary Encoder Module – IIC/ABZ/PWM/SSI₹249
01

What the Magnetic angle encoders: AS5600, MT6701, MT6816, MT6835, TLI5012B, KMT39 and OE-28/OE-37 is

Magnetic angle encoders such as the AS5600 (12-bit) and MT6835 (21-bit) read the angle of a diametric magnet on a shaft without contact, for motors, knobs and robot joints.

Use them for FOC brushless gimbal motors (SimpleFOC supports AS5600, MT6701 and MT6835), robot joints, knobs that never wear out and steering angle. Glue a diametrically magnetised magnet to the end of the shaft, centred over the chip, with the gap from the data sheet.

AS5600 runs on 3.3V or 5V; set the DIR pin for the rotation direction you want. The OE-28 and OE-37 boards fit motor shafts and give two-channel pulses, so read them like any incremental encoder.

02

Magnetic angle encoders: AS5600, MT6701, MT6816, MT6835, TLI5012B, KMT39 and OE-28/OE-37 pinout

The pins on the Magnetic angle encoders: AS5600, MT6701, MT6816, MT6835, TLI5012B, KMT39 and OE-28/OE-37 and what each one does.

PinFunction
VCC3.3V or 5V by board
GNDGround
SDA / SCLI2C (AS5600, MT6701)
CS / SCK / MISO / MOSISPI (MT6835, TLI5012B 3-wire)
OUT / A / B / ZAnalog, PWM or ABZ outputs
DIRDirection select on AS5600
PinFunction
VCC
3.3V or 5V by board
GND
Ground
SDA / SCL
I2C (AS5600, MT6701)
CS / SCK / MISO / MOSI
SPI (MT6835, TLI5012B 3-wire)
OUT / A / B / Z
Analog, PWM or ABZ outputs
DIR
Direction select on AS5600
03

Wiring the Magnetic angle encoders: AS5600, MT6701, MT6816, MT6835, TLI5012B, KMT39 and OE-28/OE-37

Centre the magnet within about 0.25mm of the chip axis for best accuracy.

Magnetic angle encoders: AS5600, MT6701, MT6816, MT6835, TLI5012B, KMT39 and OE-28/OE-37 pinConnectionNote
VCC3.3VESP32 3V3
GNDGNDCommon
SDAGPIO21I2C
SCLGPIO22I2C
DIRGNDClockwise increases
VCC
Connection:
3.3V
Note:
ESP32 3V3
GND
Connection:
GND
Note:
Common
SDA
Connection:
GPIO21
Note:
I2C
SCL
Connection:
GPIO22
Note:
I2C
DIR
Connection:
GND
Note:
Clockwise increases
04

Example code

Register 0x0B (STATUS) tells you if the magnet is too weak, too strong or missing.

Read AS5600 angle over I2C (ESP32) · Arduino C++Verify & upload in Electrolark
#include <Wire.h>

const uint8_t AS5600 = 0x36;

uint16_t readAngle() {
  Wire.beginTransmission(AS5600);
  Wire.write(0x0E);                 // ANGLE register (high byte)
  Wire.endTransmission(false);
  Wire.requestFrom(AS5600, (uint8_t)2);
  uint16_t hi = Wire.read(), lo = Wire.read();
  return ((hi << 8) | lo) & 0x0FFF;
}

void setup() { Serial.begin(115200); Wire.begin(21, 22); }

void loop() {
  Serial.println(readAngle() * 360.0 / 4096.0, 2);
  delay(50);
}
05

Setup and tuning

Magnet

use a diametrically magnetised magnet centred over the chip at 0.5 to 3 mm.

Wiring

AS5600 uses I2C or analog/PWM output; MT6835 uses SPI for high speed.

Supply

3.3 V or 5 V depending on the board.

Zero

set the zero position in code or the chip's settings.

Alignment

keep the magnet centred; offset causes errors.

06

What you need

Shop this list14 of 14 found in our store · ₹5,620

  • Generic AS5600 Magnetic Encoder Sensor Module – 12-bit, I2C/PWM/Analog Output: the part this guide coversAS5600 Magnetic Encoder Sensor Module – 12-bit, I2C/PWM/Analog Output₹144
  • Seeed Studio Studio Grove AS5600 12-bit Magnetic Rotary Position Sensor – I2C/PWM/Analog Output: another version this guide coversSeeed Studio Grove AS5600 12-bit Magnetic Rotary Position Sensor – I2C/PWM/Analog Output₹749
  • MT6835 Magnetic Encoder Module PWM/SPI Brushless Motor 21BIT Encoder with 4x2mm Magnet: another version this guide coversMT6835 Magnetic Encoder Module PWM/SPI Brushless Motor 21BIT Encoder with 4x2mm Magnet₹729
  • MagnTek MT6835 Magnetic Encoder Module PWM/SPI 21BIT Absolute Angle Sensor with Magnet – ABZ/UVW Output: another version this guide coversMagnTek MT6835 Magnetic Encoder Module PWM/SPI 21BIT Absolute Angle Sensor with Magnet – ABZ/UVW Output₹619
  • MagnTek MT6835 Magnetic Encoder Module – 21BIT Absolute AMR Encoder with SPI/PWM/ABZ/UVW Outputs: another version this guide coversMagnTek MT6835 Magnetic Encoder Module – 21BIT Absolute AMR Encoder with SPI/PWM/ABZ/UVW Outputs₹729
  • Generic XJX-134 MT6701 Magnetic Rotary Encoder Module – IIC/ABZ/PWM/SSI: another version this guide coversXJX-134 MT6701 Magnetic Rotary Encoder Module – IIC/ABZ/PWM/SSI₹249
  • Generic XJX-135 MT6816 Magnetic Rotary Encoder Module – I2C/ABZ/PWM/SSI, 256 PPR: another version this guide coversXJX-135 MT6816 Magnetic Rotary Encoder Module – I2C/ABZ/PWM/SSI, 256 PPR₹339
  • Infineon Technologies Technologies TLI5012BE1000 DSO-8 Magnetic Angle Sensor: another version this guide coversInfineon Technologies TLI5012BE1000 DSO-8 Magnetic Angle Sensor₹219Closest match, check the specs
  • TE Connectivity KMT39 Magnetic Angle Sensor, AMR, 10~12.5 mV/V Output, ±0.2° Accuracy, 5V Supply, -40°C to +150°C: another version this guide coversTE Connectivity KMT39 Magnetic Angle Sensor, AMR, 10~12.5 mV/V Output, ±0.2° Accuracy, 5V Supply, -40°C to +150°C₹439
  • OE-28 Hall Effect Two Channel Magnetic Encoder – Plastic Case, Magnet & Cable: another version this guide coversOE-28 Hall Effect Two Channel Magnetic Encoder – Plastic Case, Magnet & Cable₹449
  • OE-37 Hall Effect Two Channel Magnetic Encoder – Module w/ Mounting Hardware: another version this guide coversOE-37 Hall Effect Two Channel Magnetic Encoder – Module w/ Mounting Hardware₹449
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
  • Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
  • Solderless breadboard: to build without solderingSolderless Breadboard₹68
07

Alternatives and when to choose them

  • ✓Hall effect sensor ICs: switches and linear Hall.
  • ✓Absolute industrial encoders: sealed industrial units.
  • ✓Motor encoders: gear motor feedback.
08

Common mistakes to avoid

  • !Using an axially magnetised magnet.
  • !Magnet off centre.
  • !Magnet too far away.
  • !Ignoring the AS5600 direction pin.
09

Frequently asked questions

What magnet do I need for an AS5600?

A diametrically magnetised disc magnet, often 6 mm across.

How far should the magnet be?

About 0.5 to 3 mm above the chip, centred.

What resolution does the AS5600 give?

12 bits, which is 4096 steps per turn, or about 0.09° per step.

Why use the MT6835 instead?

It has 21-bit resolution and fast SPI for precise motor control.

Why are the readings noisy?

The magnet is off centre, too far, or vibrating.

Parts for this guide

  • AS5600 Magnetic Encoder Sensor Module – 12-bit, I2C/PWM/Analog Output
    ₹144View
  • Seeed Studio Grove AS5600 12-bit Magnetic Rotary Position Sensor – I2C/PWM/Analog Output
    ₹749View
  • MT6835 Magnetic Encoder Module PWM/SPI Brushless Motor 21BIT Encoder with 4x2mm Magnet
    ₹729View
  • MagnTek MT6835 Magnetic Encoder Module PWM/SPI 21BIT Absolute Angle Sensor with Magnet – ABZ/UVW Output
    ₹619View
  • MagnTek MT6835 Magnetic Encoder Module – 21BIT Absolute AMR Encoder with SPI/PWM/ABZ/UVW Outputs
    ₹729View
  • XJX-134 MT6701 Magnetic Rotary Encoder Module – IIC/ABZ/PWM/SSI
    ₹249View
  • XJX-135 MT6816 Magnetic Rotary Encoder Module – I2C/ABZ/PWM/SSI, 256 PPR
    ₹339View
  • Infineon Technologies TLI5012BE1000 DSO-8 Magnetic Angle Sensor
    ₹219View
  • TE Connectivity KMT39 Magnetic Angle Sensor, AMR, 10~12.5 mV/V Output, ±0.2° Accuracy, 5V Supply, -40°C to +150°C
    ₹439View
  • OE-28 Hall Effect Two Channel Magnetic Encoder – Plastic Case, Magnet & Cable
    ₹449View
  • OE-37 Hall Effect Two Channel Magnetic Encoder – Module w/ Mounting Hardware
    ₹449View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
  • Solderless Breadboard
    ₹68View
Shop Encoders & Rotary Position Sensors

Projects that use it

Put this into practice: 9 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourValve and gate angle indicatorView projectBeginner · 1 hourWind vane direction meterView projectBeginner · 1 hourWindow and door opening angle meterView project
Browse all 9 projects

Keep learning

ComparisonIntermediateOptical, Magnetic and Absolute Rotary EncodersAn incremental encoder gives pulses and counts movement from a start point.3 min read · SensorsComponent guideAdvancedHall Effect Sensor ICsChoose a Hall sensor IC: Honeywell linear (SS49E, SS495A), unipolar (SS441A), bipolar (SS41), latching (SS360) and omnipolar (SL353, SM351LT) parts.9 min read · SensorsConcept explainerIntermediateMotor Encoders and Speed FeedbackA motor encoder reports how far and how fast a shaft has turned.3 min read · Motors & Motion

Sources

  • ams AS5600 data sheet
  • MagnTek MT6701, MT6816, MT6835 data sheets
  • Infineon TLI5012B data sheet

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

On this page
Short answerWhat the Magnetic angle encoders: AS5600, MT6701, MT6816, MT6835, TLI5012B, KMT39 and OE-28/OE-37 isMagnetic angle encoders: AS5600, MT6701, MT6816, MT6835, TLI5012B, KMT39 and OE-28/OE-37 pinoutWiring the Magnetic angle encoders: AS5600, MT6701, MT6816, MT6835, TLI5012B, KMT39 and OE-28/OE-37Example codeSetup and tuningWhat you needAlternatives and when to choose themCommon 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 guide7 items · ₹2,277

AS5600 Magnetic Encoder Sensor Module – 12-bit, I2C/PWM/Analog Output · XJX-135 MT6816 Magnetic Rotary Encoder Module – I2C/ABZ/PWM/SSI, 256 PPR · TE Connectivity KMT39 Magnetic Angle Sensor, AMR, 10~12.5 mV/V Output, ±0.2° Accuracy, 5V Supply, -40°C to +150°C · OE-28 Hall Effect Two Channel Magnetic Encoder – Plastic Case, Magnet & Cable · OE-37 Hall Effect Two Channel Magnetic Encoder – Module w/ Mounting Hardware · ESP32-WROOM-32 38-Pin Development Board · Solderless Breadboard

Run itChange the inputs and watch the output

12 bits: 4096 steps per turn, about 0.09° each.

Magnet 1404 / 4096
Serial monitor115200 baud
123.40

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question