HonestBrothers

Results 17 comments of HonestBrothers

To clarify: This uses the tuning spreadsheet to calculate CS values versus globalscaler. pg. 74 of the datasheet shows that Irms is calculated by the tmc5160: Irms = (globalscaler/256) *...

> As far as I am aware, the existing code is correct. (That is, it will faithfully take a requested `run_current` and program the tmc registers to meet that `run_current`...

This is the output from the dump_tmc stepper=stepper_x on the existing code: ` 4:36 AM TSTEP: 000fffff tstep=1048575 4:36 AM PWM_AUTO: 0000001d pwm_ofs_auto=29 4:36 AM PWM_SCALE: 0000001d pwm_scale_sum=29 4:36 AM...

Hello Dmitry, thanks for your feedback. If you take a look at the HystStart_MIN formula in cell C3 of the tuning spreadsheet, you'll see that the formula provided by trinamic...

Forgot to attach. [TMC220x_TMC222x_Calculations_correctly_implemented_code.xlsx](https://github.com/user-attachments/files/16228793/TMC220x_TMC222x_Calculations_correctly_implemented_code.xlsx) [TMC220x_TMC222x_Calculations_current_klipper_code.xlsx](https://github.com/user-attachments/files/16228794/TMC220x_TMC222x_Calculations_current_klipper_code.xlsx)

I changed the CS value in both spreadsheets to demonstrate my point. The CS value in my instance, regardless of good practice, needs to be set to 22 to properly...

Agreed, merging in the form it's in would likely have wide ranging, negative consequences for existing driver settings. However, I'm not so sure that these consequences don't already exist by...

Updated: I added a field called tmc_cs: which can be called under: [tmc5160 stepper_*] tmc_cs: *some number between 16 and 31* Code needs cleaning up. If no tmc_cs is defined,...

Hey Kevin, I created a thread on Discourse on the topic to discuss further. https://klipper.discourse.group/t/tmc5160-py-hard-sets-cs-to-31-causing-chopper-hysteresis-issues/17655 > > The existing code calculates the correct current, but does not use CS to...

Kevin, Klipper uses a single equation to find two non-zero unknowns. This is a mathematical impossibility. This is the subject of linear algebra. https://en.m.wikipedia.org/wiki/System_of_linear_equations https://en.m.wikipedia.org/wiki/Underdetermined_system