Skip to content

0xDEADBEEF-ASAP/ASAP-CNC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 

Repository files navigation

ASAP-CNC (project is under early stage of developement)

What? Why? How?

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).

[1]

System

  • 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

Futures

G-CODE SENDER

---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.

HARDWARE CHANGES

RSENS

Change Rsens resistors R022 according to this table:

[1]

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):

CLOCK

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).

CURRENT measurements (ACS724-10-AB +/- 10A)

120kHz analog output, 1us rise time. 5V supply voltage, 2,5V output offset (0A), 200mV/A. [3]

Modules:

With ARK terminal:

Two channels:

Single channel measurment: current measure

RELATED media

3 axis coordinated move test (nema17): current measure

LINKS & SORURCES

[TMC5160-DATASEET]

[1]

https://www.analog.com/media/en/technical-documentation/data-sheets/TMC5160A_datasheet_rev1.18.pdf

[2]

https://help.stepperonline.com/en/article/how-to-set-the-current-on-stepper-driver-rms-or-peak-1d29t68/

[3]

https://www.allegromicro.com/en/Products/Sense/Current-Sensor-ICs/Zero-To-Fifty-Amp-Integrated-Conductor-Sensor-ICs/ACS724-5

About

STM32H7 & TMC5160 : FULL SPI CNC CONTROLLER

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published