【HuaDiao hands-on】Interesting and fun music visualization series projects (33) --- Nucleic acid tray lamp

On a whim, I wanted to do a series of topics on music visualization. The difficulty of this topic is a bit high, and it involves a wide range of areas. The related algorithms such as FFT and FHT are also quite complicated. However, I still plan to start with the simplest ones, do practical experiments, try various solutions patiently, and gradually accumulate some useful ones. We will try to form some practical and fun music visualizer projects.

As a historical witness, the few nucleic acid tray foam boards on hand can just be used to try to make a small project of music visualization. I named it Nucleic Acid Tray Light.

insert image description here
insert image description here

insert image description here

The WS2812B light strip uses 30 lights per meter white bare board

insert image description here

The main features of WS2812B
Intelligent reverse connection protection, the reverse connection of the power supply will not damage the IC.
The IC control circuit shares a power supply with the LED point light source.
The control circuit and the RGB chip are integrated in a 5050-package component to form a complete external control pixel.
Built-in signal shaping circuit, after any pixel receives the signal, it will be output after waveform shaping to ensure that the line waveform distortion will not accumulate.
Built-in power-on reset and power-off reset circuits.
The three primary colors of each pixel can realize 256 levels of brightness display, complete the full true color display of 16,777,216 colors, and the scanning frequency is not lower than 400Hz/s.
The serial cascading interface can complete data reception and decoding through a signal line.
There is no need to add any circuit when the transmission distance between any two points does not exceed 5 meters.
When the refresh rate is 30 frames per second, the number of cascades is not less than 1024 points.
The data sending speed can reach 800Kbps.
The light color is highly consistent and cost-effective.

The main application areas are
LED full-color luminous character light strings, LED full-color modules, LED full-color soft light strips and hard light strips, LED guardrail tubes.
LED point light source, LED pixel screen, LED special-shaped screen, various electronic products, electrical equipment marquee.

insert image description here

Electrical schematic diagram of WS2812B light strip

insert image description here

insert image description here
insert image description here

insert image description here
insert image description here

Arduino uno development board wiring diagram

insert image description here
insert image description here

Cut the WS2812 LED strip into 20 segments

insert image description here

Paste on the base

insert image description here

Busy for a long time, finally welded 126 solder joints

insert image description here
The foam tray is too light-transmitting, here a soft mirror is used to isolate the light of a single LED

insert image description here
Corresponding to the optical isolation of 100 WS2812 lamps, all completed

insert image description here
【HuaDiao hands-on】Interesting and fun music visualization series projects (33)—Nucleic acid tray lamp
One of the project procedures: green single lamp cycle test
Module wiring: WS2812B connected to D6
MAX4466 UNO
VCC 5V
GND GND
OUT D6

/*
  【花雕动手做】有趣好玩的音乐可视化系列项目(33)---核酸托盘灯
  项目程序之一:绿色单灯循环测试
  模块接线:WS2812B接D6
  MAX4466      UNO
  VCC          5V
  GND         GND
  OUT          D6
*/

#include <Adafruit_NeoPixel.h>

#define PIN 6
#define MAX_LED 100

#define ADD true
#define SUB false

int val = 0;
boolean stat = ADD;

Adafruit_NeoPixel strip = Adafruit_NeoPixel( MAX_LED, PIN, NEO_RGB + NEO_KHZ800 );

void setup() {
    
    
  strip.begin();
  strip.show();
}

void loop() {
    
    
  uint8_t i, a = 0;
  uint32_t color = strip.Color(255, 100, 0);

  while (a < 101)
  {
    
    
    for (i = 0; i < 100; i++)
    {
    
    
      if (i == a) strip.setPixelColor(i, color);
      else strip.setPixelColor(i, 0);
    }
    strip.show();
    delay(30);
    a++;
  }
}

Experimental scene graph

insert image description here

GIF

insert image description here

Going to Xinjiang tomorrow, to be continued...

Guess you like

Origin blog.csdn.net/weixin_41659040/article/details/128363765