Run this example from the command line with:

node eg/stepper-sweep.js
var five = require("johnny-five");
var board = new five.Board();

board.on("ready", function() {
   * In order to use the Stepper class, your board must be flashed with
   * either of the following:
   * - AdvancedFirmata
   * - ConfigurableFirmata

  var k = 0;
  var stepper = new five.Stepper({
    type: five.Stepper.TYPE.DRIVER,
    stepsPerRev: 200,
    pins: [11, 12]

  stepper.rpm(180).ccw().step(2000, function() {


Component Classes in this example:

Hi! The Johnny-Five community is building new projects every day. We made this newsletter to tell you about what's new, what's good, and what's next for Open Source robotics. Join us in exploring what we can make together.

Fork me on GitHub