This repo is the software part of an intelligent lighting system for family use, which was run on an arm development board with Android 4.4.
Here is a simple demo:
It was a Hybrid app based on Apache Cordova, which is a great platform with swift development ability and rich tool chains for debugging. It is also a practise of Google Angular framework with Ionic.
As for the hardware part, I made a cute lampshade with the head of KoroSensei, one of my favorite anime character.
Inside the lamp are three 300mA-1W LED in the colors of RGB, respectively, and three PT4115 chips to supply the current and are controled by the PWM signal sent by an Arduino UNO R3. The Arduino was linked to the Android development board via bluetooth.
You must have the following dependency installed first:
-
Cordova
$ npm install -g cordova
-
Ionic
npm install -g ionic
and then install BluetoothSerial plugin with:
$ cordova plugin add cordova-plugin-bluetooth-serial
add a platform with:
$ ionic platform add android
and then test the result with:
$ ionic run android -device
or
$ ionic run browser
MIT License