Giter VIP home page Giter VIP logo

arduinorgblighting's Introduction

ArduinoRGBLighting

Arduino powered RGB lighting controller with HTTP POST API, self hosted web control panel and Android application.

Requirements

  • Webduino which is used to provide a better HTTP server on the Arduino
  • jQuery is used for the web control page, however all that is requiered is a connection to the internet on the client as the JS is pulled from the jQuery site
  • There is possibly more, I will update the list as I find them

Installation/Setup

After constructing a driver similar to that shown in the schmatic upload the sketch provided to your Arduino, changing the IP and I/O pins as needed.

A better guide is available on Instructables here.

Usage

The internal web control page can be accessed by navigating to the IP address assigned to the controller.

The Android app can be configured by providing the URL to the webservice, this is http://IP_OF_CONTROLLER/service

POST API

The HTTP POST API takes 5 parameters:

  • trans = Transition type: 0=No Transition, 1=Fade, 2=Fade Through Black
  • time = Time taken for transition (no effect for trans=0)
  • r = Red light level (0<=r<=255)
  • g = Green light level (0<=g<=255)
  • b = Blue light level (0<=b<=255)

The controller will respond with an XML formatted response giving details of the last request, an example of which is given below.

<?xml version="1.0"?>
<xml>
<currentColour>
<r>255</r>
<g>255</g>
<b>140</b>
</currentColour>
<mode>1</mode>
<lastTime>500</lastTime>
<lastTransition>1</lastTransition>
<exec>FALSE</exec>
</xml>

arduinorgblighting's People

Contributors

dannixon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.