HF-TMC51x0 Documentation (TMC5130 & TMC5160)

Welcome! This directory contains step-by-step guides for installing, building, and using the HF-TMC51x0 library, which supports both TMC5130 and TMC5160 chips.

πŸ“š Documentation Structure

Getting Started

  1. πŸ› οΈ Installation – Prerequisites and how to obtain the source
  2. ⚑ Quick Start – Minimal working example to get you running
  3. πŸ”Œ Hardware Setup – Wiring diagrams and pin connections

Integration

  1. πŸ”§ Platform Integration – Implement the CRTP communication interface for your platform
  2. βš™οΈ Configuration – Configuration options and settings

Reference

  1. πŸ“– API Reference – Complete API documentation
  2. πŸ’‘ Examples – Detailed example walkthroughs

Advanced Features

  1. πŸ“ Unit Conversions – Converting between physical units and driver steps
  2. βš™οΈ Motor Setup from Specifications – High-level motor configuration from physical parameters
  3. 🏠 Sensorless Homing – Homing without endstops using StallGuard2
  4. 🎯 Automatic Tuning – Intelligent StallGuard2 threshold optimization
  5. πŸ”§ Advanced Configuration – CoolStep, dcStep, freewheeling, and more
  6. πŸ”— Multi-Chip Communication – SPI daisy chaining and UART multi-node addressing
  7. πŸ“‘ Communication Interface – Low-level SPI/UART communication details
  8. πŸ”Œ GPIO Pin Configuration – Pin mapping, active levels, and mode pin setup
  9. πŸ“ Register Access – Direct register read/write and initialization flow
  10. πŸ”„ TMC5130 Support – Differences between TMC5130 and TMC5160

Troubleshooting

  1. πŸ› Troubleshooting – Common issues and solutions

πŸš€ Quick Start Path

New to TMC51x0? Follow this recommended path:

  1. Start with Installation to prepare your environment
  2. Follow Hardware Setup to wire your hardware
  3. Read Quick Start for a minimal working example and Result<T> error handling
  4. Check Platform Integration to implement the SPI/UART interface
  5. Explore Examples for progressively harder walkthroughs with explanations
  6. Refer to Troubleshooting when things don’t work as expected

πŸ’‘ Need Help?

  • πŸ› Found a bug? Check the Troubleshooting guide
  • ❓ Have questions? Review the API Reference
  • πŸ“ Want to contribute? See the contributing guidelines in the main README

Navigation Next: Installation ->


Table of contents