Skip to content

increase servo resolution#19

Merged
antonvh merged 1 commit intoAntonsMindstorms:masterfrom
kai-morich:master
Apr 27, 2025
Merged

increase servo resolution#19
antonvh merged 1 commit intoAntonsMindstorms:masterfrom
kai-morich:master

Conversation

@kai-morich
Copy link
Contributor

for a servo with min_pulse=500, max_pulse=2500, min_angle=0, max_angle=360 the resolution was only 3-4°

angle pulse duty duty_u16
0 500 26 1638
1 505 26 1656
2 511 26 1674
3 516 26 1693
4 522 27 1711
5 527 27 1729
6 533 27 1747
7 538 28 1765
8 544 28 1784
9 550 28 1802
10 555 28 1820
11 561 29 1838

for a servo with min_pulse=500, max_pulse=2500, min_angle=0, max_angle=360 the resolution was only 3-4°

angle pulse duty duty_u16
   0   500   26   1638
   1   505   26   1656
   2   511   26   1674
   3   516   26   1693
   4   522   27   1711
   5   527   27   1729
   6   533   27   1747
   7   538   28   1765
   8   544   28   1784
   9   550   28   1802
  10   555   28   1820
  11   561   29   1838
@antonvh antonvh merged commit b1a8750 into AntonsMindstorms:master Apr 27, 2025
@antonvh
Copy link
Collaborator

antonvh commented Apr 27, 2025

Thanks.

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