beaglebone-io

BeagleBone Black IO Plugin for Johnny-Five

BeagleBone-IO

BeagleBone Black IO Plugin for Johnny-Five

Heavily based on Galileo-IO by Rick Waldron

$ npm install beaglebone-io

For the best user experience with BeagleBone-IO the recommended Operating System is Debian. Debian supports the runtime modification of the Device Tree which is a feature required by BeagleBone-IO. If a directory matching the pattern /sys/devices/bone_capemgr.* exists, the required support is available.

var BeagleBone = require('beaglebone-io');
var board = new BeagleBone();
 
board.on('ready', function () {
  this.digitalWrite(13, this.HIGH);
  this.analogRead('A0', function (value) {
    console.log(value);
  });
});
 

With Johnny-Five

var five = require('johnny-five');
var BeagleBone = require('beaglebone-io');
 
var board = new five.Board({ 
  io: new BeagleBone()
});
 
board.on('ready', function () {
  var led = new five.Led();
  led.blink();
  
  this.repl.inject({ led: led });
});

BeagleBone Black to Arduino UNO

BBB PortArduino PinType
P8_70Digital
P8_81Digital
P8_92Digital
P8_133PWM
P8_104Digital
P9_145PWM
P9_166PWM
P8_117Digital
P8_128Digital
P9_219PWM
P9_4210PWM
P8_1911PWM
P8_1412Digital
USR313Digital / Default Led
P9_39A0Analog Input
P9_40A1Analog Input
P9_37A2Analog Input
P9_38A3Analog Input
P9_35A4Analog Input
P9_36A5Analog Input

For I2C:

BBB PortType
P9_20I2C SDA
P9_19I2C SCL

Copyright (c) Julian Duque, Alan Yorinks, Brian Cooke 2014

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.