Wiring

This wiring is NOT best practice, however, for th epurposes of testing it’ll work just fine. If you want a proper setup I suggest reading Adafruit’s NeoPixel UberGuide.

The main issue here is that the LEDs are being powered directly from the board, on a 3v3 line, rather than an external power supply. Furthermore, there is 0 protection against power surges whihc could potentially fry the LEDs. NodeMCU Wiring

WLED Setup

WLED is a piece of software that will run on an ESP8266 enabled device with both a web GUI and an Android application to control it. There are many pre-programmed effects with the ability to set the number of LEDs and even split LED strips into different segments, allowing for separate control of segments

Installing WLED

Important

This is for the NodeMCU with an ESP8266. If you flash a different device you could end up bricking your device

Installing WLED requires a custom binary to be flashed to the device.

  1. First step is to install the flashing tool called ‘esptool.py
$ pip3 install esptool
  1. Download the binary file (contains the firmware) here
  2. Connect the NodeMCU device
  3. Run the ESPTool flasher
$ esptool.py write_flash 0x0 ./wled_0.9.1.bin
  1. Use a WiFi enabled device and connect to the NodeMCU access point: ‘WLED-AP
  2. Go to the address http://4.3.2.1 in your browser
  3. Configure the NodeMCU to connect to your own access point. This is under the settings menu (small cog)

LED Time

The device is now setup. You can connect back to you home network and enter the IP address of the NodeMCU. This should present you with a dashboard and I would encourage you to have a play around before going straight to Googling things.

Furthermore, there is an Android app which provides a slightly better interface when on mobile. The app can be downloaded here

To add to the RGB awesome, there is a Home Assistant integration for WLED devices. Have a look at the HomeAssistant website