A Nifty Tool For Counting Neopixels

Picture it. You’ve got a big roll of NeoPixels, but you have no idea how many are actually on the tape. Or you need to count how many WS2812B LEDs are in a display to properly plan your animations. Fear not, for [Gustavo Laureano] has built the perfect tool for counting the addressable LEDs.

The tool is based on a Raspberry Pi Pico, so it’s easy to replicate at home. The LED strip is simply connected to the microcontroller via a set of jumper wires going to the 5V and GND pins, while one of the Pico’s ADC pins is then connected to the strip’s GND pin after the jumper. A further GPIO pin is used to send data to the strip.

Essentially, this uses the jumper wire as a rudimentary current shunt. The code steps through the string of LEDs, turning each one on and then off in turn, comparing the value read by the ADC pin at each state. When the Pico detects no difference in current draw between the on and off states, that suggests it’s trying to turn on an LED beyond the end of the string, and thus the count is concluded.

You don’t need to understand any of that to put this device to good use, however. You can easily whip it up on a breadboard with a Pi Pico and parts you have lying around in the shop. Video after the break.

Continue reading “A Nifty Tool For Counting Neopixels”

Visual Ear Demonstrates How The Cochlea Works

The cochlea is key to human hearing, and it plays an important role in our understanding of complex frequency content. The Visual Ear project aims to illustrate the cochlear mechanism as an educational tool.

The cochlea itself is the part of the ear that converts the pressure waves of sound into electrical signals for the brain. Different auditory frequencies excite different parts of the cochlea. The cells in the different parts of the cochlea then send signals to the brain corresponding to the sound it has picked up.

The Visual Ear demonstrates similar behavior on a strip of addressable LEDs. Lower LEDs coded in the red part of the color spectrum respond to low frequency audio. Higher LEDs step through yellow, green, and up to blue, and respond to the higher frequencies in turn. This is achieved at a high response rate with the use of a Teensy 4.0 running a Fast Fourier Transform on incoming audio, and then outputting signals to run a string of WS2812B LEDs. The result is a visual band display of 104 bands spanning 43 Hz up to 16,744 Hz, which covers most but not all of the human range of hearing.

It’s an impressive display, and one that makes a great music visualizer, too. When teaching the physics of human hearing and the cochlea, we can imagine such a tool would be quite useful.

Continue reading “Visual Ear Demonstrates How The Cochlea Works”

Displaying The Time Is Elemental With This Periodic Table Clock

We see a lot of clocks here at Hackaday, so many now that it’s hard to surprise us. After all, there are only so many ways to divide the day into intervals, as well as a finite supply of geeky and quirky ways to display the results, right?

That’s why this periodic table clock really caught our eye. [gocivici]’s idea is a simple one: light up three different elements with three different colors for hours, minutes, and seconds, and read off the time using the atomic number of the elements. So, if it’s 13:03:23, that would light up aluminum in blue, lithium in green, and vanadium in red. The periodic table was designed in Adobe Illustrator and UV printed on a sheet of translucent plastic by an advertising company that specializes in such things, but we’d imagine other methods could be used. The display is backed by light guides and a baseplate to hold the WS2812D addressable LEDs, and a DS1307 RTC module gives the Arduino Nano a sense of time. The 3D printed frame of the clock has buttons for setting the time and controlling the clock; the brief video below shows it going through its paces.

We really like the attention to detail [gocivici] showed here; that UV printing really gave some great results. And what’s not to like about the geekiness of this clock? Sure, it may not be as action-packed as a game of periodic table Battleship, but it would make a great conversation starter.

Continue reading “Displaying The Time Is Elemental With This Periodic Table Clock”

Decorative Clock Uses LED Strips To Beautiful Effect

Clocks used to be dowdy old things with mechanical hands and sometimes even little cuckoo birds that would pop out to chime the hour. [David] built something altogether more modern that uses shifting colors on LED strips to tell the time.

The core of the build is an ESP8266, which queries an NTP time server to keep itself synced up with the current time as accurately as possible. It then controls a WS2812B LED strip to display the time. The strip itself is hidden in a 3D-printed housing behind an opaque wooden ring, with the light from the LEDs diffusing out nicely on to the wall upon which the clock is mounted.

The display shows three “hands” in the colors it projects on the wall. The red second hand is projected inside and outside the ring. The minute hand is green, and projects outside the ring. Meanwhile, the hour hand is blue, and projects inside the ring. Without any numerical markings, you won’t get an exact reading of the time, but you can figure it out closely enough. As a bonus, the clock looks like a stylish light-based wall sculpture and your guests may not even realizes it tells the time.

We’ve featured [David’s] work before too, in the form of the handy ESP8266 breadboard socket. Video after the break.

Continue reading “Decorative Clock Uses LED Strips To Beautiful Effect”

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.

LEDs Put New Spin On A Sonic The Hedgehog Costume

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

Continue reading “LEDs Put New Spin On A Sonic The Hedgehog Costume”

Neodriver Ornament Brightens Up Christmas

Stores will sell you all kinds of gaudy holiday ornaments, but there’s nothing like the style and class achieved by building your own. [w3arycod3r] did just that, whipping up the fun and festive Neodriver Ornament.

It’s a battery-powered build, and runs off an rechargeable 18650 cell which provides several days of operation at a low duty cycle. An ATtiny85 is charged with sending out commands to various NeoPixel devices, from rings to rectangular arrays. [w3arycod3r] then designed various PCBs that could carry the hardware and battery in a well-balanced package that would hang nicely when suspended from a ribbon on a Christmas tree.

As is always the fun part with addressable LEDs, [w3arycod3r] whipped up some fun animations to suit. The 5×5 rectangular arrays of NeoPixels are able to deliver scrolling text, while another animation blips out the RNA sequence of everyone’s least favorite coronavirus, SARS-CoV-2. Getting everything to fit into a ATtiny85’s 8 KB of code space and 512 byte EEPROM was a challenge, but slimming down the Adafruit NeoPixel library and using direct AVR register manipulation in place of regular Arduino functions helped.

Overall, it’s a fun holiday build that looks great on the tree. Alternatively, consider making yourself some rheoscopic ornaments this holiday season. And, if you’ve whipped up your own fun holiday build, throw it on the tipsline!

three sensory bridge audio spectrum analyzers, one in use with a lit LED array plugged in, the other facing the camera and leaning against the third, all on a table

The Sensory Bridge Is Your Path To A Desktop Rave

[Lixie Labs] are no strangers to creating many projects with LEDs or other displays. Now they’ve created a low latency music visualizer, called the Sensory Bridge, that creates gorgeous light shows from music.

The Sensory Bridge has the ability to update up to 128 RGB LEDs at 60 fps. The unit has an on-board MEMS microphone that picks up ambient music to produce the light show. The chip is an ESP32-S2 that does Fast Fourier Transform trickery to allow for real-time updates to the RGB array. The LED terminal supports the common WS2812B LED pinouts (5 V, GND, DATA). The Sensory Bridge also has an “accessory port” that can be used for hardware extensions, such as a base for their LED “Mini Mast”, a long RGB array PCB strip.

The unit is powered by a 5 V 2 A USB-C connector. Different knobs on the device adjust the brightness, microphone sensitivity and reactivity of the LED strip. One of the nicer features is its “noise calibration” that can record ambient sound and subtract off the background noise frequency components to give a cleaner music signal. The Sensory Bridge is still new and it looks like some of the features are yet to come, like WiFi communication, accessory port upgrades and 3.5 mm audio input to bypass the on-board microphone.

The stated goals of the Sensory Bridge are to provide an open, powerful and flexible platform. This can be seen with their commitment to releasing the project as open source hardware, providing firmware, PCB design files and even the case STLs under a libre/free license. Audio spectrum analyzers are a favorite of ours and we’ve seen many different iterations ranging from ones using Raspberry Pis to others use ESP32s.

Video after the break!

Continue reading “The Sensory Bridge Is Your Path To A Desktop Rave”