Skip to content

encoder_as5047: Add SPI loose magnet detection logic#892

Open
fbg-jpg wants to merge 1 commit intovedderb:masterfrom
fbg-jpg:feature/as5047-spi-loose-magnet-detect
Open

encoder_as5047: Add SPI loose magnet detection logic#892
fbg-jpg wants to merge 1 commit intovedderb:masterfrom
fbg-jpg:feature/as5047-spi-loose-magnet-detect

Conversation

@fbg-jpg
Copy link

@fbg-jpg fbg-jpg commented Mar 11, 2026

This code is meant to fix situations where the magnet gets loose and causes the motor to rotate very fast. The solution is for encoders of type AS5047 and it compares the FOC observer phase against the physical encoder phase at high speeds and if they are not in sync than a loose magnet fault is displayed and the motor will stop.
vedderb/vesc_tool#453

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

Successfully merging this pull request may close these issues.

1 participant