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

Encoder controller #32

Open
rafacouto opened this issue Apr 10, 2024 · 1 comment
Open

Encoder controller #32

rafacouto opened this issue Apr 10, 2024 · 1 comment
Assignees

Comments

@rafacouto
Copy link
Collaborator

rafacouto commented Apr 10, 2024

Implement the encoder drivers for MightyBugA board.

Driver HAL interface:

  • steps() -> usize returns the absolute step count
  • delta() -> isize returns the delta of the step count since the last time this function was called
  • reset() resets the step count to zero

Implementation notes:

  • For STM32, it should be use the encoder interface mode (see reference manual 15.3.12)
  • Right encoder: PB6 (TIM4CH1) and PB7 (TIM4CH2) --> Tim4NoRemap
  • Left encoder: PA15 (TIM2CH1) and PB3 (TIM2CH2) --> Tim2PartialRemap1
@rafacouto
Copy link
Collaborator Author

Encoder controller featured on PR #38

mightybuga_encoders.mp4

@punkto punkto mentioned this issue Jun 9, 2024
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