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

Line updateSettings in chipdrive.py #2

Open
AndyThirtover opened this issue Jul 18, 2019 · 1 comment
Open

Line updateSettings in chipdrive.py #2

AndyThirtover opened this issue Jul 18, 2019 · 1 comment

Comments

@AndyThirtover
Copy link

AndyThirtover commented Jul 18, 2019

Hi there --- I've now got the right board with R1 deleted and this code is working for me.

I've found that updateSettings throws this error:

mot.updateSettings([{'maxrpm':10}])
Traceback (most recent call last):
File "", line 1, in
File "/home/pi/tripipy/chipdrive.py", line 106, in updateSettings
if 'stepsPerRev' in upates:
NameError: name 'upates' is not defined

Line 106 has upates instead of updates.

Now I'm trying to work out the settings for the quietest possible drive of a Nema 17 - perhaps a couple of pointers would help and I'll document my findings!

Double Regards

Andy

@pootle
Copy link
Owner

pootle commented Jul 19, 2019

Oops - how did that escape!

To get the fastest speed, test with a fairly slow ramp rate set. Also the higher the driving voltage you can use the better, and use current limiting to stop it heating up - although I've not messed with current limiting on these chips, I used it to good effect on an a4988. The fastest step rate in the datasheet for the motor should be a good starting point. They tend not to have much torque at high speed, so depending on the load you have to drive, you mahy have to back off a bit.

Good luck!

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

2 participants