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

PWM Motor Control Driver #3

Open
18 tasks
IbixD97 opened this issue Oct 23, 2024 · 0 comments
Open
18 tasks

PWM Motor Control Driver #3

IbixD97 opened this issue Oct 23, 2024 · 0 comments
Assignees
Labels
embedded Embedded team responsible medium priority This issue should be addressed eventually medium ~ a couple days to complete

Comments

@IbixD97
Copy link
Contributor

IbixD97 commented Oct 23, 2024

Description of task

A driver that can write PWM signals to control all 8 ESCs on the AUV,

Time estimate (Hours)
15h

Deadling (DD.MM)
10.11

Suggested Workflow

  • Implement a PWM generator that can make an LED pulse
  • Make the generator able to control the dimness and intensity of the light on command
  • Make the generator be controlled via USART
  • Restrict the function so it can never pass on values that are outside the accepted ranges
  • Implement a case that return an error if the received values are outside the range or in an incorrect format
  • Implement a case for every issue that can arise and print the error back via USART to the terminal
  • Test on a servo motor
  • Implement a feedback function that prints to USART the angle of the servo at all times
  • Test on multiple servo motors simultaneously
  • Make the operation core independent, aka interrupt based.

Specifications

  • Generate PWM signals to control all ESCs on board
  • Blocks unwanted signals and report the issue back to USART without halting the MCU
  • Core independent, interrupt based, system
  • Can control all 8 ESCs without delays or without affecting other operations
  • Logs and knows the current state of each ESC.

Contacts

Code Quality

  • Every function in header files are documented (inputs/returns/exceptions)
  • The project has automated tests that cover MOST of the functions and branches in functions (pytest/gtest)
  • The code is documented on the wiki (provide link)
@IbixD97 IbixD97 added embedded Embedded team responsible medium ~ a couple days to complete medium priority This issue should be addressed eventually labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedded Embedded team responsible medium priority This issue should be addressed eventually medium ~ a couple days to complete
Projects
None yet
Development

No branches or pull requests

3 participants