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

Warning : Example code spins motor up to high rpm #2

Open
VeryOldFrank opened this issue Apr 5, 2021 · 0 comments
Open

Warning : Example code spins motor up to high rpm #2

VeryOldFrank opened this issue Apr 5, 2021 · 0 comments

Comments

@VeryOldFrank
Copy link

In the example, the section that moves the motor writes
0x1000 rpm per second max acceleration
0x1000 rpm per second max acceleration
0x1000 rpm target motor speed
The comment each time says that this is 1000rpm.
Problem: This is misleading and potentially somewhat dangerous
What happens is that 1000 Hex is written and the motor is spun up to 4096rpm (decimal).
It is also accelerating and decelerating at 4096rpm per second.
I would recommend that
a) Code: for an initial proof of motor movement, a much lower speed and acceleration would be chosen. So change 0x1000 to 0x20 everywhere and change the comment to indicate that this is 81rpm in decimal.
b) Environment: Make sure everything is safe - your motor's axis should be physically disconnected from external machinery.

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

No branches or pull requests

1 participant