Skip to the content
4 layers41.5 × 44.6 mmAHRSNEW, the printed circuit board in 3D

Welcome to the official repository for my AHRS project. This project documents the complete hardware design cycle—from component selection and circuit simulation to final PCB layout—for a custom Attitude and Heading…

Size
41.5 × 44.6 mm
Copper layers
4
Thickness
1.6 mm
Parts
34
Nets
89
Pads
196
Tracks, vias
263, 57
Pours
10
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
14 Oct 2025
Updated
6 Mar 2026

Overview

AHRSNEW is an open-source printed circuit board by Prakhar730, from the Prakhar730/AHRS_PCB_Design repository on GitHub. It is a 4-layer board of 41.5 × 44.6 mm with 34 parts on 89 nets, routed with 263 tracks and 57 vias.

It is built around the STM32F401RET6 and CP2102. Its parts include 19 capacitors, 4 ICs, 4 diodes, 3 resistors and 2 connectors. It belongs with the STM32 boards of this library.

Main components

2

README

README.md

PCB Design for an Attitude and Heading Reference System (AHRS)

A custom 4-layer PCB featuring an STM32 MCU and a 9-axis IMU, developed during a research internship at the Indian Institute of Technology, Kanpur.

KiCad LTspice Hardware


Welcome to the official repository for my AHRS project. This project documents the complete hardware design cycle—from component selection and circuit simulation to final PCB layout—for a custom Attitude and Heading Reference System. It was developed as the primary focus of my six-week internship in the Department of Electrical Engineering at IIT Kanpur.

The goal of this project was to apply theoretical knowledge of electronics and embedded systems to a practical challenge: creating a compact, reliable, and manufacturable PCB for high-performance orientation sensing in robotics and navigation applications.


Table of Contents

  1. Key Features
  2. Repository Structure
  3. Technical Specifications
  4. Challenges & Solutions
  5. Contact & Acknowledgments

Key Features

  • High-Performance Sensing: Integrates the LSM9DS1 9-axis IMU, which includes a 3-axis accelerometer, 3-axis gyroscope, and 3-axis magnetometer on a single chip.
  • Powerful Processing: Driven by an STM32F401RET6 ARM Cortex-M4 microcontroller, providing ample computational power for real-time sensor fusion algorithms.
  • Stable Power Management: Features an onboard TPS62172 buck converter to efficiently step down 5V from USB to a clean 3.3V supply, validated through LTspice simulations.
  • Robust Connectivity: Equipped with a CP2102 USB-to-UART bridge for straightforward data streaming, programming, and debugging.
  • Optimized 4-Layer PCB: The layout is designed for a compact form factor while maintaining excellent signal integrity and noise immunity through dedicated ground and power planes.

Repository Structure

The project files are organized into two primary directories, separating the hardware design from the circuit simulation.

text
AHRS-PCB-Design/
├── PCB + Schematics/
│   ├── AHRSNEW.kicad_pro
│   ├── AHRSNEW.kicad_sch
│   └── AHRSNEW.kicad_pcb
│
└── Power Supply Simulation/
    └── Draft1.asc
  • PCB + Schematics/: This directory contains the complete KiCad project, including all source files for the schematic design and the final 4-layer PCB layout.
  • Power Supply Simulation/: This directory holds the LTspice simulation files used to validate the power supply circuit before finalizing the hardware design.

Technical Specifications

Hardware Components

ComponentPart NumberDescription
MicrocontrollerSTM32F401RET6ARM Cortex-M4 MCU for processing sensor data.
IMU SensorLSM9DS19-axis motion sensor (accelerometer, gyroscope, magnetometer).
Buck ConverterTPS62172Efficiently steps down 5V USB power to a stable 3.3V.
USB-UART BridgeCP2102Provides a communication interface with a host computer.

Software & Tools

  • PCB Design: KiCad (Schematic Capture & PCB Layout)
  • Circuit Simulation: LTspice (Power Supply Validation)

Challenges & Solutions

  • Interpreting Complex Datasheets

    • Solution: Adopted a structured approach, breaking down datasheets section-by-section and cross-referencing with application notes and online forums.
  • Achieving a Stable Power Supply

    • Solution: The power supply circuit was simulated in LTspice to validate component choices and ensure stable operation before hardware implementation.
  • PCB Layout & Signal Integrity

    • Solution: Followed standard PCB best practices, including using differential pair routing for USB, keeping high-speed traces short, and utilizing ground planes to shield signals.

Contact & Acknowledgments

This project was completed under the expert supervision of Prof. Yatindra Nath Singh at IIT Kanpur. I extend my sincere gratitude to my mentors, Mr. Nagendra Kumar and Mr. Rahul Bhattacharyya, for their continuous technical guidance and support.

Feel free to connect with me to discuss this project or other topics in embedded systems and robotics.

Parts

34
QtyValueFootprintReferences
5100nFCapacitor_SMD:C_0402_1005MetricC2, C3, C5, C12, C17
4600nFCapacitor_SMD:C_1812_4532MetricC8, C9, C10, C11
4D_SchottkyDiode_SMD:D_MicroMELFD1, D2, D3, D4
24.7 kResistor_SMD:R_0805_2012MetricR1, R2
10.1uFCapacitor_SMD:C_0402_1005MetricC21
10u1Capacitor_SMD:C_0402_1005MetricC15
1100KResistor_SMD:R_0603_1608MetricR3
1100nCapacitor_SMD:C_0402_1005MetricC13
110nFCapacitor_SMD:CP_Elec_3x5.3C4
110uCapacitor_SMD:CP_Elec_4x5.3C16
110uFCapacitor_SMD:CP_Elec_4x5.3C1
11uCapacitor_SMD:C_0603_1608MetricC14
12.2uInductor_SMD:L_0201_0603MetricL1
122uCapacitor_SMD:CP_Elec_8x10.5C18
14.7uFCapacitor_SMD:CP_Elec_4x5.4C7
14u7Capacitor_SMD:CP_Elec_4x5.4C6
1CP2102Valve:QFN28N5X5-0p5P_SILU3
1Conn_01x04_SocketConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1LSM9DS1TRValve:LGA-24_3X3P5X1_STMU1
1STM32F401RET6Valve:LQFP64-10x10mmU2
1SW_PushButton_Switch_SMD:SW_Push_SPST_NO_Alps_SKRKSW1
1TPS62172DSGTValve:DSG0008AU4
1USB_ALibrary:USB_A_TE_292303-7_Horizontal_flipedJ1

Similar boards

  • 2 layers154 × 129.9 mmVaucasy left, the printed circuit board in 3D

    Vaucasy left

    engemkeres/vaucasy

    Split ergonomic mechanical keyboard PCB

    108 parts1MIT
  • 2 layers80 × 60 mmVantageF401RE, the printed circuit board in 3D

    VantageF401RE

    AthulKrishnaGirish/VantageF401RE

    STM32F401RE-based 2-layer evaluation and development board designed for the Mixed Traces PCB Design Competition.

    47 parts
  • 4 layers100 × 62 mmEtch a sketch, the printed circuit board in 3D

    Etch a sketch

    disposedtrolley/etch-a-sketch

    STM32-based Etch A Sketch widget with an OLED display and rotary encoders.

    38 parts
  • 4 layers123.5 × 108.7 mmShredder pcb, the printed circuit board in 3D

    Shredder pcb

    jackmday-uofa/compact-shredder-pcb

    PCB schematic and design for the Compact Shredder Design Version 2

    114 parts
  • 2 layers100 × 100 mmSTM32F401RE Eval, the printed circuit board in 3D

    STM32F401RE Eval

    joelsony06/STM32F401RET6-Basic-Development-Board

    26 parts
  • 4 layers60 × 60 mmSPB, the printed circuit board in 3D

    SPB

    naimmas/SPB

    134 parts
  • 2 layers100 × 100 mmMIXED TRACE (STM32F401RET6), the printed circuit board in 3D

    MIXED TRACE (STM32F401RET6)

    navaneeth-linh/CoreTrace-CT-F401RE

    STM32F401RET6 Evaluation Board — Mixed Traces PCB Design Competition 2026 | Team CoreTrace

    43 parts
  • 4 layers118 × 250 mmPcb lab, the printed circuit board in 3D

    Pcb lab

    y-watal/pcb_lab

    285 parts

Questions

How big is the AHRSNEW PCB?

It measures 41.5 × 44.6 mm and has 4 copper layers, 1.6 mm thick.

What parts does the AHRSNEW use?

34 parts, built around the STM32F401RET6 and CP2102. 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 AHRSNEW KiCad files?

From the Prakhar730/AHRS_PCB_Design repository on GitHub, at the commit this page was made from: the board is PCB + Schematics/AHRSNEW.kicad_pcb and its schematic PCB + Schematics/AHRSNEW.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the AHRSNEW design in my own project?

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