[BUG] Lower duty cycle PWM results in motor stall conditions #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: paulM_projects/motorized_fader#6
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to fix:
As a side note, I could potentially write a program that would attempt various duty cycles at different frequencies to figure out which one worked correctly.
This could potentially auto calibrate the fader/motor setup, however it may take up too much space.
Added speed control during the motor movement loop. This should help better test the duty cycle. Now it's configured with a
F_CPU
equal to 1/8 of the crystal so9.6/8=1.2
. I think this could have been part of the issue, it previously assumed no clock divider.A minimum of duty cycle for the PWM has been setup so this is no longer a issue.