Skip to content

LivingOrb/Software-RasberryPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Living Orb - Software for Raspberry Pi

Contains three parts:

  1. server: a Node.js app, which runs an "admin" web interface controlling the device;
  2. game: a C++ app, launched by the web interface, which runs a mode based on sensor inputs and outputs on LEDs;
  3. rotation-calibration: a C++ app, which sets the sensor-to-device transformation matrix.

Server

The web interface features an editor (ACE) and remotely controls the device.

The modes are saved and loaded from the modes directory. In order to be able

Installation

Install Node.js, then in the server directory, install dependencies with npm install.

Run the server with node app.js.

Documentation in progress:

  • Setting Wi-Fi
  • Securing the web interface

Game

The app is responsible for taking inputs from sensors and outputting colors on LEDs.

A mode binds the inputs to the outputs. This is a Lua script, which can be edited on the web interface.

Documentation in progress:

  • API
  • Tutorial

Build

Build system: scons

Libraries:

  1. adxl345.c
  2. hmc5883l
  3. lua
  4. rpi_ws281x

License

Copyright 2016 Jonathan Giroux

CC BY-NC-SA 4.0