项目作者: FLoMacTep

项目描述 :
ESP controlled WS2812B LED strip
高级语言: C
项目地址: git://github.com/FLoMacTep/ESPWebLEDs.git
创建时间: 2017-11-15T20:20:53Z
项目社区:https://github.com/FLoMacTep/ESPWebLEDs

开源协议:MIT License

下载


ESPWebLEDs

ESP controlled WS2812B LED strip with several effects managed by Web page and GET requests

To setup environment you will need:

  1. ESP8266
  2. WS2812B
  3. Power Supply 5V (for a large number of LEDS)
  4. Arduino IDE with next libraries:
  5. - FastLED
  6. - ESP8266WiFi

To adapt code please edit this lines -

  1. LEDEffects.h
  2. 11 #define DATA_PIN 5 // Input data pin that you will use - review PINS layout for your ESP board
  3. 14 #define NUM_LEDS 64 // Number of LEDs in strip
  4. WebServer.h
  5. 05 const char* ssid = "Wi-Fi Network Name"; //Input your Wi-Fi SSID
  6. 06 const char* password = "Wi-Fi password"; //Input your Wi-Fi password
  7. 24 WiFi.hostname("----"); // Your ESP board network name

Open in browser http://"ESP board IP address”/

GET query is looks like http://192.168.1.134/?sCmd=OFF or http://192.168.1.134/?sCmd=Rainbow

Executing a random effect from Majordomo server:

  1. $ip=$this->getProperty('IP'); // Get ESP IP Address
  2. $effect=getRandomLine("EffectList"); //Get effect name from text file
  3. $cmdURL="http://".$ip."/?sCmd=".$effect.""; // Construct Get Request
  4. geturl($cmdURL); //EXEC Get request

Full list of effects is in file “EffectList”

Please help me to improve arduino code and fix some bugs!

Scheme
espwebleds_bb