Custom version of Jason Coons FastLED webserver for Novel Mutations Costume Controllers (Battery powered ESP8266 based boards with MSGEQ7 and Microphone)
It will work with any ESP8266 based controller.
- All patterns work with XY matrices including irregular matrices.
- Fire with custom palettes in their own drop down based on the colors emitted when certain elements are burnt.
- Rotating color palettes for fire.
- Removed infrared control.
- Added WiFi transmission power setting.
- Remove twinkle functions.
- Made twinkleFOX use its own palette dropdown to clean up pattern drop down and added a couple of palettes to twinkleFOX from twinkle.
- Most patterns are now affected by the speed setting.
- All patterns list which settings affect them (in the drop down next to their name).
- Remove need for Glyphs, Icons and Fonts by using HTML entities in their place. It now fits on an ESP-01 properly.
- Removed unused functions to cleanup code.
- Made all patterns capable of addressing more than 256 LEDs.
- Rotate palettes after each time through all patterns in autoplay mode.
- Added Cylindrical option to wrap certain patterns around at the ends (Fireworks, Storm).
- Added blending to fire to smooth the animation.
- Physical button control. Up to 5 buttons and 15 function calls (Pattern+/-, Palette/Color+/-, Speed+/-, Brightness+/-, Power, Autoplay on/off, WiFI on/off, Playlists on/off, Playlist Selection,
Scrolling Text on/off,Unassigned). The first 2 buttons are enough to control most features. - Intensity slider to control rain intensity and twinkle density.
- Custom playlist option for autoplay.
- Lots of audio patterns.
- Custom playlist just for Audio patterns
https://intrinsically-sublime.github.io/FastLED-XY-Map-Generator/
- Settings
- Fire Palettes -- See Palettes section below
- Speed -- Adjusts the speed the heat travels upwards
- Cooling -- Adjusts the rate at which the heat cells cools (controlled by Audio on CC4P)
- Sparking -- Adjusts the frequency of new embers (controlled by Audio on CC4P)
- Settings
- Speed -- Adjusts the velocity of the shells and the gravity pulling down the sparks
- Settings
- Speed -- Adjusts the rate of rainfall
- Color Picker -- Sets the color of the rain
- Intensity -- Adjusts the intensity of the rain
Storm -- Colored rain falling down from clouds at the top and splashing at the bottom with peridodical lightning bolts
- Settings
- Speed -- Adjusts the rate of rainfall
- Color Picker -- Sets the color of the rain
- Intensity -- Adjusts the intensity of the rain
- Settings
- Speed -- Adjusts the rate the dots move from top to bottom
- Intensity -- Adjusts the intensity of the dots
- Settings
- Speed -- Adjusts the rate of movement of the interference patterns
- Settings
- General Palettes -- See Palettes section below
- Settings
- General Palettes -- See Palettes section below
- Settings
- General Palettes -- See Palettes section below
- Speed -- Adjusts the speed the bar moves
- Settings
- General Palettes -- See Palettes section below
- Speed -- Adjusts the speed the stripes moves
- Settings
- Speed -- Adjusts the speed the bars move
- Settings
- Twinkle Palettes -- See Palettes section below
- Speed -- Rate at which the twinkles fade in and out
- Intensity -- Density of twinkles ranging from 25% to 100% coverage
- Settings
- Color Picker -- Sets the color
- General Palettes -- See Palettes section below
- Audio controlled
- General Palettes -- See Palettes section below
- Audio controlled
- Audio controlled
- Audio controlled
- Audio controlled
- Audio controlled
- Audio controlled
- Audio controlled
- Audio controlled
- Audio controlled
- Audio controlled
- Audio controlled
- Fire Palettes
- Wood -- Orange
- Sodium -- Yellow
- Copper -- Green
- Alcohol -- Blue
- Rubidium -- Indigo
- Potassium -- Violet
- Lithium -- Red
- Rotating -- ↻
- General Palettes
- Rainbow -- Full spectrum
- Rainbow Stripe -- Full spectrum with black stripes
- Cloud -- Pale blues and whites
- Lava -- Dark reds and black
- Ocean -- Blues and greens
- Forest -- Greens and yellows
- Party -- Bright happy colors
- Heat -- Reds, yellows and whites
- TwinkleFOX Palettes
- Incandescent Twinkles
- Red & White Twinkles
- Blue & White Twinkles
- Red, Green & White Twinkles
- Fairy Light Twinkles
- Snow 2 Twinkles
- Holly Twinkles
- Ice Twinkles
- Party Twinkles
- Forest Twinkles
- Lava Twinkles
- Fire Twinkles
- Cloud 2 Twinkles
- Ocean Twinkles
- Rainbow Twinkles
- Retro C9 Twinkles
- Turn LEDs on and off
- Adjust the brightness
- Change the display pattern
- Adjust the color
- Change color palettes
- Adjust individual pattern parameters
- Button control
- Add scrolling text with input via web interface
- Save settings in array to allow each pattern to have their own settings
- Make playlists configurable via web interface
0 = Short press, 1 = Long press, 2 = Extra long press
UP
0 = Brightness++
1 = Speed++
2 = WiFi on/off
LEFT CENTER RIGHT
0 = Pattern-- 0 = Playlist type 0 = Pattern++
1 = Color/Pal-- 1 = Playlists on/off 1 = Color/Pal++
2 = Unassigned 2 = Autoplay on/off 2 = LEDs on/off
DOWN
0 = Brightness--
1 = Speed--
2 = Unassigned
To be updated
Patterns are requested by the app from the ESP8266, so as new patterns are added, they're automatically listed in the app.
The web app is stored in SPIFFS (on-board flash memory).
The web app is a single page app that uses jQuery and Bootstrap. It has buttons for On/Off, a slider for brightness, a pattern selector, and a color picker (using jQuery MiniColors). Event handlers for the controls are wired up, so you don't have to click a 'Send' button after making changes. The brightness slider and the color picker use a delayed event handler, to prevent from flooding the ESP8266 web server with too many requests too quickly.
The only drawback to SPIFFS that I've found so far is uploading the files can be extremely slow, requiring several minutes, sometimes regardless of how large the files are. It can be so slow that I've been just developing the web app and debugging locally on my desktop (with a hard-coded IP for the ESP8266), before uploading to SPIFFS and testing on the ESP8266.
The app is installed via the Arduino IDE which can be downloaded here. The ESP8266 boards will need to be added to the Arduino IDE which is achieved as follows. Click File > Preferences and copy and paste the URL "http://arduino.esp8266.com/stable/package_esp8266com_index.json" into the Additional Boards Manager URLs field. Click OK. Click Tools > Boards: ... > Boards Manager. Find and click on ESP8266 (using the Search function may expedite this). Click on Install. After installation, click on Close and then select your ESP8266 board from the Tools > Board: ... menu.
The app depends on the following libraries. They must either be downloaded from GitHub and placed in the Arduino 'libraries' folder, or installed as described here by using the Arduino library manager.
Download the app code from GitHub using the green Clone or Download button from the GitHub project main page and click Download ZIP. Decompress the ZIP file in your Arduino sketch folder.
The web app needs to be uploaded to the ESP8266's SPIFFS. You can do this within the Arduino IDE after installing the Arduino ESP8266FS tool.
With ESP8266FS installed upload the web app using ESP8266 Sketch Data Upload
command in the Arduino Tools menu.
Then enter your wi-fi network SSID and password in the WiFi.h file, and upload the sketch using the Upload button.
The web app files can be gzip compressed before uploading to SPIFFS by running the following command:
gzip -r data/
The ESP8266WebServer will automatically serve any .gz file. The file index.htm.gz will get served as index.htm, with the content-encoding header set to gzip, so the browser knows to decompress it. The ESP8266WebServer doesn't seem to like the Glyphicon fonts gzipped, though, so I decompress them with this command:
gunzip -r data/fonts/
The firmware implements basic RESTful web services using the ESP8266WebServer library. Current values are requested with HTTP GETs, and values are set with POSTs using query string parameters. It can run in connected or standalone access point modes.