Skip to content

Dev #72

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

Merged
merged 6 commits into from
May 4, 2021
Merged

Dev #72

merged 6 commits into from
May 4, 2021

Conversation

runger1101001
Copy link
Member

@runger1101001 runger1101001 commented May 2, 2021

3 changes:

  1. added an enable_active_high field to BLDCDriver6PWM. The DRV8316 has an "drvoff" pin - e.g. an enable pin that is active-low. This simple change enables configuring the enable/disable function to support active-low.

  2. SAMD21/SAMD51 PWM code updates. SAME51 support (trivially, code is same as for SAMD51).

  3. moved the location of the sensor calls in move() and loopFOC() to before the enable checks. This means SimpleFOCStudio keeps displaying the values, and also disabled motors don't lose track of full rotations.

this is to use the enable pin on the DRV8316, which is actually a
driver_off pin, and therefore active-low for enabled state
this enables two things:
1. you can still see the sensors change and update in SimpleFOCStudio
even if you disable the motor. This is useful to determine sensor
accuracy etc.
2. you previously ran the risk of losing track of full rotations if the
motor was (e.g. manually) moved while disabled. With this change we
always track the sensor values and keep track of all rotations.
@askuric
Copy link
Member

askuric commented May 4, 2021

Awesome, great work! 😀

@runger1101001 runger1101001 merged commit c9ff03e into simplefoc:dev May 4, 2021
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.

2 participants