🌈 ESP32-S3 Rainbow: ZX Spectrum Emulator Board! Get it on Crowd Supply →
View All Posts
read
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi

I got some of these addressable LED curtains a while back with the intention of taking them apart and seeing how hackable they are. Turns out the answer is very hackable!

LED Curtain

The one I got is 2m x 2m with 400 LEDs - that’s a lot of LEDs!

Looking at the power supply my initial thought was that these were just typical WS2818B addressable LEDs as the power supply was the standard 5V.

Power Supply

However, there’s something pretty interesting about these LEDs. I’m very used to the 3 pin addressable LEDs, you have the two power pins - 5V and GND - and you have the two data pins - Din and Dout.

Normal Pinout

You typically daisy chain the LEDs together, the Dout from each LED connects to the Din of the next LED.

Daisy Chain

To get the LEDs to light up you just push all the serial data into one end of the chain of LEDs and then wait for a short delay. Each LED then latches whatever serial data it last saw on it’s Din pin. It’s a pretty simple clever 1 wire serial protocol.

What struck as slightly odd with this LED curtain is that I could only see three wires going down each strand of the curtain. And the bottoms of the strands did not connect to the next strand.

Only Three Wires

So I could not work out how the LEDs could be chained together. Looking closely all the data pins are connected as a bus, there’s no daisy chaining at all - how could this possibly work?

It turns out that these LEDs are pre-programmed with their position on the string - they receive all the data for all the LEDs, but they know which bit of data is relevant to them. It’s pretty bonkers - I’ve no idea how this is done in the factory where the curtains are constructed, but I assume they get a long string of pre-programmed LEDs with preset lengths and then chop them up for the curtains.

I did find a pretty interesting GitHub issue on the WLEDs project where some people have managed to get pretty nice photos of the LEDs

LEDs

I managed to extract the control PCBs and it’s pretty simple.

PCB

The main brains is an ST17H66B this is a Bluetooth Low Energy system on chip. The antenna for it is the wiggly line on the PCB.

It drives the LEDs via this buffer IC (SN74LVC1G125) which level shifts the output from the MCU’s 3.3V up to 5V.

Interestingly, they’ve got an option for not populating this IC and bypassing it - maybe for smaller curtains it’s not needed.

Looking at the output on the oscilloscope we can see what looks like typical WS218B waveforms.

Oscilloscope Trace

We have a burst of data - this is the RGB data for the LEDs - followed by a gap - followed by another burst of data. The gap is what tells the LEDs to latch and display the current data.

So, these LED curtains should be easily hackable and we should be able to drive them using the popular WLED firmware.

So I flashed one of my ESP32s and connected up the LED curtain - and it works!

WLED Working!

What’s more, we can use WLEDs in 2D grid mode and get all sorts of cool patterns to come out.

2D Patterns

All in all a pretty successful hack. There’s a lot more detail in the video - go take a look now!

Related Posts

Self Organising WS2811 LEDs - I've successfully used addressable WS2811 LED strings and an ESP-CAM board to create an adjustable lighting system. The best part is that the image processing code can be duplicated in JavaScript which allows you to use a plain dev board to drive the LEDs instead of needing a camera on your ESP32 board. If you want to replicate this project, you'll need your own ESP32 dev board and some addressable LEDs. After figuring out the location of each LED in 2D space, it's easy to map from each LED's x and y location onto a pattern you want to show on the frame buffer. Desiring to keep it accessible, I've posted detailed instructions and my sample code on GitHub, making sure anyone with basic knowledge can undertake this fun technological DIY project!
Vibing a PCB - surprisingly good - In my latest adventure, I challenged AI to design a working ESP32-S3 development board from scratch using Atopile and Claude. The idea was as simple as vibe-coding actual hardware without diving into the code. It was a chaotic yet fascinating journey, with some misses like unwired components and a forgotten capacitor. After a few prompts, the AI delivered a surprisingly functional board featuring USB-C, an AMS1117 regulator, and status LEDs. While not yet perfect, vibe-coding feels like a glimpse into the future of hardware design.
Using ChatGPT for home automation - In another thrilling adventure with ChatGPT, I endeavored to integrate it with a Raspberry Pi, effectively turning it into my own personal light switch. My custom ChatGPT plugin, sporting just two endpoints, could revolutionize how we handle APIs, as it managed to control five different lights with simplicity and style. With a dash of YAML magic, ChatGPT managed to deduce the entire process, paving the way for future smart home projects. Big or small, the potential applications are endless and might even lead to computers communicating in human language!
Minimalist Microcontroller: Building a Bare-Bones Dev Board - In a thrilling DIY endeavour, I attempted to build the most minimalist ESP32 dev board possible. Diving deep into the schematic of the ESP32 S3 WROOM module, I chopped out the non-essentials and whittled our needs down to bare bones. The experiment saw me juggling USB data lines and voltage regulators, waving goodbye to an array of capacitors and connectors and boldly embracing the simplicity of direct connections. Despite a few hitches, the miniature Frankenboard came alive, proving that sometimes less is more...at least in the world of microcontrollers.
Look at my shiny crystal balls - Just upgraded my basic AliExpress crystal balls with some tech wizardry - I've thrown in an ESP32-S3-MINI, a mic, and made them battery powered. Thanks to WLED software, they're now smart and responsive! Shared the KiCAD project for fellow tinkerers. Check out my video to see these balls in action!

Related Videos

Most Interesting Addressable LEDs that I've Ever Seen - So, I got this nifty 2x2 meter 400 LED curtain and immediately went to work dismantling it. The LED strands are tapped off the main wire, rather than daisy-chained, which is a departure from the norm. Turns out, these LEDs are pre-programmed, allowing them to intelligently latch onto the right serial data. Unraveling the control unit, we see an IR receiver and other key components responsible for driving the LED strings. Despite my misgivings about deciphering in-built Bluetooth characteristics, I hooked the circuit back up with our dependable WLED software and got some amazing grid patterns. Interestingly, the LEDs operated smoothly at 3.3V. All in all, a fun exploration of hacking this LED curtain.
Look at My Shiny Crystal Balls - Custom ESP32 PCB With WLED. - Step right up, folks, for the grand unveiling of my shiny new crystal balls – yes, crystal balls. I've transformed ordinary AliExpress pieces into juggernauts of light and color, all powered by the splendid WLED software. Dive deep with me into the nitty-gritty of the underlying electronics and come face-to-face with the true beauty of voltage measurements (I promise, it's more riveting than it sounds). While the original circuit boards from AliExpress might not thrill, my beefed-up version invites gasps of wonder, with microphone-controlled LEDs throwing light in a million dazzling ways. Join me as I chronicle my journey through schematic revisions, components selection, and technological trickery – in short, the wild ride that has led to this epic macOS light show.
Unlocking the Power of ChatGPT: Effortlessly Generate Arduino Code for Your Projects! - Witness ChatGPT's impressive potential for generating working Arduino code, as demonstrated in a step-by-step ESP32-based project utilizing a potentiometer and dot star LED.
ESP32-S3 - Which Pins Are Safe To Use? - In this video, I've decided to dive deep into the ESP32-S3, a module ruling my lab recently due to its plug-in-and-play functionality, and the flexibility offered by its GPIO matrix. However, working with it requires vigilance, especially with regard to the strapping pins and USB data pins, among others. Discovering such quirks, I've encountered unexpected values, short glitches and the occasional code crash. To help you avoid these bumps, I've documented everything I've learned on my GitHub repo, where I'm inviting you, my fellow makers and engineers, to contribute your valuable experiences and findings. After a minor hiccup with my ESP32-TV, expect an updated PCB design, courtesy of PCBWay. Explore the ESP32-S3 with me, and let's unravel its secrets together, one pull request at a time.
Live GPIO Viewer - In my latest discovery, I found an incredibly efficient visualization tool from the last outpost workshop that upgrades how I check the status of the GPIO pins on my ESP32. It's super simple to use and allows me to monitor pin activities directly. I set up a couple of LEDs and a button on various GPIO pins to demonstrate its effectiveness and the results were fantastic. Although it currently supports only digital input and output and PWM, I'm optimistic it will expand with time. Thanks to the open-source community, you can find the setup instructions in a GitHub repo. This tool is a revelation and I highly recommend it.
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
Blog Logo

Chris Greening


Published

> Image

atomic14

A collection of slightly mad projects, instructive/educational videos, and generally interesting stuff. Building projects around the Arduino and ESP32 platforms - we'll be exploring AI, Computer Vision, Audio, 3D Printing - it may get a bit eclectic...

View All Posts