Hi all,
This is my first post, so want to says thanks to Ryan and this community. I have learned a lot, and had fun in the process. I was finally able to build my MPCNC that I had started back in 2016. (Slowest build ever, I know…short story: father passed away in 2017, and brother in 2018 with lots to deal with.) The MPCNC is working great - still uses the threaded rod and pineapple. I hope to update soon. Despite trying to complete an older design, there was enough info on this site and these forums to get through the whole build without any real issues, which is a testament to the design, info, and support available here. (My biggest challenge was figuring out that I needed to specify slower Z speeds in Estlcam since still using threaded rod instead of leadscrews.)
I am now working an MD3DP build. I am still waiting on some parts to arrive to finish the mechanical part of the build, and so I have turned my focus to getting the correct firmware settings in place. I am using a SKR 1.4 board with TMC2209 drivers in UART mode.
I have specifications for the steppers I am using for X, Y, Z, which are Current/Phase of 2.0 A, and so I should be able to calculate the appropriate settings for those steppers. I write should because I am still a bit confused on the calculations for these drivers.
It seems that others are also confused:
In this Teaching Tech video, he calculates VRef (units of Volts) and then sets this for the current (in units of mA): https://youtu.be/dOJbSrWVu_Q?list=PLGqRUdq5ULsOIIaBONPU65uH2s6iI6GqY&t=367
Either that approach is wrong, or I am misinterpreting the Marlin current settings (and they should be called voltage, not current). I checked Marlin documentation which does confirm that current is indeed current in mA, and not voltage: https://marlinfw.org/docs/gcode/M906.html
So this still leaves me a bit confused about Vref, and correct current settings. Steps 6 and 7 at this page clearly lay out the correct equations: https://e3d-online.dozuki.com/Guide/05+-+E3D+Hemera+Current+Adjustments+(VREF)/143
So, I can calculate the RMS current and Vref based on those equations for my stepper motors:
Current/Phase = 2.0 A
Therefore RMS current = 1.42 A (2.0 / 1.41 = 1.42) and
Vref = 2.0 V (1.42 x 2.5) / 1.77
And, using 90% of that gives 1.81 V.
My questions then:
- Are my calculations above correct?
- Having calculated RMS current, is this the correct value to specify in Marlin? (configuration_adv.h at the appropriate sections starting with #if AXIS_IS_TMC(X) and #define X_CURRENT, for example)
- How/where does Vref get used, if at all?
- Is it still good practice to measure voltage on the driver so I know what is being output?
- Specific to the MP3DP build: I plan to use the MK8 Hotend/Extruder, which comes with a stepper motor with no documentation. What specs should I assume for this motor (recognizing I may need to test and adjust settings)?
Hope that’s clear, and thanks in advance.