Current location - Music Encyclopedia - QQ Music - Use a microcontroller... and several single LED lights! Is it possible to create a spectrum display that changes according to the changes in the energy of each frequency of the music as shown in the p
Use a microcontroller... and several single LED lights! Is it possible to create a spectrum display that changes according to the changes in the energy of each frequency of the music as shown in the p
Use a microcontroller... and several single LED lights! Is it possible to create a spectrum display that changes according to the changes in the energy of each frequency of the music as shown in the picture?

It can be done! but. . .

The difficulty should not lie in the display. The use of LED dynamic display is a relatively mature thing. The difficulty of this project should be to analyze the spectral distribution of the music signal.

First of all, it depends on where your music signal comes from. If it is generated by decoding by the microcontroller itself, it is very simple. You can directly analyze the music signal to get the required spectrum during the decoding process. Distribute signals. If the music is not the signal of the microcontroller itself, you need to use AD to sample the music signal, and then use FFT to analyze the AD sampling results to obtain the spectrum signal of the music. These processes were previously done using DSP. Of course, as the performance of today's single-chip microcomputers becomes more and more powerful, it can also be done with a single-chip microcomputer, but it may be difficult for a too simple single-chip microcomputer to do the job.