RGB Kitchen Uses Pots To Stir Up Color

Anyone who has done anything with RGB LEDs knows that their ability to display pretty much any color is somehow both the best and worst thing about them. How do you get it right? How do you make your results repeatable? [Thomas] has the answer. He dug around in the ol’ parts cupboard, found a few pots, and got to work making this stay-home stew of a project — an on-demand RGB LED color mixer.

Three cleverly color-coded potentiometers and an Arduino let [Thomas] step through 0-255 to mix various values of red, blue, and green. The shade that gets made is displayed live on a set of 10 individual NeoPixels that are laid out under a frosty diffusing panel. Each of the RGB values are also shown on an 16×2 LCD.

This is one of those projects that hits a sweet spot of being simple, useful, and fun. It’s even nice-looking and compact. What more could you want from a project cobbled together from ingredients on hand? [Thomas] is even giving away the code recipe.

Once you dial in your ideal colors, why not make a gesture-controlled lamp?

Reverse Engineering An RGB Keyboard Under Linux

Hardware support under Linux is far better than it ever has been in the past. These days, most things “just work” out of the box, and you probably won’t have to compile any custom kernel modules. Certainly a far cry from where things were a decade ago. But that doesn’t mean everything will work to 100% of its abilities. Take for example, the Duck keyboard that [Cynthia Revström] has. Sure it works as a basic keyboard under any OS, but getting those fancy RGB LEDs working is another story entirely.

Don’t get the wrong idea here, [Cynthia] isn’t just trying to get the keyboard to flash along to music; the goal was to use the RGB lighting of the Ducky keyboard for notifications that the user can’t possibly ignore. Even the most laser-focused among us would have a hard time not noticing that the entire keyboard is blinking red. But the “DuckyRGB” software that you need to do something like that is Windows-only and apparently distributed via a sketchy Google Drive link. Yikes.

The first step to creating an alternative was to spin up a Windows VM and install DuckyRGB. From there, Wireshark could listen in between the virtual computer and the Ducky keyboard to see what the software was sending over the wire. After identifying a version number being sent in the clear, [Cynthia] was able to isolate the LED commands by searching for the hex color codes. From there, it was a relatively simple matter of writing some glue code to connect it up to an alert service and get notifications going.

There was only one problem; the keyboard didn’t work anymore. Turns out the tool that [Cynthia] wrote to control the keyboard’s LEDs was claiming the device so the kernel couldn’t access it for normal input. It took a detour with HIDAPI to get everyone playing together nicely, and now changing the color of your Ducky keyboard on Linux doesn’t turn it into a paperweight.

Even if you don’t have a Ducky keyboard, or aren’t particularly interested in having its LEDs blinked at you if you do, this project is a phenomenal example of practical USB reverse engineering. [Cynthia] says the inspiration for this project came from friend [Ben Cox], who’s write-up on creating USB userspace drivers we covered last year. If you’ve got and old USB gadget with Windows-only drivers, maybe it’s time you take a crack at unlocking it.

Table Tennis Ball Lamp Serves Up Style

Although RGB LEDs diffused by ping pong balls will probably never stop being cool, [thomasj152] feels that flat panels of balls have become a bit of a tired concept. After a lot of effort and two complete builds, he has spun up an 80-ball spherical lamp. The results are positively glowing!

All the balls are connected together with some clever 3D printed pieces that were inspired by the classic soccer ball layout of hexagons and pentagons. [thomasj152] chose this shape because it’s fairly easy to code animation sequences for it.

The design also breaks down nicely into two halves, which makes it easier to wire. All 80 of the balls are controlled with a single NodeMCU ESP8266 development board.

This stranded version is the second lamp [thomasj152] built. The first one used the same soccer ball style, but had RGB LED strips instead, and the balls were wrangled with laser-cut support pieces. Strips lay much flatter than strands do, leaving the inside tidy and spacious. Unfortunately, the LED strips got fried accidentally, which is extra sad because the strips version looks like way more work.

The bright spot here is that [thomasj152] can now provide instructions for both versions. He even has code that cycles through each pentagon and hexagon section, lighting them up one at a time for testing and sanity checks. Roll past the break for a walk-through video that shows both versions and explains the differences.

Got a bunch of wall space begging for blinkenlights? Apparently it’s possible to throw together a working 300-ball video wall in less than 24 hours. Who knew?

Continue reading “Table Tennis Ball Lamp Serves Up Style”

NeoPixel Matrix Simulation Lets You Virtually Groove To The Lights

You are stuck at home quarantined and you want to do some Arduino projects. The problem is you don’t have all the cool devices you want to use. Sure, you can order them, but the stores are slow shipping things that aren’t essential these days. If you want to get a headstart while you are waiting for the postman, check out Wokwi’s Playground. For example, you can write code to drive a virtual NeoPixel 16×16 matrix. There’s even example code to get you started.

There are quite a few other choices in the playground including Charlieplexed LEDs, a keypad, and an LCD. There are also challenges. For example, in the traffic light challenge, you are given code that uses a task scheduler library to implement a traffic light. You have to add a turn signal to the code.

In addition to LEDs in various configurations, the site has some serial bus components, an LCD, a keypad, and a NeoPixel strip. There are also a few tools including an EasyEDA to KiCad converter and a way to share sourcecode similar to Pastebin.

Of course, simulations only get you so far, but the site is a fun way to play with some different I/O devices. It would be very nice if you could compose for the different components together, but you could work your code in sections, if necessary. You can do similar things with TinkerCad circuits. If you want to install software, there’s a simulator for you, too.

Seven-Segment Shelves Do Double Duty

[Lewis] of [DIY Machines] was always on the lookout for that perfect something to hang above the couch. After spending a lot of time fruitlessly searching, he designed and built this awesome shelving unit with recessed lighting that doubles as a huge 7-segment clock.

The clock part works as you probably expect — an Elegoo Nano fetches the time from a real-time clock module and displays it on the WS2812B LED strips arranged in 7-segment formations. There’s a photocell module to detect the ambient light level in the room, so the display is never brighter than it needs to be.

Don’t have a 3D printer yet? Then you may need to pass on this one. Aside from the wood back plane and the electronics, the rest of this build is done with printed plastic, starting with 31 carefully-designed supports for the shelves. There are also the LED strip holders, and the sleeve pieces that hide all the wires and give this project its beautifully finished look.

You may have noticed that the far left digit isn’t a full seven segments. If you’re committed to 24-hour time, you’d have to adjust everything to allow for that, but you’d end up with two more shelves. Given the fantastic build video after the break, it probably wouldn’t take too long to figure all that out.

We like big clocks and we cannot lie. If you have room for it, build something like this blinkenlit beauty.

Continue reading “Seven-Segment Shelves Do Double Duty”

Latest FlexLED Milestone Refines The POV Display

With his FlexLED project, [Carl Bugeja] is trying to perfect a simple and affordable persistence of vision (POV) display capable of generating “holographic” characters in mid-air. Traditionally POV systems spin LEDs rapidly to create the desired illusion, but that means motors, slip rings, and noise. As the name implies, the goal with this project is to do away with all that and replace it with a self-actuating flexible PCB.

The device is able to quickly move the LEDs back and forth quietly and efficiently thanks to a permanent magnet and magnetic coils integrated into the flexible PCB. With no motors or gears, the whole unit is smaller and less complex than other POV displays. As an added bonus, there’s no danger to the operator or the device should a curious user stick their finger into it.

The last time we took a look at this project, [Carl] had entered an earlier single-LED version into the 2019 Hackaday Prize. Competition was tough last year, and unfortunately FlexLED didn’t get selected as a Finalist. But we’re still extremely interested in seeing the project develop, and we imagine so are you.

The recently completed second version of the display features an improved coil design, eight RGB LEDs and a 3D printed base with integrated magnet. With more LEDs onboard, a single display is able to show multiple characters and even rudimentary animations. A large array of these flapping elements promises to be quite a sight.

But before you get too excited, [Carl] does have some bad news. For one, the cost of building them in small quantities is high, which is always tough for a single hacker trying to iterate a design. Worse, some of the LEDs seem to have died on this prototype already. He says it likely has something to do with the stress of flexing back and forth so quickly, which is obviously a bit troubling. He’s looking to get some feedback from the community, and is hoping to address these issues in the next version.

For an interesting look into his flexible PCB actuator projects, check out the interview [Carl] did with us at the 2018 Hackaday Superconference.

Continue reading “Latest FlexLED Milestone Refines The POV Display”

Levitating Starship Model Comes In For A Landing

If everything goes according to plan, Elon Musk says the first generation of SpaceX’s massive Starship will make an orbital flight before the end of 2020. That’s a pretty bold claim, but when you’ve made landing rockets on their tails as in the old science fiction pulp magazines seem routine, we suppose you’ve earned the right to a bit of bravado. We’re excited to see the vehicle evolve over the next several months, but even if the real one stays grounded, we’ll gladly take this “flying” Starship model from [Chris Chimienti] as a consolation prize.

A magnetic levitation module, we’re officially in the future.

Feeling a bit let down by the 3D printable models of the Starship he found online, [Chris] set out to build his own. But it wasn’t enough to just make his bigger, stronger, and more accurate to Starship’s current design; he also wanted to make it a bit more exciting. Some RGB LEDs an Arduino embedded in the “cloud” stand the rocket sits on was a good start, and the landing pad inspired by SpaceX’s real autonomous spaceport drone ship Just Read the Instructions looks great all lit up.

But this is Starship we’re talking about, a vehicle that could literally push humanity towards being a multi-planet species. To do it justice, you’ve really got to knock it out of the park. So [Chris] found a magnetic levitation module online that could support a few hundred grams, and set to work on making his plastic Starship actually hover over the landing pad.

As you might imagine, it was a bit tricky. The first versions of the rocket looked great but came out too heavy, so he switched over to printing the model in so-called “spiral vase mode” which made it entirely hollow. Now far lighter and with a magnetic plate fit into the bottom, it was stable enough to float on its own. For the final touch, [Chris] added some red LEDs and a coin cell battery to the base of the Starship so it looks like the sleek craft is performing a last-second landing burn with its “impossible” full-flow staged combustion engines.

This isn’t the first time we’ve seen a model rocket with an electronic glowing cloud under it, but it’s certainly the first one we’ve seen that could levitate in mid-air. While this little rocket might not make it all the way to Mars, we wouldn’t be surprised to see it touching down on the desks of other hackers and makers in the near future.

Continue reading “Levitating Starship Model Comes In For A Landing”