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”

Keep Track Of Your Google Calendar With This Custom Build

Keeping track of your appointments on Google Calendar is easy enough if you’re holding a phone or sitting at a computer, but sometimes you just want to know what’s going on at a glance. This desktop calendar build from [andrei.erdei] does just that with plenty of helpful LEDs.

The attract mode is very cool, even if it doesn’t display any actual information.

The design is simple, using WS2812 LEDs to backlight numbers to indicate whether they are weekdays, weekends, anniversaries, holidays, or any other dates of importance. The numerical layout is a nifty perpetual design allowing the display to easily accommodate the structure of any month, even those neat and tidy ones that start on Monday.

The design relies on an ESP-01 to communicate with Google Calendar and display the relevant data. It’s all wrapped up in a 3D printed case, with the printed paper template backlit from behind some smoked acrylic giving a surprisingly professional-looking finish.

If you’re tired of picking up your phone for every last thing, this design could be just what you’re after for keeping track of your appointments. Alternatively, you could always go the hard copy route. Video after the break.

Continue reading “Keep Track Of Your Google Calendar With This Custom Build”

An LED bulb with integrated controller chip

Reverse-Engineering A Two-Wire LED Strip Protocol

Although Christmas may be several weeks behind us, various colorful LED contraptions can nowadays be found in our houses at any time of year. [Tim] got his hands on an LED curtain that came with a remote control that allows the user to set not only the color of the LEDs as a whole but also to run simple animations. But these were not your standard WS2812B strips with data lines: all the LEDs were simply connected in parallel with just two wires, so how was this even possible?

An oscilloscope screenshot showing the data protocol used in an LED string
The LED string protocol is very simple, with one address field and one data field.

[Tim] hooked up his oscilloscope to the LED strings to find out how they worked, detailing the results in a comprehensive blog post. As it turns out, the controller briefly shorts the LED strip’s supply voltage to generate data bits, similar to the way old pulse-dialing phones worked. A tiny chip integrated into each LED picks up these pulses, but retains its internal state thanks to a capacitor that keeps the chip powered when the supply line goes low.

After reverse-engineering the protocol, [Tim] went on to implement a similar design using an ATMega328P as a controller and an ATtiny10 as the LED driver. With just a few lines of code and a 100 nF buffer capacitor across the ATtiny’s power pins, [Tim] was able to turn an LED on and off by sending pulses through the supply lines. Some work still needs to be done to fully implement a protocol as used in the LED strings, but as a proof-of-concept it shows that this kind of power-line communication is possible with standard components.

We’ve seen projects that send signals down a two-wire LED chain before, although as an add-on to a more ordinary LED strip. [Tim] is not the first to reverse-engineer poorly documented LED strip protocols, but probably won’t be the last either.

Remoticon 2021 // Debra Ansell Connects PCB In Ways You Didn’t Expect

“LEDs improve everything.” Words to live by. Most everything that Debra Ansell of [GeekMomProjects] makes is bright, bold, and blinky. But if you’re looking for a simple string of WS2812s, you’re barking up the wrong tree. In the last few years, Debra has been making larger and more complicated assemblies, and that has meant diving into the mechanical design of modular PCBs. In the process Debra has come up with some great techniques that you’ll be able to use in your own builds, which she shared with us in a presentation during the 2021 Hackaday Remoticon.

She starts off with a quick overview of the state of play in PCB art, specifically of the style that she’s into these days: three dimensional constructions where the physical PCB itself is a sculptural element of the project. She’s crossing that with the popular triangle-style wall hanging sculpture, and her own fascination with “inner glow” — side-illuminated acrylic diffusers. Then she starts taking us down the path of creating her own wall art in detail, and this is where you need to listen up. Continue reading “Remoticon 2021 // Debra Ansell Connects PCB In Ways You Didn’t Expect”

Improving An Already Phenomenal Star Trek Prop

When Star Trek: Voyager was in the development phase, concept art was created for a new style of tricorder to be used by the crew of the titular starship. But as it often the case with a younger sibling, the show ended up having to largely make do with the hand-me-down props from Star Trek: The Next Generation, which had recently finished its TV run.

Trek aficionado [Mangy_Dog] completed a jaw-dropping recreation of this unused tricorder design back in 2019, but unable to leave well enough alone, he’s recently completed a second version that truly raises the bar for fan replicas. It’s not hyperbole to say that the prop he’s created is of a far higher quality and fidelity than anything they would have had during the actual filming of the show.

Now you might be thinking that building the second version of the tricorder was easier than the first, and indeed, [Mangy_Dog] learned some important lessons from the earlier build. But that’s not to say that construction of this new replica, which was actually done on commission, went off without a hitch. In fact, he almost immediately ran into a serious problem. When he attempted to order a new display from Nextion, he found the quality had dropped significantly from the ones he’d used previously. The viewing angles and color reproduction were abysmal, so he was forced to go back to the drawing board and not only find a new display, but a completely new graphics chip to talk to it. Continue reading “Improving An Already Phenomenal Star Trek Prop”

Segments light up as a person's step goal is achieved.

Slither: A Visual Pedometer That Sheds Light

Have you already broken that New Year’s resolution to get more exercise? Yeah, us too. Maybe the problem is simply that we didn’t gamify the goal. A simple visual aid that shows your progress can help make a goal more achievable and easier to stick to, day after January day. That’s the idea behind [skhackett]’s Slither, the visual pedometer.

Slither's backssssideAlthough Slither uses the Fit Bit app, no actual Fit Bit is required — great news for those of us who don’t like to wear accessories. But you will have to carry your phone everywhere if you want your steps to count. By tracking the steps taken each day, the sum of Slither’s segments signifies a weekly total goal of 50,000 steps.

Around back is a Feather Huzzah that receives step data from the phone and drives a strand of side-lit LED strips. There’s a Hall effect sensor in the tail, and Slither is powered on and off with a small, separate piece of wood and acrylic with a magnet embedded inside. Isn’t that a classy way to switch a snake?

We really like the look of the plywood here, though [skhackett] recommends using MDF instead because they experienced a fair amount of chipping. If you just want to watch the snake light up, it shouldn’t be too hard to cheat the pedometer.