Skip to the content
2 layers115 × 103 mmEncoder SPI KTH7812 Panel, the printed circuit board in 3D

Encoder SPI KTH7812 Panel

runger1101001/Magnetic_Encoders11

Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

Size
115 × 103 mm
Copper layers
2
Thickness
1.6 mm
Parts
468
Nets
180
Pads
848
Tracks, vias
1,040, 280
Pours
62
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
22 Oct 2021
Updated
4 Jan 2026

Overview

Encoder SPI KTH7812 Panel is an open-source printed circuit board by runger1101001, from the runger1101001/Magnetic_Encoders repository on GitHub. It is a 2-layer board of 115 × 103 mm with 468 parts on 180 nets, routed with 1,040 tracks and 280 vias.

Its parts include 40 capacitors, 40 connectors, 20 resistors, 20 ICs and 20 diodes.

README

Encoder_SPI_SC60228_big/README.md

SC60228 magnetic angle sensor

Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

For use in motor control or robotics applications, the sensor measures the orientation (angle in the plane) of a nearby diametrically magnetized magnet.

That sounds more complicated than using it really is, so lets describe it another way:

  • attach the magnet to the axis of something that rotates
  • put the sensor near it
  • read angles with your Arduino
Back of boardFront of board
with SH 1.0 connector with sensor

Features

  • 3V to 5V operation
  • 12 bit accuracy, 4096 positions per revolution
  • SPI interface up to 10MHz
  • power indication LED (green, dim)

Datasheet of the sensor: https://semiment.com/wp-content/uploads/2021/04/SC60228_EN-VA1.0.pdf

Getting one

You may be able to buy some here:

I sell on Tindie

Or you could make one - it is open source, you will find gerber files and BOM in the repo, and design files for KiCad 6.

Usage

The sensor has to be precisely positioned near the magnet. The magnet should be precisely on-axis and in-plane (no wobble!). The sensor should be mounted with an air-gap of about 0.5mm to the magnet.

Taking the time to mount the magnet and sensor board carefully will improve the accuracy and smoothness of your readings.

The sensor has an SPI interface:

The SPI interface is available on a JST-SH 6-pin socket. Pre-made cables are available cheaply on AliExpress and other sources.

You may connect VCC to either 3.3V or 5V.

Connect the other lines (MOSI, MISO, CLK and CS) to the respective counterparts on your MCU board.

Note: The sensor board does not pull the CS line up.

Communications

SPI interface:

  • SPI Mode 1
  • MSB first
  • max 10MHz SPI clock

See datasheet for details, or use an existing software driver.

:warning: Note: cable length, shielding (or lack thereof) and environmental noise may limit performance to significantly less than the 10MHz maximum.

Software

The sensor can be used with any appropriate SPI driver.

The author uses it with Arduino-compatible MCU boards and the SimpleFOC library.

A driver for the sensor for Arduino and SimpleFOC can be found here: SimpleFOC drivers library

Physical dimensions

v1.0: 21 x 17 x 4mm (1.6mm PCB)

Cables

Pre-made JST SH 1.0 cables are available. When buying cables with two plugs, choose the type that is called "reverse connection" - where the pins on both ends of the cable have the same order.

Some links to compatible cables / breakout boards:

Parts

468
QtyValueFootprintReferences
262NPTHNPTHKiKit_MB_10_1, KiKit_MB_10_2, KiKit_MB_10_3, KiKit_MB_10_4, KiKit_MB_11_1, KiKit_MB_11_2, KiKit_MB_11_3, KiKit_MB_11_4, KiKit_MB_12_1, KiKit_MB_12_2, KiKit_MB_12_3, KiKit_MB_12_4, KiKit_MB_13_1, KiKit_MB_13_2, KiKit_MB_13_3, KiKit_MB_13_4 +246
40MountingHole_PadMountingHole:MountingHole_2.2mm_M2_ISO7380_PadH1, H1, H1, H1, H1, H1, H1, H1, H1, H1, H1, H1, H1, H1, H1, H1 +24
20100nF 10VCapacitor_SMD:C_0603_1608MetricC2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2, C2 +4
2010uF 10VCapacitor_SMD:C_0805_2012MetricC1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1, C1 +4
202k2Resistor_SMD:R_0805_2012MetricR1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1, R1 +4
20Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ2, J2, J2, J2, J2, J2, J2, J2, J2, J2, J2, J2, J2, J2, J2, J2 +4
20Conn_01x06_MountingPinConnector_JST:JST_SH_SM06B-SRSS-TB_1x06-1MP_P1.00mm_HorizontalJ1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1, J1 +4
20KTH7812Package_SO:SOP-8_3.76x4.96mm_P1.27mmU1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1, U1 +4
20Robo_Logorunger:Robo_logo2L1, L1, L1, L1, L1, L1, L1, L1, L1, L1, L1, L1, L1, L1, L1, L1 +4
20greenLED_SMD:LED_0805_2012MetricD1, D1, D1, D1, D1, D1, D1, D1, D1, D1, D1, D1, D1, D1, D1, D1 +4
6FiducialFiducialKiKit_FID_B_1, KiKit_FID_B_2, KiKit_FID_B_3, KiKit_FID_T_1, KiKit_FID_T_2, KiKit_FID_T_3

More from runger1101001/Magnetic_Encoders

12
  • 2 layers131 × 111 mmEncoder I2C AS5600 Panel, the printed circuit board in 3D

    Encoder I2C AS5600 Panel

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    741 parts11
  • 2 layers107 × 111 mmEncoder SPI AS5047P panel, the printed circuit board in 3D

    Encoder SPI AS5047P panel

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    491 parts11
  • 2 layers113 × 107 mmEncoder SPIABZ MT6816 Panel, the printed circuit board in 3D

    Encoder SPIABZ MT6816 Panel

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    488 parts11
  • 2 layers113 × 103 mmEncoder SPIABZ MT6826S Panel, the printed circuit board in 3D

    Encoder SPIABZ MT6826S Panel

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    488 parts11
  • 2 layers107 × 111 mmEncoder SPI SC60228 panel, the printed circuit board in 3D

    Encoder SPI SC60228 panel

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    468 parts11
  • 2 layers96 × 41 mmEncoder SPI Panel v1 1, the printed circuit board in 3D

    Encoder SPI Panel v1 1

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    157 parts11
  • 2 layers63 × 41 mmEncoder SPI Panel, the printed circuit board in 3D

    Encoder SPI Panel

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    105 parts11
  • 2 layers25 × 10 mmEncoder AEAT 8800 Q24, the printed circuit board in 3D

    Encoder AEAT 8800 Q24

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    24 parts11
  • 2 layers21 × 17 mmEncoder SPI MT6701 I2CAdapter, the printed circuit board in 3D

    Encoder SPI MT6701 I2CAdapter

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    21 parts11
  • 2 layers21 × 8 mmEncoder, the printed circuit board in 3D

    Encoder

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    17 parts11
  • 2 layers40 × 22 mmEncoder Distribution MA730 4x, the printed circuit board in 3D

    Encoder Distribution MA730 4x

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    14 parts11
  • 2 layers21 × 10 mmEncoder AS5600L, the printed circuit board in 3D

    Encoder AS5600L

    runger1101001/Magnetic_Encoders

    Small (21x17mm) board for the SC60228 magnetic absolute angle sensor.

    13 parts11

Similar boards

  • 2 layers99.5 × 99.5 mmCELL, the printed circuit board in 3D

    CELL

    twcoolt/CELL

    MX compatible single switch PCB with SK6812 mini-e addressable RGB LED and Kailh hotswap socket.

    466 parts1AGPL-3.0
  • 2 layers245.7 × 172.6 mmPipar point, the printed circuit board in 3D

    Pipar point

    RasmusKoit/pipar

    Pipar is a collection of keyboards

    466 parts56CERN-OHL-S-2.0
  • 2 layers144 × 144 mmPanel, the printed circuit board in 3D

    Panel

    0xCB-dev/0xCB-1337

    Mechanical macropad with OLED running QMK

    466 parts61
  • 2 layers116 × 110.5 mmNest amoeba panelize, the printed circuit board in 3D

    Nest amoeba panelize

    fishjord/nest_keyboards

    This repository contains a collection of keyboards modded/designed by Ness. Each keyboard is in a sub-directory and named after bird common names.

    470 parts
  • 2 layers449.1 × 144.3 mmChili master, the printed circuit board in 3D

    Chili master

    silitekmodder/Chili-master

    Re-uploaded Chili PCB for the Cherry G80-3000/G81-3000 series keyvboards (NOT MINE)

    465 parts3CC0-1.0
  • 2 layers100 × 220 mmPss baseboard, the printed circuit board in 3D

    Pss baseboard

    pascalguttmann/obat-powersupplysink

    Obat KiCAD Project for PowerSupply Sink

    464 partsMIT
  • 2 layers100 × 100 mmHallCoinDetectorPanelizado, the printed circuit board in 3D

    HallCoinDetectorPanelizado

    ArielRobotti/MagneticFieldDetector

    Detector de polaridad de campo magnético para Mago :)

    464 parts1
  • 2 layers99 × 99 mmUltimate soldering exercise, the printed circuit board in 3D

    Ultimate soldering exercise

    dvhx/smd-soldering-exercise-0805

    Ultimate SMD soldering exercise full of 0805 resistor and caps, SOT-23 transistors and SOIC-8 opamps - 23 guitar pedals on one 10x10cm PCB.

    464 parts6GPL-3.0

Questions

How big is the Encoder SPI KTH7812 Panel PCB?

It measures 115 × 103 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Encoder SPI KTH7812 Panel use?

468 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Encoder SPI KTH7812 Panel KiCad files?

From the runger1101001/Magnetic_Encoders repository on GitHub, at the commit this page was made from: the board is Encoder_SPI_KTH7812/Encoder_SPI_KTH7812_Panel.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Encoder SPI KTH7812 Panel design in my own project?

Its repository states no licence, so its author keeps all rights: ask runger1101001 before reusing the design.