Permalink
Fetching contributors…
Cannot retrieve contributors at this time
69 lines (33 sloc) 898 Bytes

ESC - PCA9685

Breadboard for "ESC - PCA9685"

docs/breadboard/esc-PCA9685.png

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

 

Run this example from the command line with:

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

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

  var esc = new five.ESC({
    controller: "PCA9685",
    pin: 1
  });

  var pot = new five.Sensor("A0");

  pot.scale(0, 100).on("change", function() {
    esc.speed(this.value);
  });
});

 

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.