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

Max deviation was 182.99 deg Large deviation. Reposition the magnet error after reposition TLE5012 to bottom layer #25

Open
esonhon opened this issue Dec 24, 2023 · 4 comments

Comments

@esonhon
Copy link

esonhon commented Dec 24, 2023

Hi,
Because my motor has a large space between PCB and magnet, I tried to move the TLE5012 to bottom side of the PCB. With PIN1 opposite with TOPLAYER PIN4.
Got the error when calib:
Max deviation was 182.99 deg
Large deviation. Reposition the magnet
May I change some lines of code to match the hardware changes?
Have investigated the code, tried to modify code but without success.
Need ur help! thanks!

@dzid26
Copy link
Owner

dzid26 commented Dec 24, 2023

Can you first try to clear the eeprom using stlink utility or by other means? This is to allow motorWiring parameter to relearn the direction after flipping the sensor.

Btw, do you have a photo of your modified PCB setup?

@esonhon
Copy link
Author

esonhon commented Dec 25, 2023

Thanks for your reply. I have tried clear persist storage, even tried in a new board.
PCB bottom emulation graph attached. BTW, I imported the Kicad project to Altium and make some minor changes in layout.
BOTPCB
For your reference, the top most socket is for stepper, U5 is tle5012B, the exposed pad is for A4950s, just like your original design.

@dzid26
Copy link
Owner

dzid26 commented Dec 25, 2023

Ok. I was wondering what kind of motor setup you have that requires the sensor on the other side.

As to your problem, can you tell more - does the motor rotate over one rotation back and forth?
If yes, it probably means it is rotating "wrong" direction.

Is the angle sensor working?
Using the debugger (press F5 in vscode) might be useful.

@esonhon
Copy link
Author

esonhon commented Jan 5, 2024

It's a 42 stepper with think shell, so the shaft is far from the shell. And the magnet I've got is not high enough.
Yes, the motor rotate back and forth, but you're right, it rotated in wrong direction.
Thanks, I'll try to figure it out.

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