grblHAL / Plugins_motor

grblHAL motor plugins
Other
5 stars 8 forks source link

Verification of change for TRINAMIC_R_SENSE value? #13

Open bdbell opened 8 months ago

bdbell commented 8 months ago

Is there a good way to check to see if the setting for TRINAMIC_R_SENSE is changed from the default 0f 75 mOhm after the firmware is built? I am using the BTT 5160 Plus external driver modules and they use a 22 mOhm current sense resistor rather than the standard 75 mOhm. I have added -D TRINAMIC_R_SENSE=22 to platformio.ini as I am using platformIO to perform the builds but with testing I am still drawing over 3.5A for a driver when the current is set to 1A. Is there a way to verify that the value is actually included properly?

terjeio commented 8 months ago

Try with different r sense values and check the if Run current changes in the M122 report?

bdbell commented 7 months ago

I am unclear on what Run Current in the M122 report is supposed to indicate. It appears to be a ratio but I have found not documentation on what it is supposed to represent. the Hold Current makes a little more sense as it is a percentage of the run current. Is there somewhere I can reference to understand those values?

terjeio commented 7 months ago

There are links to the datasheets in the readme.