Tutorial Teaches You To Use Neopixels With Micropython

Addressable LEDs are wonderful things, with products like Neopixels making it easy to create all kinds of vibrant, blinking glowables. However, for those without a lot of electronics experience, using these devices can seem a bit daunting. [Bhavesh Kakwani] is here to help, with his tutorial on getting started with Neopixels using the MicroPython environment. 

The tutorial flows on from [Bhavesh’s] Blink example for MicroPython, and is aimed at beginners who are learning for the first time. It explains the theory behind RGB color mixing that allows one to generate all manner of colors with WS2812B-based LED strings, and how to code for the Raspberry Pi Pico to make these LEDs do one’s bidding.

The guide even covers the use of the Wokwi simulation tool. This is a great way for beginners to test their projects before having to play with actual hardware. This is useful for beginners, because it’s a great way to catch mistakes – is there a software problem, or did they push the soldering iron through the microcontroller? It’s also a technique that pays dividends when working on more complicated projects.

Whether you’re entirely new to the embedded world, or just want to learn the intricacies of talking to addressable LEDs and make sense of color mixing theory, this tutorial will serve you well. Before you know it, you’ll be building glowing projects with the best of them!

 

DIY Nanoleaf LED Panels Offer Peace Of Mind

Nanoleaf light panels are a popular product for creating glowing geometric designs on walls. However, for those that like to avoid IoT devices that integrate with big cloud services, they’re not ideal, and involve compromising on one’s privacy, somewhat. [Viktor] decided to build something of his own instead to avoid this problem.

The design is that of an equilateral triangle, which allows the panels to tesselate well. Each panel consists of two 3D printed parts. The black PLA base holds the WS2812B LED strips, cabling, and ESP8266 controller, while a white PLA cover goes over the top, which acts as a diffuser to spread the light from the individual LEDs. Each triangle contains 24 LEDs, and six triangles together consume around 1.6 amps when in use.

The benefit of the system is that it’s not controlled from a company’s cloud system, which can be shutdown at any time. [Viktor’s] setup runs entirely independently, and can be controlled from a simple web page. Plus, there’s nothing stopping him from modifying the code to use the panels for any purpose; commercial products like Nanoleaf don’t offer anywhere near the flexibility of building your own.

We’ve seen others build their own smart lighting with similar techniques before, too. Video after the break.

Continue reading “DIY Nanoleaf LED Panels Offer Peace Of Mind”

Mystery Effect Causing LEDs To Glow During Reflow

Sometimes you notice something small that nevertheless you can’t explain. [Greg Davill] found himself in just such a situation this week when he noticed some green LEDs glowing dimly when reflowing some boards. Naturally, [Greg] set out to investigate.

The green LEDs were wired up as power indicators, and [Greg] suspected that the polymer caps on the board might be generating a small current somehow that was causing the LEDs to light up ever so slightly. A simple test hooked a polymer cap directly up to a multimeter. When warmed with a heat gun, the meter showed a small current “in the 5-10 uA range.”

Going further, [Greg] soldered an LED to the cap and once again heated it up, this time to 100° C. The LED  glowed, continuing to do so for around 60 seconds with heat removed. The mystery also grew deeper – [Greg] noticed that this only happened with “fresh” capacitors. Once they’d been through one heat cycle, the caps would no longer light an LED when warmed up.

It’s a curious case, and has many speculating as to the causative mechanism on Twitter. Explanations from thermoelectric effects to chemical reactions inside the capacitor. If you’ve got the inside scoop on what’s going on here, don’t hesitate to let us know in the comments. Meanwhile, check out some of [Greg]’s best work – a glowing D20 dice featuring a whopping 2400 LEDs.

[Thanks to J Peterson for the tip!]

Tileable LED matrix

Tiny LED Matrix Panels Tile Together Perfectly

There’s a lot to admire about LED matrix projects, which more often than not end up looking really cool. But most of them rely on RGB matrix panels sourced from the surplus market, and while there’s nothing wrong with that, building your own tiny, tileable LED matrix panels makes these builds just a little bit cooler.

There’s a lot to admire about these matrix panels, not least of which is the seamless way they tile together. But to get to that point, [sjm4306] had a lot of prep work to do. He started with a much simpler 5×7 array, using the popular WS2812 RGB LEDs on a custom PCB. With a little practice under his belt, it was time to move to the much smaller SK6805 LEDs, which were laid out in an 8×8 matrix. The board layout is about as compact as it can be; [sjm4306] reports that it pushed the PCB fab to their limits, but he ended up with LEDs spaced perfectly on the board and just enough margin to keep consistent spacing in two dimensions when the boards are adjacent to each other.

Assembly of the boards was challenging, to say the least. The video below shows that the design left barely enough room for handling the LEDs with tweezers, and some fancy finagling was needed to get the boards on and off the hotplate for reflow. [sjm4306] says that he’ll be exploring JLC PCB’s assembly service in the future, since each board took an hour for him to assemble. But they look fantastic when daisy-chained together, with no detectable gaps at the joints.

With matrices like these, the possibilities are endless. We’ve even got a whole list of LED matrix projects over on Hackaday.io for you to check out.

Continue reading “Tiny LED Matrix Panels Tile Together Perfectly”

USB LED Christmas Tree Is Making Spirits Bright

[Piotr SB] knows there is no way out of the holidays; the only path is through. You’ve got to find cheer wherever and however you can, so why not cater to your own interests and build the cutest little LED Christmas tree you ever did see? And did we mention it’s USB and absolutely free (as in carols, not eggnog)?

This O-Christmas tree is made up of concentric rings that are built into a tier as you solder the LEDs. And of course you’re supposed use the LED legs as supports! One leg from each LED — 18 green and a red one for the top. Because the PCB is not quite thick enough, you’ll need to add a plastic spacer to get it to stay in the USB port. Not only is this a nice design, the snowflakes and snowman on the silkscreen totally seal the cuteness deal.

Ever get so frustrated with your Christmas tree that you want to just empty a few rounds into the thing? No? Well, you’d have a good reason to if you built this Duck Hunt ornament.

Sound-Reactive Mannequin Arms Make For Creepy Lounge Decor

Music visualizers were all the rage back in era of Winamp and Windows Media Player. They’re even cooler when they don’t just live on your computer screen, though, as [Emily Velasco’s] latest project demonstrates.

The build consists of two mannequin arms on a board mounted on the wall. The arms were sourced for just $5 from a Sears that went out of business, and originally fastened to the mannequin thanks to magnets inside. Thus, putting two steel plates on the board allowed the arms to be attached, and they can be freely arranged as [Emily] sees fit.

The ESP32-based Pixelblaze LED controller serves as the brains of the operation, controlling LEDs mounted inside the arms themselves. Using a dedicated controller makes working with addressable LEDs a cinch. As a further bonus, the board serves up a web interface, allowing patterns to be changed without having to hook up a cable to the device. Meanwhile, a sensor board inside the arms uses a microphone to enable the light show to react to sound and music.

It’s one of the more obscure uses for an old mannequin, but definitely one that appeals to our love of everything that flickers and glows. It’s a build very much up [Emily’s] alley; as a prolific maker, she loves to build weird and wonderful creations, as shared during her talk at the 2019 Hackaday Superconference. Video after the break.

Continue reading “Sound-Reactive Mannequin Arms Make For Creepy Lounge Decor”

(Getting Rid Of) The Ghost In The LED

Multiplexing is a very old technology in which control signals are intermixed for the sake of being able to control more devices than there are control signals. For [mihai.cuciuc], the problems started when he multiplexed some very efficient LEDs.

The problem? In two banks of six LEDs each, both LEDs connected to a single Arduino pin would light, even when only one bank was turned on at the ground side. The LED In the bank that was switched on lit brightly, and its corresponding LED in the bank that was off would also be very dimly lit. [mihai] was able to determine that the problem was not due to a leaky transistor, but rather due to a quality of the LEDs themselves.

What is an LED but a diode, and it’s well known that diodes also have capacitance. In fact, this quality is exploited in varactor diodes, a specialty diode whose capacitance can be changed by varying the voltage on the cathode. [mihai] deduced that this capacitance was causing current to flow in the bank that was off. Where was the current going? From the Arduino pin that was on, through its attached LED, and then into the rest of the bank of LEDs, charging them like capacitors. [mihai] hasn’t seen this before, but theorizes that for the latest batch of high efficiency LEDs, this minute current is enough to light the LED through which the current is flowing.

[mihai]’s solution is an elegant hack which he’s made available for your perusal. You might also enjoy this introduction to diode basics by W2AEW. If you have any great diode or LED hacks of your own, be sure to drop us a line!