🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

cylon-chip

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cylon-chip

Cylon.js adaptor for the C.H.I.P. single-board computer

0.3.0
latest
Source
npm
Version published
Weekly downloads
2
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

Cylon.js For C.H.I.P.

Cylon.js (http://cylonjs.com) is a JavaScript framework for robotics, physical computing, and the Internet of Things (IoT) using Node.js.

This module provides an adaptor for the C.H.I.P. $9 single-board Linux computer (http://getchip.com/). It uses the Chip-IO node module (https://github.com/sandeepmistry/node-chip-io) created by @sandeepmistry, thank you!

Want to use Ruby on robots? Check out our sister project Artoo (http://artoo.io)

Want to use the Go programming language to power your robots? Check out our sister project Gobot (http://gobot.io).

Build Status Code Climate Test Coverage

How to Install

Installing Cylon.js on C.H.I.P. is easy, but must be done on the C.H.I.P. itself.

$ npm install cylon cylon-chip cylon-gpio cylon-i2c

How to Use

var Cylon = require("cylon");

// Initialize the robot
Cylon.robot({
  connections: {
    chip: { adaptor: "chip" }
  },

  devices: {
    led: { driver: "led", pin: "XIO-PO" },
    button: { driver: "button", pin: "XIO-P1" }
  },

  work: function(my) {
    my.button.on('push', function() { my.led.toggle() });
  }
}).start();

The GPIO interface for the C.H.I.P currently supports pins XIO-PO thru XIO-P7. You can also use the STATUS pin for the built-in LED.

The I2C interface for the C.H.I.P currently supports I2C bus 1 using TWI1-SCK and TWI1-SDA only.

How to Connect

You will likely want to connect your development machine to your C.H.I.P. while working on your code. You can do this easily, just by connecting to the C.H.I.P. over USB. Then, you can connect to the C.H.I.P. using Network-Over-USB, and upload driver or configuration changes.

Credentials

By default, the C.H.I.P's login credentials are:

  • user: root
  • pass: chip

Installing Node.js on the C.H.I.P.

Login to the C.H.I.P., and then run the following commands:

sudo apt-get update
sudo apt-get install curl git build-essentials

Now you are ready to install Node.js itself. You can either obtain the latest release from the official Node.js downloads page or use something like Node Version Manager (nvm).

Documentation

We're busy adding documentation to our web site at http://cylonjs.com/ please check there as we continue to work on Cylon.js

Thank you!

Contributing

For our contribution guidelines, please go to https://github.com/hybridgroup/cylon/blob/master/CONTRIBUTING.md .

Release History

For the release history, please go to https://github.com/hybridgroup/cylon-chip/blob/master/RELEASES.md .

License

Copyright (c) 2016 The Hybrid Group. Licensed under the Apache 2.0 license.

Keywords

cylon

FAQs

Package last updated on 12 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts