teemuatlut / TMC2130Stepper

Arduino library for Trinamic TMC2130 Stepper driver
MIT License
159 stars 50 forks source link

Enable CoolStep - Digital current control #29

Closed alfredanil closed 6 years ago

alfredanil commented 6 years ago

Sensorless homing is amazing but it just does not stop here as it can also be used for sensorless load-dependent current control that uses StallGuard2 as well. Why not bring this remarkable feature to life?

teemuatlut commented 6 years ago

The Marlin v1.1.x branch is in a feature freeze so I'm not making any new features until v1.1.9 is released and focus starts to shift towards the v2 branch. For now you can configure coolStep for yourself by using the TMC_ADV feature.

alfredanil commented 6 years ago

Could you give some tips on how to configure CoolStep feature.

teemuatlut commented 6 years ago

You can look for an example in the StallGuard example.

driver.THIGH(0);
driver.semin(5);
driver.semax(2);
driver.sedn(0b01);

Only the semin is necessary but the rest adjust the current slopes a bit.

teemuatlut commented 6 years ago

https://github.com/teemuatlut/Marlin/tree/bf2_coolstep