|
HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
|
C++20 hardware-agnostic driver for Trinamic TMC9660 motor controller with FOC control, telemetry, and TMCL scripting
📖 📚🌐 Live Complete Documentation - Interactive guides, examples, and step-by-step tutorials
HF-TMC9660 is a portable C++20 driver for the Trinamic TMC9660 motor controller IC. The TMC9660 is a sophisticated motor driver supporting BLDC, stepper, and DC motors with advanced Field-Oriented Control (FOC), comprehensive telemetry, and TMCL scripting capabilities. The driver provides hardware-agnostic communication interfaces, allowing it to run on any platform (ESP32, STM32, etc.) with SPI or UART.
The driver exposes the full parameter mode interface, providing access to all 300+ TMC9660 parameters through an intuitive C++ API. It supports bootloader initialization, motor configuration, sensor integration (Hall sensors, encoders), FOC control loops, real-time telemetry, and protection systems.
For detailed setup, see Installation and Quick Start Guide.
For detailed installation instructions, see docs/installation.md.
| Method | Description |
|---|---|
bootloaderInit() | Initialize bootloader for Parameter Mode (CRITICAL) |
motorConfig.setType() | Set motor type and pole pairs |
focControl.setTargetVelocity() | Set target velocity for FOC control |
telemetry.getTemperature() | Read motor temperature |
telemetry.getCurrent() | Read motor current |
For complete API documentation, see docs/api_reference.md.
For ESP32 examples, see the examples/esp32 directory.
Detailed example walkthroughs are available in docs/examples.md.
For complete documentation, see the docs directory.
Pull requests and suggestions are welcome! Please follow the existing code style and include tests for new features.
This project is licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for details.