A Christmas Tree powered by Adafruit NeoPixels and an ESP8266
- 3 ft. miniature Christmas Tree
- NodeMCU (ESP8266)
- 3 strands of Adafruit NeoPixels 1 meter strips - 30 LEDs a strand
- 1 NeoPixel ring for the star
- 74AHCT125 level shifter (to shift the 3V logic to 5V for the NeoPixels)
- 4700uF 10v capacitor
- 5V 10A power supply
- 470 ohm resistor for NeoPixel input
- Optional terminal blocks main power / for perma-proto
- Optional perma-proto board
- Optional wrapping paper (that will have to be ripped open when servicing the box)
- Runs a UDP server to accept commands over the network. See MCU README.
- Uploaded using PlatformIO and supports local or OTA updates.
Right now there's a basic iOS app that sends UDP packets to the tree.
- I originally went with an Adafruit HUZZAH (ESP8266) but replaced it with the NodeMCU for the built in Schottky diode when protoyping and having the USB as well as external power connected. The NodeMCU also includes a voltage divider for inputs which don't matter as much in this application, but could if something like a microphone were to be added for changing lights to music.
- I regret using solid core wiring for this application. D'oh.
With the continuous three meter strip laid out, I measured two spots to solder in power for equal distribution in both directions. I followed the advice from the NeoPixel Überguide.
I soldered on connectors to plug the ring to the end of the strip, which provide both power and data. This serves as a nice quick-disconnect. The ring LEDs are addressed as indices 90-105.