Overview
Sparkle like a 1940s starlet with this DIY star crown, inspired by the iconic Hedy Lamarr in Ziegfeld Girl (1941).
Hedy Lamarr wasn't just another Hollywood beauty—she was also a fearless inventor, and wicked smart. While making headlines with her glamorous and sometimes scandalous roles (like in Ecstasy, where she became famous for one of Hollywood’s earliest nude scenes), Hedy was secretly working on a groundbreaking invention to help win World War II. She co-created a “frequency hopping” system to keep Allied torpedoes safe from jamming. That tech became the foundation for what we now use in WiFi and Bluetooth.
This tutorial channels that mix of glam and genius to make a modern, glowing star crown with NeoPixel stars and WLED, perfect for cosplaying the timeless Hedy or adding some sparkle to your next event. Let’s dive into some Old Hollywood glam meets high-tech magic.
The crown is shown here with my Noods Mask, a resin Noods Necklace, and my Oozemaster 3000 LED Drip Dress, running "Carrie Mode" with red blood drips. I was a hit at the Vampire Ball.
This project uses a lipoly battery because it's very tiny and packs a punch in terms of power. My crown is set to a fairly low brightness and it runs for hours on this tiny battery. If you plan to wear the crown for more than a couple hours, you may want to pick up 2 batteries so you always have a charged one.
The BFF gives us onboard battery charging for LiPoly batteries, so if you wrap the battery up in lots of tape it'll stay pretty safe. Don't puncture these batteries or get them wet or they can catch fire.
If you're planning to make this for a child, you may want to consider using AAA batteries and a battery extension cable instead. It's much bulkier and less glamorous to do it this way, but it's definitely safer. Clip the battery pack to their clothing or drop it into a hood.
And here are a few more good things to have on hand for electronics projects:
Crown Style Tall Metal Headband (Silver)
Here's the headband I used. This one is great because it's got a lower band for against my head, and a higher band to attach the decorations to, keeping uncomfortable bumps or wires away from my hair.
Additional Materials & Tools
- Zip ties in various sizes
- Hot glue gun
- Soldering iron & accessories
- Gold spray paint
- Masking tape
- White gaffer's tape or duct tape
Page last edited November 05, 2024
Wiring Diagram
The QT Py stacks back-to-back with the power breakout BFF using headers. The NeoPixel stars plug into the Stemma port on the QT Py: Red to +5v, Black to G, and yellow to DI.
The yellow stemma wire connects to pin 19 on the QT Py, so that's the number we'll enter under LED Settings in WLED.
This wiring method is fine for a small project like we've got, using only 17 pixels. If you have more than around 30 pixels in your project the Stemma's tiny wires won't carry enough current to get your pixels really bright. This is a simple and lovely wiring strategy for smaller projects. Check out this guide on powering pixels if you've got a bigger dream in mind.
NeoPixel strips have an IN and OUT end. Be sure you're connecting to the IN end or the pixels won't light up. This is sometimes inconsistent with different lots of pixels so it's a good idea to test before committing with a solder joint. On the build page I'll give some tips about how to figure out which end is which.
The USB port on the QT Py is now available to use as a charging port. This BFF breakout adds USB battery charging to your project. Neat!
Page last edited November 05, 2024
Electronics Assembly
If you're new to soldering headers, check out this handy How to Solder Headers guide for some tips.
Place the included headers short side-up into a solderless breadboard. Solder the QT Py face-up on top of the headers.
Pull the QT Py out and sandwich the BFF on the back of the board, with the USB port and battery port facing the same way and the boards back-to-back.
Solder the headers in place on the BFF. I find it easiest to tape the QT Py to the table to hold it still for this process.
Trim the pokey headers close to the board so you don't stab yourself in the head with them.
Take a look at your NeoPixel strand. It's got a male connector on one end an a female on the other.
Look closely at the wires and you'll also see that one of the wires is marked -- it has tiny dots / stripes all along the length. This is the power (+5v) wire. It's soldered to the red wire on your connector. The black wire is on the far side and is connected to G, leaving the middle wire (green) as the data wire.
NeoPixel strips and strands are directional. There is a data IN end and a data OUT end. The red and black wires could connect at either end, or somewhere in the middle, and the strip will work fine, but that data wire must be connected at IN end or the pixels won't light up.
There's no industry standard for which connector comes on the IN end. Some strands of pixels have male on the IN, some have female. This is kind of annoying, since it means we've got a 50/50 chance of guessing right.
My strand's IN end had a male connector. You can test your setup with alligator clips, or just temporarily stick the wires in the appropriate holes in the QT Py loaded with code to see if you get lights. If you don't, try the data wire at the other end.
Cut the connector off. It's easier to solder to the colored wires on the connector than to the LED strip wires, so leave yourself a little space. Strip a little shielding off the wires and use your alligator clips to temporarily connect them to 5v (red), G (black), and A0 (green) on the QT Py. Plug the QT Py in via its USB port (make sure the software's been loaded and pin number updated) and see if the lights come on. If they don't, try the other end.
Trim your stemma connector also, cutting off any fancy ends. Trim the blue wire to get it out of your way.
Slip some small pieces of heat shrink over the 3 remaining wires. Solder the red wire to the red / striped wire on your NeoPixel strand, the yellow wire to the middle wire, and the black wire to the remaining wire.
Cover all 3 connections with a larger piece of heat shrink to keep them secure.
Troubleshooting
If your lights didn't come on, here are a few things to try:
- Flip the on/off switch on the BFF. Was it just turned off?
- Head back to WLED and check your pinout configuration under LED Preferences. Be sure you've told WLED that we are using pin 19 (yellow wire.. check the pinout)
- Check your wiring! Be sure you soldered to the IN end of the LED strip. These strips can be inconsistent so this is a pretty common problem.
- Try re-uploading the WLED software.
- If the lights come on but you can't control them, make sure you're on the correct WiFi network - if you're on a different network you won't see the WLED connection.
GRB Color Order
Normally when WLED first boots up, the default is a warm yellow light color. But our lights didn't boot up in yellow.. they booted up in green. What gives?
Open the WLED interface (open starcrown.local in a browser window). Choose "solid" as your effect and red as your color from the color picker.
My lights are now bright green. If I choose blue, they turn blue, but if I choose red or green they appear to be swapped. Not to fear: these pixels simply have a different Color Order than standard. There's a setting in WLED to fix this.
Head to the LED Preferences tab under Config and scroll to the Hardware Setup section. Find the box for Color Order and change it from GRB (green, red, blue) to RGB (red, green, blue). This will swap red and green so your strip matches the interface.
FYI: This can be a problem when mixing different types of strips or strands. Normally you can solder together any kind of NeoPixels as long as you match the pins and get the data order right, or solder multiple strands or rings on different pins on your QT Py. But if the color order is different on one of the strands, there's no way to tell WLED to treat the different strands differently. Changing this dropdown will affect your whole project, so take that into account when you're doing your planning. You may need an additional controller if you want to add a different type of lights.
Page last edited November 05, 2024
Build the Crown
I built the spokes on my crown from zip ties. I made 8 spokes with some embellishments in between using a couple different sizes of zip tie. There are 20 pixels to work with, so 8 spokes is about right for want two stars per spoke plus a light in the middle -- I ended up using 17 stars total.
Use strong, stiff ones for the tall spokes. I also zip tied the spokes together using the smaller embellishments, which really helps with stability.
Make the zip ties as tight as you can around the crown. Use pliers to really pull them taut. Even with all the support I added, my crown drooped a little bit with the weight of the LEDs. I'm planning to add some E6000 glue to reinforce -- but don't do that yet since you may change your layout a bit as you add the lights.
I added a coat of gold spray paint at this stage so the zip ties are totally covered.
Starting on one edge, use hot glue to secure the stars in place on the zip ties. I put the wires down the back of the zip ties to hide them as much as possible. Place the lights carefully, folding the wires down behind the stars.
I placed a star on the tip of each spoke, and one on each of the smaller embellishments. The length of the wire will determine where you can place them. Take your time and make it look as neat as possible. I also found it helpful to pull the strand through the embellishments and wrap it around to take up any extra slack.
Once all the lights are on, cut off any additional pixels that didn't get used. My crown ended up with 17 pixels total so I have 3 left over.
I wrapped some gaffer's tape around the wires and the microcontroller, leaving the tiny switch and the battery port accessible. I taped the controller to the side of the headband as unobtrusively as possible.
I left my battery dangling because I like to be able to change it easily. However, this project has onboard battery charging so another option would be to secure and hide the battery and just keep that USB port accessible for charging. This is a neater / tidier solution but limits the glow time, since you need to stop and recharge.
For all-night wear, get a couple of batteries so you can swap them out easily.
I finished up by putting masking tape on all the stars and spray painting the whole assembly gold. This worked really well and gave the crown a "finished" look -- the wires wrapping around now look like fancy wire-wrap jewelry instead of electronics. I may use this technique again!
Add more glue or zip ties as needed to keep the crown upright. I wish I'd used slightly heavier gauge zip ties, since these bend really easily.
Page last edited November 05, 2024
WLED Additional Settings
WLED automatically limits the brightness of your project so your power supply doesn't get over-taxed. The default amperage is 850mA, which is a little low for most power supplies.
For some projects, especially battery-powered projects, having the limiter turned on is a good idea. But if you're not getting the brightness you expect, try adjusting this number to match the amperage of your power supply or battery pack.
Access Point (AP) Mode
While you're home, it's easy to control your project over your local WiFi network. But when you're out at a festival you probably don't have WiFi access. It's still possible to connect to your project and control it using WLED's Access Point Mode.
Turn your project on and give it a minute or two to start broadcasting. Look in your WiFi networks and find WLED-AP - this is a mini WiFi network being broadcast by the microcontroller. Connect to it - the default password is "wled123". An instance of WLED will automatically pop up and you can control your project from anywhere.
If you're putting your lights up in public, it's a good idea to change the AP Mode default password so strangers can't log in and control your lights. This could be a security risk.
AP Mode only broadcasts for a few minutes after you boot up the board so if you don't see the WLED-AP network try rebooting.
There are a couple different apps available to manage your WLED projects. Name and organize your projects, and find them quickly without having to type in a URL. Check the Apple or Android store for downloads.
My favorite is "WLED Native". It allows you to organize multiple instances and easily switch between devices without having to remember any URLs.
Under Config / Security & Updates you will find a place to back up your data. It's a good idea to back up your config file as soon as you're happy with the settings. Save it as a .json file on your computer. Now you can prototype and experiment to your heart's content, and if everything breaks, just re-upload this file. Or, if you're doing another build you can use this feature to copy all your settings from one board to another.
Page last edited November 05, 2024
Programming in WLED
Now it's time for the fun part: make the stars animate and glow and twinkle! This is easy in WLED: you've got a design interface with buttons and sliders and color palettes that all update and animate in real time. What a departure from the Arduino code wrangling one had to do just a few years back! WLED makes programming lights accessible to anyone, coder or not.
Head to starcrown.local (or whatever you named your crown during setup) on your phone or in your web browser. The crown needs to be powered up, but not plugged into your computer -- it will connect over the WiFi. Be sure you're on the same WiFi network you set up in settings or you won't be able to connect.
Choose an effect and choose a color palette. Play with the sliders at the bottom of the Effects panel to speed up or slow down the animation. When you find a combination you like, save it as a Preset in the Presets panel.
Once you have a handful of Presets, you can create a Playlist and run each preset sequentially. WLED gives you control over the amount of time each preset runs plus transition time. It's pretty self-explanatory, and there are a ton of tutorials available online if you get stuck.
Custom Color Choices
For my crown, I want exclusively shades of gold: gold twinkles, gold with glitter, gold blinking, and gold gradients. There aren't any gold-only palettes available, but luckily we don't need them. Most effects can use one or two custom colors chosen from the color wheel.
Click the circle below the color wheel to select it, then choose a color to populate it. Select the next circle to choose that color, and so on. The top few palette choices get populated with the colors you pick, and that becomes the palette for your preset.
- Color 1 just shows the color you've chosen.
- Color Gradient shows a gradient between colors 1-2 or 1-BG.
- Colors 1&2 mixes those colors
- Colors Only places colors 1, 2, and 3 next to each other
Not all effects have this option - for example, you can only choose one color for "Solid" since that effect only shows one color. Some effects have a background color you can choose and some don't. Some use palettes and some don't. Play around until you find effects that give you the control options you want.
There are also custom palette tools available so if you want a specific, complex color pattern you can make that happen. Click the + at the bottom of the palette list to find the custom palette editor.
Page last edited November 05, 2024