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

Steppers not supported? #29

Open
rubenmp8 opened this issue Apr 27, 2015 · 10 comments
Open

Steppers not supported? #29

rubenmp8 opened this issue Apr 27, 2015 · 10 comments

Comments

@rubenmp8
Copy link

I am trying to create a stepper control on an Edison board by doing the following taken from the johnny-five docs

stepper = new five.Stepper({
type: five.Stepper.TYPE.DRIVER,
stepsPerRev: 200,
pins: {
step: 11,
dir: 13
}
});

However I am getting a Stepper is not supported error

Error: Stepper is not supported
at new Stepper (/home/rmperez/test/node_modules/johnny-five/lib/stepper.js:128:11)
at initializeStepper (/home/rmperez/test/app/controllers/mcu.js:28:13)
at Board.exports.gotoPosition (/home/rmperez/test/app/controllers/mcu.js:41:3)

I made sure to upload a sketch using AdvancedFirmata before this. Are steppers not supported in galileo-io or am I doing something incorrectly? Thanks

@rwaldron
Copy link
Owner

Thanks for the report, unfortunately...

I am trying to create a stepper control on an Edison board by doing the following taken from the johnny-five docs.
...
However I am getting a Stepper is not supported error

This is correct. The docs also include this notice:

In order to use the Stepper class, your board must be flashed with AdvancedFirmata, which is available here: https://github.com/soundanalogous/AdvancedFirmata

(And the platform page: http://johnny-five.io/platform-support/#intel-edison-arduino)

I apologize for this being unclear, and I have updated that to be more specific:

Currently, Stepper is only supported when using Johnny-Five with an Arduino (tethered via serial usb). In order to use the Stepper class, your board must be flashed with AdvancedFirmata, which is available here: https://github.com/soundanalogous/AdvancedFirmata

Please note that this is only temporary. Updates to follow

@rwaldron
Copy link
Owner

Also, you'll want to remove that sketch from the system:

rm /sketch/sketch.elf 

@rwaldron
Copy link
Owner

As it turns out, if you're using the SparkFun Arduino Block, you can flash Advanced Firmata to the Arduino and run JS scripts from the Edison. https://github.com/rwaldron/galileo-io#sparkfun-edison-arduino-block

@rubenmp8
Copy link
Author

Cool, I have the arduino breakout board, but I'll look into using the Sparkfun block as a temporary workaround.

Out of curiosity, what are the issues blocking Stepper support on edison+arduino breakout board?

@rwaldron
Copy link
Owner

Out of curiosity, what are the issues blocking Stepper support on edison+arduino breakout board?

None, I just haven't finished writing support yet :)

I worked on it all day today, should be ready for testing tomorrow-ish.

@rubenmp8
Copy link
Author

Awesome, thanks a bunch for working on this immediately!

@rwaldron
Copy link
Owner

Sometimes I just need a little outside motivation ;)

Appreciate you bringing this bug :)

@rwaldron
Copy link
Owner

rwaldron commented May 1, 2015

Update:

  • Stepper support is nearly there
  • Speed is a problem and has been the cause of delays

@rwaldron
Copy link
Owner

rwaldron commented May 8, 2015

No matter what I try, I cannot get the speed to increase beyond a certain point.

@rubenmp8
Copy link
Author

rubenmp8 commented May 8, 2015

Ouch, how slow are we talking?

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