ASAP-CNC is complete, minimalistic, written from scratch system that can control up to 5 axis in real time.
All released software out there uses step/dir signals. ASAP-CNC use TMC5160 in MODE 1 instead, (with embedded motion controller) without step/dir signals (only SPI interface).
- responsive (!) multiplatform g-code sender, writen in python (using only native modules)
- real time g-code interpreter for STM32H7, writen in C
- stepper motor drivers TMC5160 in MODE 1
---G-CODE--- Automatic connection and re-connection even if different serial port is opened.
---JOG---
---MACHINE---
---TMC-SIMPLE---
---TMC-ADVANCED---
Sequential TMC-DRIVER programming - registers are programmed in order and single register can be re-programmed multiple times during single driver setup.
Change Rsens resistors R022 according to this table:
Rsens resistors are low impedance SMD 2512.
For 2.0A rated stepper motor the 0.12 R (2.0A RMS) should be used. Then current should be scaled to match 2.0A peak current. If stepper motor used for application isn't getting hot, current can be scaled up. For more info check link [2].
R040 is for this engine (nema 34):
For best performance feed TMC5160 driver with common clock source up to 18 MHz (16MHz optimal). Remove R10 and connect to pads clock source (50% duty cycle).
120kHz analog output, 1us rise time. 5V supply voltage, 2,5V output offset (0A), 200mV/A. [3]
3 axis coordinated move test (nema17):
[TMC5160-DATASEET]
[1]
https://www.analog.com/media/en/technical-documentation/data-sheets/TMC5160A_datasheet_rev1.18.pdf
[2]
[3]