Skip to content
ESP8266 software for driving LED strips, connected to WiFi and MQTT
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
3d printing Christmas tree related files and code examples Dec 20, 2019


ESP8266 software for driving LED strips, connected to WiFi and MQTT.


See the schematic in the "electronics" folder.

The diode is used to lower the LED strip supply voltage so that it works with the 3.3V output of the ESP8266. See details here:

The resistor removes spikes (much cleaner signal), a slightly different value should work fine.

Outdoor lights

The LED strip is installed as shown in the picture below. The vertical segments (25 LEDs) are used as a matrix, the horizontal segments (3 LEDs) are currently not used. I used a spreadsheet, exported the matrices as csv and did some copy-pasting to define the ledmap.hpp content.

outdoor LEDs matrix

Bitmap files (ScrollingPicture animation)

The .bmp files displayed by the ScrollingPicture animation can be generated with the GIMP. Its height must match the height of the pixel matrix. The width does not matter. The file must be saved using these options: GIMP bmp file saving options

These files must then be uploaded to SPIFFS. Place them in the "data" folder and execute the PlatformIO task "Upload File System image".

Christmas tree

This code can also be used for a 3D printed christmas tree:

Christmas tree animated gif

Someday it might be possible to only change the configuration file, but for now you have to use the ".TREE-EXAMPLE" versions of the following files: main.cpp, config.hpp, ledmap.hpp. The LED matrix in the ledmap.hpp file is composed of a single row.

Components of the Christmas tree: Christmas tree components

Detail of the LED strip: Christmas tree led strips

More pictures in the "images" folder.

You can’t perform that action at this time.