[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[pi8] Installing Cylon.js for Raspberry Pi

  1. Update your raspi installation
    1. open a console window and execute
      sudo apt-get update
      sudo apt-get upgrade
  2. Install last node.js and npm (node package manager)
    curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
    sudo apt-get install -y nodejs npm
  3. Install cylon.js and cylon-raspi
    sudo npm install cylon cylon-raspi cylon-gpio cylon-i2c

More installation procedures

  1. Connecting to Raspberry Pi GPIO
    1. Execute
      sudo usermod -G gpio pi
    2. needs more ??? (See Cylon-raspi NPM page)
  2. Enabling the Raspberry Pi i2c on Raspbian
    sudo apt-get install i2c-tools
    1. run sudo raspi-config
      1. choose "Update"
      2. choose "Interfacing Options"/"I2C"/"enable"
  3. Enabling PWM output on GPIO pins
    1. You need to install and have pi-blaster running in the raspberry-pi
  4. See Cylon-raspi NPM page