Back to Projects
Software
KiCadPCB DesignEncoderAS5047POdometry

Part of KUdos Custom Electronics Stack

KUdos Magnetic Encoder

A custom quadrature magnetic encoder PCB using the AS5047P for high-resolution odometry on VEX-U robots.

Project Overview

This is a custom magnetic encoder board I designed for the KUdos VEX-U robot odometry system. The board uses an AS5047P magnetic rotary position sensor configured for quadrature output, providing high-resolution position feedback for the Pinpoint odometry computer.

Role: PCB designer

Tools: KiCad, JLCPCB

KUdos Magnetic Encoder PCB 3D render


Why Custom Encoders?

The goBILDA Pinpoint odometry computer expects standard quadrature encoder inputs. Rather than using off-the-shelf optical encoders, we designed a magnetic encoder that:

  • Has no moving parts to wear out
  • Is immune to dust and debris
  • Provides 4096 counts per revolution (14-bit resolution)
  • Works with any shaft that can hold a diametric magnet

Schematic

KUdos Magnetic Encoder Schematic


Design Details

AS5047P Configuration

The AS5047P-ATSM is a 14-bit magnetic rotary position sensor from AMS. It supports multiple output modes:

  • SPI (digital)
  • ABI (quadrature encoder)
  • UVW (brushless motor commutation)
  • PWM

For this design, we use ABI mode (quadrature output) by disabling SPI:

PinConnectionPurpose
CSnPulled high (10k to VIN)Disable SPI mode
CLK, MISO, MOSIPulled low (10k to GND)Disable SPI interface
TESTGNDNormal operation
A, BOutput connectorQuadrature signals

With SPI disabled, the chip automatically outputs quadrature on the A/B pins.

Output Connector

4-pin connector (J1) with standard encoder pinout:

PinSignal
1GND
2VIN (3.3-5V)
3A (quadrature channel)
4B (quadrature channel)

This matches the Pinpoint's encoder input format.

Power

  • VIN: 3.3V to 5V input
  • C1: 100nF decoupling capacitor
  • Current draw: ~10mA typical

Resolution

The AS5047P provides:

  • 14-bit absolute position (16,384 positions per revolution)
  • Quadrature output: 4096 pulses per revolution (1024 CPR x4 quadrature)

With the small omni wheels on the odometry pods, this gives sub-millimeter position resolution.


Assembly

The board is designed for easy assembly:

  • Single-sided SMD components
  • 0603 resistors (hand-solderable)
  • AS5047P in TSSOP-14 package
  • Diametric magnet mounted on shaft above the chip

The magnet must be centered over the chip with ~1mm air gap for optimal performance.

Assembled encoder boards


Tech Stack

AreaTools
Schematic & LayoutKiCad
FabricationJLCPCB
Sensor ICAS5047P-ATSM

More in KUdos Custom Electronics Stack