LED Tie Plays Tetris

tetris

[Bill] has been working with a gaggle of 8th graders this summer at a STEM camp, impressing them with his geeky attire such as an 8-bit and PCB ties, and an LED illuminated lab coat. The adolescent tinkerers asked him what he would be wearing on the last day. Not wanting to let the kids down, he whipped up an LED Tetris tie in an evening.

The Tetris board is a 20 x 4 grid of WS2811 based RGB LED strips, controlled by a Digispark dev board. Structurally, the tie is just two bits of card stock with the electronic bits sandwiched in between. and taped to a cheap clip-on. In the video below, the tie doesn’t have any sort of input to control the movement and rotation of blocks. [Bill] plans to update his tie with some rudimentary AI so it can play itself.

All the code is over on [Bill]’s git. It’s still a work in progress, but from the STEM student’s reaction, there’s a lot of potential in this tie.

Continue reading “LED Tie Plays Tetris”

Lots Of Seven Segment Displays With A Single ATtiny

7seg

These days they’ve been replaced with character LCD displays or even brightly colored graphical displays, but if you’re trying to display data on one of your projects, there’s nothing like the classic red glow of a red seven segment display. [five volts] got his hands on a few ancient segmented displays, but controlling even one took up more microcontroller pins than he was ready to spare. The solution to this problem was to use a shift register and control multiple segment displays with an 8 pin microcontroller.

[volts] is using an ATtiny13 to control six seven segment displays. Each display is mounted on a hand-etched board, with a shift register and a handful of resistors soldered to the back. By having the microcontroller shift bits down the line, [volts] created an extremely easy to interface 6-digit segment display, and the entire device can be expanded even more.

The board files and schematics are available on [volt]’s project page. A great project if you’re just starting out to etch your own boards.

Adding RGB Backlight To Arcade Buttons

backlit-arcade-buttons

These arcade buttons started out as illuminated buttons. But they were bulb-based which only allowed for one color. [Jon] and his friends at the Leeds Hackspace wanted to find a way to retro fit them with RGB LEDs, without changing the buttons themselves. The hack lets them replace the bulb with an addressable circuit board. The really interesting thing about it is that there is no separate interface for addressing. The communications happen on the voltage bus itself.

After deciding to include a microcontroller inside the button they built a test version using some protoboard to see if it would fit. Indeed there was enough room and the proof-of-concept led to the factory spun board which you see above. It has pads for two of the four LED module feet on either side, with the opposite end of the board fitting into the bulb receptacle. The voltage line is pulsed to send commands to the microcontroller. We’re interested in finding out exactly how that works but we’ll have to dig through the code before unlocking the secret.

Continue reading “Adding RGB Backlight To Arcade Buttons”

Giving A Crank Flashlight A Super Capacitor Overhaul

crank-flashlight-supercap-overhaul

[Caleb] was given a tiny LED flashlight which has a crank used to charge it. Unfortunately it wasn’t holding a charge, and constant cranking didn’t work very well either. He cracked it open to find a single lithium button cell. Instead of using a drop-in replacement he soldered in his own super capacitor.

The stock device is remarkably simple. It uses a standard DC motor as the generator. It’s connected to the crank using a set of gears, with the two red wires seen above connecting it to the control board. Four diodes make up a bridge rectified and apparently feed directly into the battery. No wonder that cell went kaput!

But this orientation isn’t bad for using capacitors. They can be charged directly and the switch which attaches the LEDs to voltage doesn’t interfere with their operation. The last problem was making room for them in the case. [Caleb] considered a few different approaches, but ended up just heating the plastic enclosure until it could be deformed to make room for the additional parts.

Arduino Particle Light Box Generates Animations From Sound

arduino-particle-display

Simple tools used well can produce fantastic results. The hardware which [Gilad] uses in this project is the definition of common. We’d bet you have most if not all of them on hand right now. But the end product is a light box which seems to dance and twirl with every sound in the room. You should go watch the demo video before reading the bill of materials so that the simplicity doesn’t spoil it for you.

A wooden craft box serves as the enclosure. Inside you’ll find an Arduino board, microphone, and an 8×8 RGB module. The front cover of the project box diffuses the light using a sheet of tracing paper on a frame of foam board. It’s the code that brings everything together. He wrote his own particle system library to generate interesting animations.

If you don’t have a project box on hand this might work with an extra-deep picture frame.
Continue reading “Arduino Particle Light Box Generates Animations From Sound”

WS2811 Can Be Addressed At 800kHz Using A 8MHz Clock

ws2811-running-at-8mhz

Timing is everything and that’s why most communication protocols require a very accurate clock source. The WS2811 LED strip controllers are no different. But [Danny] figured out a way to drive them reliably with an 8MHz clock source.

The WS2811 has become one of the most popular controllers for RGB pixels and strips alike. We’ve seen several hacks used to address them, including the 16MHz AVR technique that inspired [Danny] to take on this project. He planned to use that library but the 25-day shipping time for a 16MHz crystal drove home to invent a way to use the internal oscillator instead.

The gist of the hack is that he wrote assembly code to handle pairs of binary bit values. With a code block for each of the four possible combinations in hand he had to find a way to craft the conditional jumps to preserve accurate timing. After hitting the wall trying to solve this puzzle by hand he wrote a C++ program to solve it for home. The proof is in this video which shows one chip driving multiple Larson scanners on a single strip.

Continue reading “WS2811 Can Be Addressed At 800kHz Using A 8MHz Clock”

Update: Live Video Played On LED Strip Display

update-live-video-on-led-strip-display

[Paul] took this LED display along with him to Maker Faire. To give it some interactivity he figured out a way to make it play live video. It is also activated using some stomp actuators built from piezo speaker elements and rubber floor mats.

This moves his original project in new directions. Back in February he was showing off the RGB LED strip display. He had it playing video but that was all dependent on using previously processed files. This upgrade uses a BeagleBone Black (the newest rendition of the ARM-based development board). [Paul] had tried using a Raspberry Pi board but had trouble with the webcam (mounted above the LED display) dropping frames. With the new board he is able to use the Video4Linux API to capture 30 frames per second and push them out to the display.

So far he’s had five out of the 1920 LEDs die on him. This shows off a couple of good things about using strips like this. A dead pixel doesn’t affect its neighbors. And replacement is as easy as cutting the ribbon on either side of the bad component, then soldering a new segment in place.