Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verification of change for TRINAMIC_R_SENSE value? #13

Open
bdbell opened this issue Mar 31, 2024 · 3 comments
Open

Verification of change for TRINAMIC_R_SENSE value? #13

bdbell opened this issue Mar 31, 2024 · 3 comments

Comments

@bdbell
Copy link

bdbell commented Mar 31, 2024

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
Copy link
Contributor

terjeio commented Apr 1, 2024

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

@bdbell
Copy link
Author

bdbell commented Apr 4, 2024

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
Copy link
Contributor

terjeio commented Apr 4, 2024

There are links to the datasheets in the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants