Code Monkey home page Code Monkey logo

arilux_al-lc03's Introduction

Arilux AL-LC03 LED controller

Alternative firmware

Alternative firmware for Arilux AL-LC03 LED controllers, based on the MQTT protocol and a TLS connection. The LED controller is a cheap product commercialized by Banggood.com and can be easily reprogrammed.

Arilux

Features

  • Remote control over the MQTT protocol
  • Remote control over IR codes
  • TLS support

Demonstration

Arilux AL-LC03 + IR + MQTT + Home Assistant

Flash the firmware

Schematic

  • VCC (Arilux) -> VCC (3.3 [V])
  • RX (Arilux) -> TX (FTDI)
  • TX (Arilux) -> RX (FTDI)
  • GPIO0 (Arilux) -> GND (FTDI)
  • GND (Arilux) -> GND (FTDI)

Note: To enter in programming mode, you need to put GPIO0 to LOW while powering the board. It's not possible to reprogram the module without soldering the wire to the ESP8266 module.

ESP-12F layout: https://cdn.solarbotics.com/products/photos/ec129f72948c266ec1502ae5a4d514ba/29240-IMG_0808.jpg

The FTDI from the left gives power and it's connected to an USB charger (VCC, GND). The FTDI from the right is connected to the computer and is used to reprogram the ESP8266 (RX, TX, GND).

Layout

Settings for the Arduino IDE

Parameter Value
Board Generic ESP8266 Module
Flash Mode DIO
Flash Frequency 40 MHz
Upload Using Serial
CPU Frequency 80 MHz
Flash Size 512K (64K SPIFFS)
Reset Method ck
Upload Speed 115200
Port COMX, /dev/ttyUSB0, etc.

Control

IR

The LED controller can be controlled with the IR remote included with the Arilux AL-LC03. The functionalities Flash, Strobe, Fade and Smoothare not implemented yet.

MQTT

State

# Topic Payload
State arilux/state/state ON/OFF
Command arilux/state/set ON/OFF

Brightness

# Topic Payload
State arilux/brightness/state 0-255
Command arilux/brightness/set 0-255

Color

# Topic Payload
State arilux/color/state 0-255,0-255,0-255
Command arilux/color/set 0-255,0-255,0-255

Configuration for Home Assistant

configuration.yaml

mqtt:
  broker: 'm21.cloudmqtt.com'
  username: '[REDACTED]'
  password: '[REDACTED]'
  port: '[REDACTED]'

light:
  - platform: mqtt
    name: 'Arilux RGB Led Controller'
    state_topic: 'arilux/state/state'
    command_topic: 'arilux/state/set'
    brightness_state_topic: 'arilux/brightness/state'
    brightness_command_topic: 'arilux/brightness/set'
    rgb_state_topic: 'arilux/color/state'
    rgb_command_topic: 'arilux/color/set'

TODO

  • Flash
  • Strobe
  • Fade
  • Smooth

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.

If you like the content of this repo, please add a star! Thank you!

arilux_al-lc03's People

Contributors

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