Giter Club home page Giter Club logo

esp8266-ws2811-rgb-led-strip's Introduction

esp8266-ws2811-rgb-led-strip

NodeMCU based code for a HTTP based control for WS2811 LEDs

Features:

  • Supports multiple WIFI setups; automatically hops between WiFis until the first working one is found
  • Simple control of the WS2811 RGB LED strip using a HTTP server and query-parameter based requests
  • Supports arbitrary length hex patterns:
    • Can set all LEDs to the same color
    • Can e.g. alternate two colors
    • Can send one color per LED

Requirements

An ESP8266 module running NodeMCU, a blank filesystem, and one free pin

Installation

  1. Make sure your ESP8266 module is running NodeMCU. Flash if not.
  2. Connect the WS2811 to pin GPIO2 (or change the mapping in rgb.lua)
  3. Set up rgb.lua for the number of LEDs you have
  4. Put all *.lua files on the ESP8266 by e.g. using ESPlorer.
  5. Restart your ESP8266

Usage

Webserver is running on port 80 after the module has started up. When a WiFi network is initially found, a "red-green-blue" test pattern is shown across the LED strip. If the strip remains dark, the module is not yet connected to your wifi.

  • To set the RGB strip to red, call: http://ip_of_esp/?FF0000
  • To set the RGB strip to white, call: http://ip_of_esp/?FF
  • To set the RGB strip to alternate between red and green, call: http://ip_of_esp/?FF0000,00FF00 (comma can be omitted)

esp8266-ws2811-rgb-led-strip's People

Contributors

thekroko avatar

Watchers

James Cloos avatar TopperBB 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.