3D-Printed DIY Nanoleafs
I've designed and built an alternative version of the Nanoleaf Light Panel Replica and forked a good software for controlling WS2812b led-strips to work well with the diy nanoleafs. The software and detailed setup instructions can be found on GitHub and is compatible with Harvahammas Nanoleaf version. The nanoleafs were designed in Fusion 360.
The links above are affiliate links
Step 1, Plan your setup
I would recommend making a plan how your leafs should be arranged. Afterwards make a quantity table of all parts that need to be 3D-printed.
Choose how many led pixels you will use in the corners. Every corner must have the same amount of leds in each corner.
I've used 4x leds in each corner, thats 12 led pixels per leaf → 1m of 60 leds/m = 5 leafs
I would not go for more than 5 leds per corner on the 60leds/m led strip, because the strip might interfere with the connector on the side.
Step 2, Choose your diffuser variant
There are 3 different variants of the diffuser available:
- PLA diffuser
- Paper diffuser
- Edged Paper diffuser
The PLA diffuser is recommended if you print on a flat print surface and you get a consistant first layer, for instance if you print on a glass plate.
If you don't get consistant first layers choose the paper diffuser, cut photo paper into pieces using the cutting_tool.stl.
Edged Paper diffuser:
Choose this one, if you don't like the round edges of the regular paper diffuser.
Step 3, Print your parts
Make sure you print all diffusers at 100% infill with white PLA, if you don't print at 100% the infill pattern might shine through.
The base can be printed in black PLA, but any other color will work too. Choose white PLA for the base if you prefer that the leds should shine through a bit on the sides. The base is also available as an M3 variant. The base can be printed at amount any infill.
You can either print the electronics box or just glue the ESP8266 directly onto the first base.
Step 4, Assemble the Leafs
First remove the tape of the backside of the led strip and put it into the corners. All led strip pieces must have the GND line facing downwards. Cut the wire into pieces. Make sure your wire pieces aren't too long, otherwise they might be visible when they are too close to the diffuser. When soldering, mind the arrow, it must face always in the same direction, the arrow must face away from the ESP8266.
Important: All led pieces must be connected in series, no parallel connections!
Step 5, Connect the Leafs
Connect all leafs together with the M4 bolts together. Leave a 4mm gap between all leaf connections. Afterwards connect the endpoint of the leaf to the starting point of the next leaf.
Mind the arrow!
Step 6, Connect the electronics box
Mount the power jack and the Wemos D1 inside. Connect the start of the strip to the pin D4 of ther ESP8266. Connect the remaining wires as shown below.
Use this circuit if the leds 'glitch'
Use electrician tape to isolate the logic level shifter.
Final Step, Mount the 'Nanoleafs'
Make sure you flash the software first and test the leafs. If glitches occur use a logic-level converter. If there are still glitches, check if the data line interferes with other lines. If your leds start to dimm or change color along the strip you might want to connect another power supply at the end of the strip.
If everything works fine, push the diffusers from the top in and use an allen key or a screwdriver to tighten the connections between the leafs.
You can either mount the 'Nanoleafs' using:
- Nails (recommended)
- A rawlplug and a screw
- double sided tape
The software runs on the ESP8266. The web app is stored in SPIFFS (on-board flash memory). I've forked jasoncoon's esp8266 fastled webserver and adjusted all the patterns to look better on the leafs and implemented a way to color individual leafs. Alexa support and Node-RED integration will follow soon.
The software and detailed setup instructions can be found on GitHub.
I've built my Nanoleafs using 12 leafs with 4 leds in each corner. Thats a total of 144 leds (~2.5m of 60leds/m).
I've tested the setup using my lab bench power supply and came to the conclusion that even a 2 amp power supply would be enough. But I went on the safe side with the 3 amp one.
- Removed false rounding of the top edged diffusers