Permalink
Fetching contributors…
Cannot retrieve contributors at this time
69 lines (32 sloc) 917 Bytes

ESCs - An array of ESCs

Breadboard for "ESCs - An array of ESCs"

docs/breadboard/esc-array.png

Fritzing diagram: docs/breadboard/esc-array.fzz

 

Run this example from the command line with:

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

board.on("ready", function() {

  var escs = new five.ESCs([9, 10]);

  // Set the motors to their max speed
  escs.max();

  board.wait(2000, function() {
    // Set the motors to the min speed (stopped)
    escs.min();
  });

});

 

License

Copyright (c) 2012-2014 Rick Waldron waldron.rick@gmail.com Licensed under the MIT license. Copyright (c) 2015-2018 The Johnny-Five Contributors Licensed under the MIT license.