Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Watch 24 colorful acrylic blocks dance to music

Watch 24 colorful acrylic blocks dance to music

Lights synchronized to music, what’s not to love? YouTuber “Robert Robert” has done just that using 24 acrylic blocks, an Arduino Uno, four 12-pixel WS2812B addressable LED strips, an Adafruit electret microphone amplifier, a 12000mAh external battery pack, and some code.

The blocks are divided into two sets of 12, held together by threaded rods and nuts, with LED strips hot glued to the back. A 60cm x 40cm stainless steel shelf rests underneath to reflect the light back.

In terms of code, the project uses Adafruit’s NeoPixel library:

The first part of the code is Adafruit’s own mic code which calibrates the sound level so that whether you’re using a big speaker or, as in the video, a tiny iPad speaker, the mic remains sensitive. The second part of the code maps the sound level onto 12 if statements so that when quiet it idles with the NeoPixel library rainbow but then as the sound level gets higher more effects are triggered. Within each if statement I have then included a random() function so that the display stays interesting. You can edit each individual strip pixel to create patterns in an infinite variety of ways and using the random () function you can keep on building so you never get bored. The code works best with music with a wide dynamic range (soft and loud parts).

 

More Articles to Read

Replace a microwave’s beeping with the Windows XP startup sound
Replace a microwave’s beeping with the Windows XP startup sound
A DIY Laser Scanning Microscope
A DIY Laser Scanning Microscope
Teleknitting: TV-based string art
Teleknitting: TV-based string art
Start your day with Nerf target practice!
Start your day with Nerf target practice!
Converting a coffee maker into a 3D printer
Converting a coffee maker into a 3D printer
Sort your M&Ms or Skittles with this ingenious machine
Sort your M&Ms or Skittles with this ingenious machine
The Hunt is both a playful game and tasteful home decor
The Hunt is both a playful game and tasteful home decor
The Rick and Morty Alarm will make sure you’re always on time
The Rick and Morty Alarm will make sure you’re always on time
Build your own MIDI accordion with Arduino
Build your own MIDI accordion with Arduino
A tiny orchestra of Lego Robots driven by Arduino
A tiny orchestra of Lego Robots driven by Arduino
8-bit Frogger game on a digital microfluidics device
8-bit Frogger game on a digital microfluidics device
An experimental game with a conductive rubber band controller
An experimental game with a conductive rubber band controller

Top




Shares