Posts | Comments

Planet Arduino

Archive for the ‘ws2812b’ Category

A two picture montage of a boy wearing a sonic the hedgehog costume with LEDs in them. The left picture is at night with the boy wearing sunglasses and a face mask with the sonic costume head piece lit up. The right picture is during the day with the boy wearing a face mask, holding a plastic pu mpkin bucket for candy and wearing a lit up sonic the hedgehog costume in the front yard of a house.

[Wentworthm] couldn’t say no to his son’s plea for a Sonic the Hedgehog costume for Halloween but also couldn’t resist sprucing it up with LEDs either. The end result is a surprisingly cool light up Sonic the Hedgehog costume.

a picture of a breadboard with an Arduino Nano on it, with wires going out to 3d printed tear dropped shapes that have LED strips in them, with some LED strips on.

After some experimentation, [Wentworthm] ordered two costumes and ended up mixing and matching the head piece of one with the body suit of the other. For the head, [Wentworthm] created six 3D printed “quills” that had slots for the WS2812B LED strips to slide into and diffuse out the sides, with each quill sliding into the folds of the Sonic head “spikes”. Sewn strips of cloth were used to house the LED strips that were placed down the sides of the costume. An additional 3D printed switch housing was created to allow for a more robust interface to the two push buttons to activate the LEDs. An Arduino Nano, soldered to a protoboard, was used to drive the LED strips with a USB battery pack powering the whole project.

[Wentworthm] goes into more detail about the trials and errors, so the post is definitely worth checking out for more detail on the build. Halloween is always a great source of cool costumes and we’ve featured some great ones before, like a light up crosswalk costume to making a giant Gameboy colour costume.

Video after the break!

We’ve all been there. You’re manning the battle station, deep in the sim-racing or some other n00b-pwning zone and suddenly some loudmouth blows out your eardrums over Discord. It’s insulting to have to stop what you’re doing to find the right Windows volume slider. So why do that? Build [T3knomanzer]’s simple yet elegant multi-volume knob and stay zen in the zone.

It’s easy, just turn the knob to cycle through your programs until Discord comes up on the little screen, and then push down to change it into a volume knob. If you need to change another volume, just click it again. Since there’s no Alt+Tabbing out to the desktop, no checkered flags should ever slip through your fingers.

Inside the well-designed case you’ll find the usual suspects — Arduino Nano, rotary encoder, an OLED display, and an LED ring, each with their own place carved out.

This completely open-source knob looks great, and we love that it’s been made incredibly easy to replicate by standing up a site with foolproof, well-depicted, step-by-step instructions. Watch them take it for a spin after the break.

Want more than volume at your fingertips? Here’s a DIY USB knob that does shortcuts, too.

People get into electronics for all kinds of reasons, but we would guess that the ability to blink the blinkenlights is probably pretty high on the survey results. [Kuchbert] has been going to Deichkind shows for the last decade and has wanted to build one of the German techno-rap band’s signature tetrahedral LED hats for about as long.

Up inside the hat is an Arduino Nano driving WS2812B LEDs and a portable battery to power everything. Thanks to an HC-05 Bluetooth module, the show can be controlled with an Android app. The many, many holes in the acrylic panels were milled out, but they could just as easily be laser-cut, or if you have infinite patience, drilled by hand. The code is coming once it has been cleaned up a bit. Everything else you’d need is already there waiting. This helmet even has its own lil’ music video, which we’ve carefully beat-matched in after the break.

Naturally, this makes us think of all the Daft Punk helms that have blinked by on this blog over the years. This hand-soldered one might be the most meticulously made.

Despite all the incredible advancements made in video game technology over the last few decades, the 8-bit classics never seem to go out of style. Even if you weren’t old enough to experience these games when they were new, it’s impossible not to be impressed by what the early video game pioneers were able to do with such meager hardware. They’re a reminder of what can be accomplished with dedication and technical mastery.

The grid has been split up for easier printing.

If you’d like to put a little retro inspiration on your desk, take a look at this fantastic 16 x 16 LED matrix put together by [Josh Gerdes]. While it’s obviously not the only thing you could use it for, the display certainly seems particularly adept at showing old school video game sprites in all their pixelated glory. There’s something about the internal 3D printed grid that gives the sprites a three dimensional look, while the diffused glow reminds us of nights spent hunched over a flickering CRT.

The best part might be how easy it is to put one of these together for yourself. You’ve probably got most of what you need in the parts bin; essentially it’s just a WS2812B strip long enough to liberate 256 LEDs from and a microcontroller to drive them. [Josh] used an Arduino Nano, but anything compatible with the FastLED library would be a drop-in replacement. You’ll also need a 3D printer to run off the grid, and something to put the whole thing into. The 12×12 shadowbox used here looks great, but we imagine clever folks such as yourselves could make do with whatever might be laying around if you can’t nip off to the arts and crafts store right now.

Beyond looking great, this project is a fantastic reminder of how incredibly handy WS2812 LEDs really are. Whether you’re recreating iconic game sprites or fashioning your own light-up sunglasses, it’s hard to imagine how we managed before these little wonders hit the scene.

Unless you’re particularly fond of looking at the back of 88 individual WS2812B LEDs, these “RGB Goggles” from [Mukesh Sankhla] won’t offer you much of a view. But from an outsider’s perspective, the smartphone-controlled glasses certainly make a statement. Just don’t try to operate any heavy machinery while wearing them.

The build starts off with a pair of shades dark enough that the lights won’t be obvious until they’re powered up. [Mukesh] then carefully aligned the LEDs into a grid pattern on a piece of clear tape so they could be soldered together with the fewest number of jumper wires possible. Even if you’re not in the market for some technicolor eyewear, this clever arrangement of WS2812B modules could come in handy if you’re looking to make impromptu LED panels.

To control the LEDs, [Mukesh] is using an Arduino Nano and an HC-06 Bluetooth module that’s linked to an application running on an Android smartphone. The software, developed with the MIT App Inventor, allows the user to easily switch between various patterns and animations on the fly. With such an easy-to-use interface, the RGB Goggles don’t look far off from a commercial product; other than the whole not being able to actually see through the thing.

We’ve actually seen a number of custom glasses projects over the years, as it seems that a cheap pair of shades make an ideal platform for head-mounted hacks. We’ve even found what may be the ideal power source for them.

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.

[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.

Stecchino demo by the creator

Self-described “Inventor Dad” [pepelepoisson]’s project is called Stecchino (English translation link here) and it’s an Arduino-based physical balancing game that aims to be intuitive to use and play for all ages. Using the Stecchino (‘toothpick’ in Italian) consists of balancing the device on your hand and trying to keep it upright for as long as possible. The LED strip fills up as time passes, and it keeps records of high scores. It was specifically designed to be instantly understood and simple to use by people of all ages, and we think it has succeeded in this brilliantly.

To sense orientation and movement, Stecchino uses an MPU-6050 gyro and accelerometer board. An RGB LED strip gives feedback, and it includes a small li-po cell and charger board for easy recharging via USB. The enclosure is made from a few layers of laser-cut and laser-engraved material that also holds the components in place. The WS2828B LED strip used is technically a 5 V unit, but [pepelepoisson] found that feeding them direct from the 3.7 V cell works just fine; it’s not until the cell drops to about three volts that things start to glitch out. All source code and design files are on GitHub.

Games are great, and the wonderful options available to people today allow for all kinds of interesting experimentation like a blind version of tag, or putting new twists on old classics like testing speed instead of strength.

What kind of TV do you have? An older 720p model, or the now standard 1080p? Perhaps you’ve made the leap to the next generation, and are rocking a 4K display in the living room. All those are are fine and dandy if you just want to watch the local sportball contest, but where’s the challenge in that? With all the technology and modular components we have access to anymore, nowadays all the real hackers are making their own TVs.

Of course, when [Nikolai] built his very own LED TV, he did have to make a few concessions. For one thing, there’s no tuner on this model. Oh, and there’s the small issue of only having a 16×16 resolution. It might not be your idea of the perfect display, but it’s just perfect for his newborn son.

That’s right, [Nikolai] got his entry for the “Hacker Parent of the Year” award in early, and built an LED display for his son that he’s calling “BabyTV”.

Rather than the shows, trash, advertisements that they play on the kid channels, this TV only shows animated characters from retro games. We’ll concede that this project might be an elaborate Clockwork Orange style attempt at hypnotizing his son to instill an appreciation for classic gaming. But we’ll allow it.

To make his BabyTV go, [Nikolai] used a 16×16 WS2812B LED panel and an Arduino Nano. Two rotary encoders are used to allow adjusting brightness and change the character currently being shown on the screen. As a particularly clever hack, the Arduino has an IR sensor attached and is constantly watching for any signals. If an IR signal is detected, the BabyTV switches to the next image. So if Junior has a standard IR remote in his hands, any button he presses will cause the display to change to the next “channel”.

Historically speaking we haven’t seen much stuff for children here at Hackaday, but 2018 seems to be changing that. Recent projects like the incredible scratch built mini excavator and gorgeous AT-ST high chair would seem to indicate we’re currently witnessing a generation of hackers become parents. Don’t panic folks, but we might be getting old.

Some hackers make functional things that you can’t allow to be seen in polite company. Others make beautiful things that could come from a high-end store. [Marija] falls into the second category and her interactive LED coffee table would probably fetch quite a bit on the retail market. You can see a video of the awesome-looking table, below.

It isn’t just the glass, MDF, and pine construction. There’s also a Bluetooth interface to a custom Android application from [Dejan], who collaborated on the project. However, if you aren’t comfortable with the woodworking, [Marija’s] instructions are very detailed with great pictures so this might be a good starter project.

On the electronics side, there are addressable LEDs (WS2812Bs), a Bluetooth module, IR proximity sensors, and an Arduino. The proximity sensors needed a little hacking so the sensor can mount in a way that it can detect things through the glass top.

This is one of those projects that really points out how some relatively simple components can combine with software and mechanical construction to really create an eye-popping result. We were really impressed with the documentation, too, and if you are unsure about how to do the woodworking or the electronics, you’ll find a great guide with helpful pictures.

Now, if you don’t hang out with polite company, but only other hackers, you’ll probably opt for an EPROM table. If you get hooked on lighting up tables, you can move on to the mega LED desk after you finish this project, although that’s more of a metal project.



  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook