Git Product home page Git Product logo

arduinopixel's Introduction

ArduinoPixel

This project consists of two pieces. The first piece is an Arduino sketch that implements a Web Server and offers an API for controlling a NeoPixel LED Strip. The second piece is an Android app, ArduinoPixel, that connects to the Arduino Web Server and sends commands to control the color and the on/off state of the LED strip.


![promo](http://i859.photobucket.com/albums/ab154/lampnick67/promo__zpsbbabfe87.png)

The Arduino sketch is also available at codebender. You can clone the project, update the controller and network parameters, and upload it straight to your Arduino Ethernet, or any other Arduino compatible board w/ an Ethernet Shield.

The Android application is available on Google Play. Install the app on your phone or tablet, configure the network parameters you set earlier in the Arduino sketch, and you are ready to go. You can watch a demo on YouTube.

API

The server accepts the following HTTP requests:

  • A GET request to /. It responds with a Hello from Arduino Server message.
  • A GET request to /strip/status/. It responds with ON or OFF for the on/off state of the strip.
  • A GET request to /strip/color/. It responds with a JSON representation of the strip's color, e.g. {"r":92,"g":34,"b":127}.
  • A PUT request to /strip/status/on/. It turns the strip on.
  • A PUT request to /strip/status/off/. It turns the strip off.
  • A PUT request to /strip/color/. It changes the strip's color. The data are delivered as a JSON object, e.g. {"r":48,"g":254,"b":176}.

Testing

The Android app was tested on a tablet with Android v4.1.1.

Attribution

The Android app makes use of Piotr Adamus' ColorPicker view.

Thank you Piotr... with your beautiful work, you gave me the motivation I needed to attempt this project.

arduinopixel's People

Watchers

Geric 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.