Overview
The lighting in your home can really change the energy and the mood. This modern floor lamp uses addressable NeoPixel LEDs, a Mini Sparkle Motion with WiFi, and the free, open-source WLED software: a wonderful and easy way to create animations, schedule programs, and take control of the lighting in your house.
This lamp also uses the capacitive touch sensor pads on the Mini Sparkle Motion. A copper foil decoration on the base allows me to turn the lamp on and off and change modes just by tapping it with my toe.
This guide uses version 14.4 of WLED.
Materials
This project runs on a Mini Sparkle Motion board, which is purpose-made for running WLED projects. It also has onboard capacitive touch pin capability so we can easily create our copper tape switch.
NeoPixel lights come in many different shapes, sizes, and densities. For this lamp I chose 60/m NeoPixels, but WLED will work with any of the types that Adafruit sells. The higher density 144/m pixels would also look great with this project. There are also side-light, dual sided, seed pixels and more -- take a look around the shop to find the lights you like best.
I'm using copper foil tape for the capacitive touch switch. This can be cut into shape by hand or with a Cricut vinyl cutter and will function as a decorative toe switch for turning the lamp on and off, and changing modes.
You'll also need some silicone wire in 3 different colors, and it's helpful to have some clear heat shrink to seal the ends of the LED strip.
I used a hot wheels track from Amazon to make the spiral support for my LEDs.
You'll also need a piece of wood or other heavy thing for the base of the lamp, and a pole for the arm. I used a hollow steel tube I found in my garage, but a wooden dowel or PVC pipe would work just as well.
Tools
- Soldering iron & accessories
- Hot glue gun
- Screws & screwdriver
- Drill with small drill bits and large spade bit
- Silicone caulk & caulking gun
Page last edited November 05, 2026
Wiring Diagram
- Mini Sparkle Motion 32 --> NeoPixel IN
- Mini Sparkle Motion 5v --> NeoPixel 5v & Screw terminal +
- Mini Sparkle Motion G --> NeoPixel G & Screw terminal G
- Mini Sparkle Motion 27 --> wire for capacitive touch
Power the project through the USB port on the Mini Sparkle Motion.
Page last edited November 05, 2026
WLED Installation
This page will guide you through how to install WLED on the Mini Sparkle Motion.
The Mini Sparkle Motion has a USB to serial chip which may need a driver installed before you can install WLED. Head over to the How to Install Drivers for WCH USB to Serial Chips tutorial, and download and install the new driver.
Install WLED
These next steps require a Web Serial-compatible browser. As of this writing, that means Google Chrome, Microsoft Edge, Firefox 151 or Opera “desktop” browsers. Other browsers (Safari, older versions of Firefox, Explorer and anything mobile) won’t work.
Visit https://install.wled.me/
Plug your microcontroller into your computer with a known good USB cable. Click "Install" and select the port for your board.
Depending on the USB-to-serial bridge chip on the board, you might see one or two serial ports. On Mac, for instance, there might be both “/dev/cu.usbmodem[number]” and “/dev/cu.wchusbserial[number]”. Use the “wchusbserial” one.
After successful installation, enter your WiFi network name and password when prompted. This must be a 2.4 GHz WiFi network; ESP32 does not support 5 GHz networks. If it can’t connect, then as a fallback WLED will create its own 2.4 GHz WiFi access point.
If you don't see the "Connect to Wi-Fi" prompt, you'll need to set up your WiFi network using AP (access point) mode. Open up your WiFi settings and look for a WiFi network called WLED-AP. Connect to this network using the default password wled1234. The WLED interface will pop up in its own browser.
From here, go into Config/Wifi Settings and enter your WiFi credentials near the top. Give your project a name in the mDNS field a little further down the page. Now you can type in "projectname.local" (where "projectname" is your mDNS name) into any web browser on the same wifi network to access your microcontroller.
You can also scan the QR code below to open access point mode.
For more help and troubleshooting tips visit the Getting Started page on the WLED knowledge base.
WiFi Setup
Head to the WiFi Setup screen under Config and create a good URL so you can control your project from any web-enabled device. Call it something you'll remember, that's easy to type into any web browser on your WiFi network in order to connect to your project.
In Safari or Chrome on your phone or computer, type in this web address to access the WLED interface: http://projectname.local (where "projectname" is whatever you put into this field).
Check out the Additional Settings page for more info on accessing your project. WLED has an "access point mode" that doesn't require a WiFi network for when you're out on the go. It's also helpful to download one of the WLED apps to help manage and organize your projects.
Enable AudioReactive Mode
Do this first before setting up your LED preferences with your GPIO number.
Click on "config" and head to the USERMODS tab. Scroll down a bit and you'll find the AudioReactive section.
If you want to add sound reactive modes to your lamp then click the box to enable, then enter the settings and the Digitalmic section as follows:
- Type: SPH0654
- Pin I2S SD: 9
- Pin I2S WS: 10
- Pin I2S SCK: 23
The other pins are unused.
Reboot your Sparkle Motion Mini for changes to take effect.
Next, head to the LED Preferences tab under the Config menu.
Scroll down to Hardware Setup. Put your total number of LEDs into the Length field and change GPIO to pin 32, the GPIO NUMBER associated with the LED data pin on your Mini Sparkle Motion. Make sure to select the correct Color Order for your LEDs as well. You know you've got it right when your pixels come on in a warm yellow.
If the GPIO number appears in red and won't let you select it, check the previous step: this board is configured with pin 32 assigned to the microphone, so you need to change it there before you can set it up as your LED GPIO.
Now you can use any computer or handheld device to control your LEDs.
Make sure your device is on the same WiFi network as your board. Navigate to your custom URL (projectname.local/ ) in a web browser. You'll see a color picker above a whole bunch of color palette choices.
Choose a color, choose an effect, and watch your lights animate and glow!
Save your favorite combinations as presets, create playlists, control the speed and intensity of the animations, and lots more. This web app is incredibly intuitive and easy to use.
Head over to the WLED wiki at https://kno.wled.ge/ to delve into all the particulars.
Troubleshooting
If your lights didn't come on, here are a few things to try:
- Head back to WLED and check your pinout configuration under LED Preferences. Be sure the pin number is the correct GPIO for the attachment point you used.
- Check your wiring! Be sure you connected to the IN end of the LED strip. These strips can be inconsistent so this is a pretty common problem. Use an alligator clip to try connecting the data wire on the other end (the power and ground wires should work from either end).
- Try re-uploading the WLED software.
- If the lights come on but you can't control them: i.e. you type in "projectname.local" into your browser and it won't connect, make sure you're on the correct WiFi network. If you're on a different network than the one you set up the sofware on, you won't see the WLED connection.
- If your lights came on in blue or green instead of yellow, your color order is wrong. See below to fix.
- If only half your lights came on, be sure you've got the correct number in the "length" field under LED preferences.
- If your lights came on in a variety of weird colors and looking like a 1950s diner interior, you may have the wrong LED strip type selected. RGBW strips and RGB strips are not the same, so be sure you've got the correct strip type or you'll get very odd behavior.
- If your microcontroller hangs or keeps rebooting, or gets really hot, you may have the power and ground lines switched. Unplug right away and check: this is a fast way to brick your controller.
Page last edited November 05, 2026
Electronics Assembly
Solder four wires to the Mini Sparkle Motion
- Red to +5v
- Black to G
- White to 32
- Yellow to 27
The red, black, and white wires will connect to the NeoPixels:
- Red to +5v
- Black to G
- White to DI (data IN)
Strip a little shielding off the end of the yellow wire but don't connect it to anything yet. This will become our capacitive touch switch.
Once you've got the software installed, plug in the Mini Sparkle Motion to power via the onboard USB-C port. Your lights should come on in a soft yellow color.
Troubleshooting
If the lights don't come on, here are a couple things to try:
- Be sure you soldered to the correct end of the LED strip. These strips are directional, and won't work if you connect the data wire to the wrong end. More about how to solder NeoPixels here
- Open the WLED software and go to the LED Settings page. Make sure you have the correct pin (GPIO) entered here.
- If it's still not working try reinstalling WLED.
Page last edited November 05, 2026
Create Presets
Animation Presets
Once your lights are working, it's time for the fun part: creating light animations using WLED presets. This is easy and intuitive in WLED. Choose a color palette and an effect, then play with the sliders at the bottom of the Effect Mode column to customize the effect.
When you find something you like, click the +Preset button in the Presets tab and give your preset a name, then save it. You can reorder them using the "Save to ID" field.
You can create hundreds of presets using the preprogrammed effects, so take some time to play around and see what looks good on your LED strip.
Create at least 3 presets, and be sure they are saved to ID numbers 1-3. Our next step will be to set up the capacitive touch switch to toggle between these presets.
Control Presets
The WLED preset interface can also be used to send control commands to the LED strip. The capacitive touch switch can be used for a wide variety of functions: change modes, change brightness, toggle the lights on and off, or a whole host of other features.
Each button in WLED has 3 options: a short press, a long press, or a double press. I want my lamp to cycle through presets with a short touch, and to turn on or off with a long touch. Here's how I set up a control preset for each of these features.
Cycle through Presets
Click +Preset and then uncheck the "Use current state" checkbox. This will open up an API command window within the preset module.
Call the effect "Next_FX" and type {"ps":"1~3~"} into the API command box. This tells WLED to cycle through presets 1-3. If you'd like to cycle through more presets, change the 3 to the number of presets you have.
Be sure your preset IDs include all the numbers -- skipping a number will break this command.
Give your preset an ID number that's above the range of your preset numbers -- I called mine 9.
Create another preset and call it "Toggle". Uncheck the "use current state" checkbox and enter T=2 into the API command box. This will tell the LEDs to toggle between on and off. Save this one to ID 10.
On the next page we'll connect these control presets to our capacitive touch button.
Find out more about creating these control presets here:
https://kno.wled.ge/features/presets/
You can enter either JSON commands or HTTP commands into this command box, giving you a lot of control over your WLED project.
Page last edited November 05, 2026
I soldered my capacitive touch wire to pin GPIO 27.
In the LED Settings screen, scroll to the button setup section and set button 0 to use pin 27, with the type set as "touch".
Next, head to the Time & Macros config screen. Scroll down to the Button actions area.
For button 0, enter the number assigned to the two control presets you made on the last page. My Next_FX preset is number 9, so I entered 9 under "short press", and my Toggle preset is number 10, so I've got that set up as a "long press".
Test your setup by stripping a bit of shielding off the end of your capacitive touch wire and touching the bare wire. You should see your LED strip scrolling through presets with a short touch, and the strip turning on and off with a longer touch.
If your strip is not reacting the way you expect, here are a few things to try:
- Try touching the copper pad on the board instead of the wire. If it works when you do that, change the Touch Threshold number on the LED settings page until the sensitivity is right. With a 5" wire I found that a threshold of 52 seems to work well.
- Double check both the LED preferences page and the Time & Macros page to be sure your settings are correct, and have saved.
- Be sure your presets are correctly numbered. WLED gets confused if the presets have non-sequential IDs (so make sure they're numbered 1, 2, 3 rather than 2, 5, 7).
- Try soldering to a different GPIO pin, and make sure to update the pin number in LED Preferences. Pins 14 and 13 will also work as capacitive touch pins.
Page last edited November 05, 2026
Build the Lamp
I used a scrap piece of wood that is around 10" square and 7/8" thick for my lamp. I used a spade bit to drill a hole in the center. My lamp arm is made of steel and has a screw mount inside one end, so all I need is a way to secure it to the base and I can screw it together from underneath.
I added some EVA foam rubber feet to the bottom of the base, so there's room for the cord underneath.
I ended up drilling a second hole (not shown) next to the center hole for the USB cord to come through. I did it after the lamp was built, but this would have been a better moment.
I drilled three holes in my steel lamp arm: one at the top, middle, and bottom to attach the track to the arm with screws.
Sand the track lightly to help with paint adhesion. Paint really doesn't want to stick to this stuff! I had the most success when I started with a plastic primer spray paint and then did a few top coats of metallic black.
I screwed my lamp arm to the base, and did a test-fit with the track to be sure my screw holes were in the right places. This took a little trial and error but I'm happy with the result.
I took the track back off again to mount the LEDs and diffusion gems.
For diffusion, I'm using these plastic crystals from Amazon. They are fairly lightweight and have an interesting texture. I'd considered using glass pebbles but they'd likely be too heavy and pull the track out of shape. These crystals are perfect. I ordered the 16x22mm size. One bag was the perfect amount for my 5' track.
I used clear silicone caulk to fix the LED strip and gems to the track. It will stick to the silicone casing around the LED strip, and also give me a firm setting for the gems. It dries clear, so won't block the light.
This brand takes 5-7 days to fully dry, but I had a decent hold after 24 hours and was able to assemble the lamp by moving carefully.
I pressed the LED strip into the caulk, then added more on the top and pressed the gems firmly on top, making sure they were all stuck down. Be generous -- really goop it on there.
These gems make a truly wonderful diffusion material. I can't spot individual lights at all.
Once the caulk was dry (enough), I screwed the track back onto the rod at the top, bottom, and middle. I had to do a little adjusting because a fully loaded track weighs quite a bit more than the empty track weighed, but it worked out well in the end.
I put a large piece of black heat shrink over the Mini Sparkle Motion to keep it from shorting, and also to hide it from view. I hot glued it to the back of the track near the lamp base, with the capacitive touch wire and USB port facing down.
For the capacitive touch sensor I decided to use copper tape. I cut some pretty shapes out of a copper tape sheet using my Cricut vinyl cutter. I chose the Adhesive Foil setting and cut one large starflower to use as the main button, and a few more smaller ones just for decoration.
I stuck the big star to the lamp base with the capacitive touch wire underneath, pressing down firmly and smoothing with a straight edge to get a good electrical connection.
I tested touching it with my toe and it works to control the lamp, even through my socks!
My original idea had been to hook the capacitive touch wire up to the metal pole so I could touch the lamp anywhere on the stem and control it. However, the amount of metal in the pole was just too much for my microcontroller. The current fried the microcontroller (not once, but twice!). This may be fixable with a resistor, but the copper foil method works just as well and after being burned twice, I didn't want to keep experimenting.
Page last edited November 05, 2026