CC Project Report
CC Project Report
Team
Atharva Kshirsagar 231050028
Ansh Semwal 231050006
Sujal Diwedi 231050017
Project Overview:
The LED music visualizer is an electronics project that takes an audio input from a music
source and converts it into a visually appealing light display on an addressable LED strip.
The system uses an ESP32 microcontroller to analyse the audio signal and generate
corresponding light patterns on the LED strip.
Hardware Components:
1. ESP32 Microcontroller
2. 100uF Capacitor
3. 470 Ohm Resistor
4. Addressable LED Strip (WS2812B or similar)
5. Breadboard
6. Jumper Wires
The LED strip is connected to one of the ESP32's digital output pins, which is used to
transmit the light data to the LEDs. The ESP32 is powered through its USB port or an
external power supply.
The entire circuit is assembled on a breadboard using jumper wires to connect the
components.
How It Works:
The ESP32 microcontroller runs a custom firmware that performs the following tasks:
1. Audio Sampling: The analog audio signal is sampled at a specific rate (e.g., 9600 Hz)
using the ESP32's analog-to-digital converter (ADC).
2. Signal Processing: The sampled audio data is processed using various signal
processing techniques, such as Fast Fourier Transform (FFT), to extract the frequency and
amplitude information of the audio signal.
3. Custom Algorithms: Our proprietary algorithms analyse the frequency and amplitude
data to create a visual representation of the audio signal. This involves mapping the audio
data to corresponding colour values and brightness levels for each LED on the strip.
4. LED Control: The microcontroller sends the colour and brightness data to the LED strip
using a specific communication protocol (e.g., WS2812B protocol), causing the LEDs to light
up in a mesmerising pattern that corresponds to the audio input.
Here's the added section on the code language and FastLED libraries used in the LED
music visualizer project:
To simplify the control and animation of the addressable LED strip, the project utilises the
FastLED library, which is a popular open-source library specifically designed for
programming addressable LED strips and other lighting projects.
FastLED Library:
The FastLED library provides a high-level abstraction for controlling addressable LED strips,
handling tasks such as colour manipulation, pixel addressing, and advanced lighting effects.
It supports various LED chipsets, including the widely used WS2812B (NeoPixel) LEDs used
in this project.
4. Timing and Power Management: The library includes timing and power management
functions, ensuring efficient use of the microcontroller's resources and avoiding overcurrent
situations.
5. Pre-defined Effects and Patterns: FastLED comes with a wide range of pre-defined
lighting effects and patterns, which can be easily integrated into the project or used as a
starting point for creating custom animations.
In the LED music visualizer project, the FastLED library is used extensively for controlling
the LED strip, setting individual pixel colours based on the audio input data, and creating
smooth and visually appealing light patterns and animations.
The combination of the C++ programming language and the FastLED library provides a
powerful and efficient solution for developing the LED music visualizer project on the ESP32
microcontroller platform.
1.Home Entertainment: The visualizer can be used as a decorative and interactive lighting
system for home entertainment setups, enhancing the ambiance and creating an immersive
audio-visual experience.
2. Parties and Events: Event organisers can use the visualizer to create captivating light
shows synchronised with music, adding an exciting element to parties, concerts, and other
events.
3. Retail and Advertising: Businesses can use the visualizer in retail stores, exhibitions, or
advertising displays to attract attention and create visually appealing product presentations.