Skip to content

Latest commit

 

History

History
86 lines (62 loc) · 3.81 KB

README.md

File metadata and controls

86 lines (62 loc) · 3.81 KB

Donate to support

spacebrew links

YunLamp

A simple Ionic Application that controls an Arduino RGB Lamp using Spacebrew.cc

Setup

Requirements to use this sapp:

npm (Node Package Manager, it comes with node.js installation)

Just in case, if you want to update to npm latest version:

$ sudo npm install npm -g
Cordova & Ionic Cli

To install both of them on your system just launch this command:

$ sudo npm install cordova ionic -g

Cloning this Repo

To start editing this Ionic Project clone the repo or download the zip:

Cloning the Git

To clone this repo simply launch this command:

$ git clone https://github.com/imakkie/yunlamp

Install NPM Dependencies

Once the repo is cloned or the zip is downloaded get in the yunlamp folder through your Terminal App and launch this command to install all needed dependencies:

$ npm install

Deploy the sketch to Arduino

Inside this repo you will also find arduino_spacebrew.ino, thats the sketch you need to load on the board to make sure everything will work, this version is intended to work on the Arduino Yun Board. Also you might want to connect your RGB Led Strip following this scheme. You might notice differences from the arduino sketch and this scheme, in my case the RGB wires are plugged differently, in my sketch PIN3 is RED, PIN5 is GREEN and PIN6 is BLUE. led strip scheme

Connect things up inside Spacebrew.cc

This version of the code works using the Spacebrew sandbox, for production cases you might want to host your own Spacebrew Server, follow the guides on Spacebrew websites for more infos.

The Spacebrew Sandbox

Open the Spacebrew Sandbox by visiting this link:

Connect the App to the YunLamp

To connect your app to the lamp just link your YunLampController to the YunLamp like in this image: spacebrew links

Launching the App

After installing the needed dependencies you are done, launch your app with a simple

$ ionic serve

and enjoy! :)

Testing the App with IonicView

You can also preview our beta app on your Ionic View by previewing this code: 5163c3c5

More info

Copyright

Copyright © [2015] Andrea Macchieraldo

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.