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

Not initialized for current sensing with TMC2209 #280

Open
berkut0 opened this issue Jul 25, 2023 · 2 comments
Open

Not initialized for current sensing with TMC2209 #280

berkut0 opened this issue Jul 25, 2023 · 2 comments

Comments

@berkut0
Copy link

berkut0 commented Jul 25, 2023

I have a Lerdge TMC2226 that seems to be fully compatible with all tmc2209 libraries. I'm trying to read SG_RESULT() to make measurements of the current for calibration purposes (and some features, but that's not important for now).

And there is apparently some kind of bug in the initialization. With cold load, any combination of options shown in the examples does not lead to success with readings. BUT! If I use another TMC2209 library that reads the values easily, I have a interesting situation — after uploading my sketch which using original library right after flashing the example I have very noisy stepper (loud humming noise) and surprisinhly I have measurments and readings!

If it matters, I use esp32-c3. And it connects to the UART.

@berkut0
Copy link
Author

berkut0 commented Jul 25, 2023

#87 #272
These may be related, but the example from the comments does the same thing - returns zero at SG_RESULT()

@berkut0
Copy link
Author

berkut0 commented Jul 27, 2023

After diving in a bit, I realized that it seems to be my fault. Calculation only happens "while driving", right?

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

1 participant