Project tutorial
Musical Color

Musical Color © GPL3+

Musical color for WS2812b, Arduino and PC.

  • 6,539 views
  • 9 comments
  • 25 respects

Components and supplies

Apps and online services

About this project

A new year is coming. Everyone wants to greet it cheerfully and brightly. These musical lights I made will help me. Maybe my musical lights will help you to decorate when ushering in the new year and make it brighter.

General view of the musical lights:

During the time while the LED ribbon and Arduino were being delivered, I had written the sound/light program 'Musical Light' for the personal computer and the WS2812 tape control sketch or the similar for Arduino.

The tape can be managed either directly by the Arduino connected to the COM port or via the radio bridge by nRF24L01. In the first case, the sketch COMTOLEF.ino is used, and in the second sketch COMtoRF and RFtoLED.

Connection diagrams are presented:

When you directly connect to a USB PC without using an additional power source, remember the limited load capacity of the USB port. If your ribbon has a large number of diodes, you just need to set the number of LEDs in the sketch to less than 20. Like this:

#define strip Led 20

There is no need to cut the ribbon. If it is required, install a resistor from 33 to 470 Ω between terminals D2 and Din as recommended by the manufacturer. The minimum connection scheme for Arduino nano and LED ribbon is shown on the Easy Connection tab of the program.

The program supports color and dynamic modes of operation, connects to any audio device of PC. Digital processing of the audio stream is performed by the PC. Color music programs are formed by Arduino boards based on data on the spectral composition of the current fragment of the phonogram received from the PC. In the program you can choose one of seven color music programs or one more than 100 dynamic ones. Seventy-two dynamic subroutines implemented in the attached sketches. The remaining programs are available for developers.

Musical program:

Dynamical programs:

My audio connection option.

I use iTunes to play audio. My audio receiver YAMAHA has airplay support. At the same time iTunes can output audio simultaneously to the audio receiver and PC. On a PC, I use a virtual audio cable to connect to my program as shown below.

The audio stream coming to the PC goes to the device by default to the input of the "virtual audio cable", and its output serves as a source of sound in the program of color music. You can also use a mixer, a PC line input and even a PC or laptop microphone to receive the audio stream in my program.

Kind of running program:

The program can be minimized to the tray, install with startup and minimize to the tray after launch.

Attention! Before compiling up the sketch, install the necessary libraries and correct in the sketch the line:

#define stripLed 120

The number of LEDs corresponding to your tape, for example:

#define stripLed 240. 

Happy New Year and Merry Christmas! Video of the music program:

Video of the dynamical program:

Code

Schematics

Musical Lights
Scheng 7bxxzwubmu

Comments

Similar projects you might like

Arduino Color Mixer

Project tutorial by Ahmed Hamdy

  • 18,151 views
  • 7 comments
  • 63 respects

Reactive Sound Color Changing Cube!

Project tutorial by Najad

  • 10,001 views
  • 19 comments
  • 71 respects

Color Sensor Prototype: Detect Color Name from Objects

Project tutorial by moretticb

  • 6,227 views
  • 7 comments
  • 32 respects

LED Color Sequencer

Project tutorial by Team thefantasticode.Group

  • 7,115 views
  • 14 comments
  • 25 respects

Arduino Color Recognition

by millerman4487

  • 9,225 views
  • 10 comments
  • 31 respects

Stereo NeoPixel Ring VU Meter

Project showcase by ericBcreator

  • 50,572 views
  • 318 comments
  • 126 respects
Add projectSign up / Login