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

Stepper motors and Johnny five #3

Open
harrysayers opened this issue Mar 18, 2019 · 3 comments
Open

Stepper motors and Johnny five #3

harrysayers opened this issue Mar 18, 2019 · 3 comments

Comments

@harrysayers
Copy link

I've looked hard and far and this is by far the best library for inverse kinematics with Johnny-five. I'm currently building a robotic arm with the use of Johnny five, however, I'm using stepper motors (NEMA 17) instead of Servo motors. I can't see any documentation for using Tharp with stepper motors. Is it possible to use Tharp with stepper motors? if so could I have some indication on how to use it? any help is appreciated.

Thanks very much,
Harry

@dtex
Copy link
Owner

dtex commented Mar 18, 2019

Here's the scoop: Stepper support in Johnny-Five is too basic. This was a function of firmata's own limited stepper support so there wasn't much that could be done without a rewrite of firmata which opened up it's own bag dependencies.

So far I've:

Currently I am:

After that, all I have left after that is to update Tharp. I'd say it should be done by this summer.

@harrysayers
Copy link
Author

Thanks very much for your reply. Great, sounds good. As I'm needing inverse kinematics much sooner than the summer, Would you know anyway or know some resources which would point me in the right direction of implementing inverse kinematics with johnny five and stepper motors.

Thanks for your help,
Harry

@dtex
Copy link
Owner

dtex commented Mar 19, 2019

The firmata stuff is ready to go and is already in the published firmata.js (you'll need a custom build of the sketch from http://configurablefirmata.com), so you can use that to control the stepper. Link to docs.

The IK solvers in Tharp should work, but you will need to map from angle to the absolute position on the stepper in a new @@render function on the stepper instance. You can look at Johnny-Five's servo class to see a @@render method being implemented.

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