Download the provided STL or STEP files and load them into your preferred slicing software.
Adjust the settings (infill, layer height, supports) if necessary and print each part. I used white PLA with 15% infill, layer height 0.2mm. For the diffuser, which is just a solid cylinder, print it in vase mode.
Once printing is complete, set the parts aside for assembly later.
Flashing WLED onto the D1 MiniThere are two common methods to get WLED running on your D1 Mini:
Method 1: Web FlasherConnect your D1 Mini via USB.
- Connect your D1 Mini via USB.
Navigate to the WLED Web Installer in a Chrome- or Edge-based browser. https://install.wled.me/
- Navigate to the WLED Web Installer in a Chrome- or Edge-based browser. https://install.wled.me/
Follow the on-screen instructions to select your device and flash WLED directly.
- Follow the on-screen instructions to select your device and flash WLED directly.
Download the latest WLED binary (e.g., WLED_0.15.0_ESP8266.bin) from theWLED releases page.
- Download the latest WLED binary (e.g., WLED_0.15.0_ESP8266.bin) from theWLED releases page.
Install and runESPHome-Flasher.
- Install and runESPHome-Flasher.
Select your downloaded.bin file and the correct COM port for your D1 Mini.
- Select your downloaded.bin file and the correct COM port for your D1 Mini.
Click Flash ESP and wait for the process to complete.
- Click Flash ESP and wait for the process to complete.
Once WLED is flashed, your D1 Mini is ready to power and control the LED strips in the upcoming steps.
Step 2: Prepare the LED StripsCut the LED Strips:I’m using WS2812b LED strips 30 LEDs per meter.
Each of my four strips have 5 LEDs, which measures roughly 167mm in length per strip.
Use scissors to cut at the designated cut lines between LEDs.
Prepare the Wires:For each strip, cut three short wire pieces (one for +5V, one for Ground, and one for Data).I used 30mm lengths to keep everything tidy and minimize excess wiring.
Solder the Wires:Carefully solder each wire to the corresponding pad: 5V to 5V, Ground to GND, Data In to DI (or whatever label the strip provides). Pay attention to data direction! The arrow on each LED strip indicates the flow of data, so make sure you’re wiring from the controller output to the arrow’s input side.
Double-check your connections before moving on. Proper wiring now will save headaches later!
Step 3: AssembleSolder the D1 Mini ConnectionsAttach the black wire to GND, the red wire to 5V, and the green wire to pin D1 (GPIO5). Use slightly longer wires than you think you’ll need; you can always trim the excess later.
Mount the D1 MiniApply a dab of glue to the back of the D1 Mini and secure it in place inside your printed enclosure (refer to the image if provided).
Make sure the board sits firmly and the USB port remains accessible.
Join the Printed PartsAlign the two 3D-printed pieces and thread the wires through the designated hole.
Secure the parts together with M2 screws and hex nuts. Tighten gently to avoid damaging the plastic.
Before connecting the first LED strip, solder an electrolytic capacitor across the 5V and GND lines.
Double-check the capacitor’s polarity: negative to GND, positive to 5V.
Peel off the adhesive backing from each strip and stick them to the sides of the enclosure.
Ensure the wires are neat and the strips are positioned for optimal lighting.
With the D1 Mini secured and the strips in place, your mood light is nearly complete!
Plug in the D1 Mini via the USB-C port and wait a moment for it to boot up.
Connect to WLED-APOn your smartphone (or computer), open the Wi-Fi settings and find the network called WLED-AP.
The default password is wled1234.
Once connected, you can either use the default access point setup or go to the Wi-Fi settings page in WLED to join your home network.
Open WLED SettingsAfter connecting, visit http://4.3.2.1 or http://wled.local (depending on your device/browser) to access WLED’s interface.
Tap Settings and select LED Preferences.
Configure LED ParametersUnder Number of LEDs, enter 20 (or the total LED count if you’re using more or fewer).
In Data Pin, set the value to 5 (GPIO5 on the D1 Mini).
Save these settings to apply them. The D1 Mini will reboot and if all the LEDs are orange, all is well.
Finally, place the diffuser (you can glue it in place, I chose not to) and explore the effects in WLED.
Comments
Please log in or sign up to comment.