Skip to content

eduautomatiza/RGB-LED-strip-esp8266

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RGB-LED-strip-esp8266

This is a project to drive RGB led strips with ESP8266 (nodeMCU module).

The activation is done through a local web interface.

On devices that work with a ".local" domain, the page can be loaded by name. For example: led-10c3b4.local. For other cases, the interface is accessed by IP. Ex .: 192.168.0.101.

The web page is served by ESP8266 on TCP port 80.

To ensure agility, the interaction of the color selection is done using websockets on TCP port 81 and messagens in JSON format.

The firmware accepts updating using OTA on port 82 or via the serial interface.

In the platformio.ini file, you can customize your project by adding the code below:

build_flags = 
  '-D WIFI_SSID="WIFI-SSID"'
  '-D WIFI_PASS="WIFI-PASS"'
  '-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH'
  '-D PCI_VERSION_2'

The Project was made using the Visual Code IDE, Platformio and Arduino Framework for Espressif ESP8266;

The color Picker uses the lib available at https://github.com/jaames/iro.js

For RGB/HSL conversion routines: credits to Marcio Teixeira

Operation 1

Operation 2

Browser Interface

schematics

botton

top1

top2

connections