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

feat(drs): set up timer control for DRS servo #177

Open
5 tasks
t-bre opened this issue Nov 1, 2022 · 0 comments
Open
5 tasks

feat(drs): set up timer control for DRS servo #177

t-bre opened this issue Nov 1, 2022 · 0 comments
Assignees
Labels
feature New features
Milestone

Comments

@t-bre
Copy link
Member

t-bre commented Nov 1, 2022

Description

  • The DRS servo moves one of the parts of the rear wing to change its aerodynamic properties.
  • The servo we have is the MG996R.
  • The servo is controlled by a pulse of between 1-2ms at a frequency of 50Hz (see datasheet).
  • The length of the pulse controls the servo angle.
  • For DRS, we want the ability to have the servo in one of two possible (ideally configurable) positions.

Tasks

  • Modify VCU.ioc to set up a pin-connected hardware timer for PWM and re-generate code.
  • Add a new software module for DRS and write some code to allow the servo position to be controlled.
  • Write some kind of testbench.
  • Test pulse width using oscilloscope.
  • Test control of actual servo on rear wing.

Additional Notes

  • When re-generating code, delete the Makefile which gets generated in src - we have our own Makefile in the project root. If it doesn't build, check what was added to the generated Makefile and add it to our one.
@t-bre t-bre added the feature New features label Nov 1, 2022
@t-bre t-bre added this to the STAG 9 milestone Nov 1, 2022
@AfiahSukeri AfiahSukeri self-assigned this Nov 8, 2022
@t-bre t-bre pinned this issue Nov 8, 2022
@t-bre t-bre unpinned this issue Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features
Projects
None yet
Development

No branches or pull requests

2 participants