2. Connect all 3 leds cathode to pin 5, 6, 7 of arduino and anode to GND.
3. Connect speaker pin +ve to 3 of Arduino and -ve to GND.
4. Upload code and enjoy...
Thanks..
EXPANDED TECHNICAL DETAILS
Programmable Melodic Synthesis
A fun and iconic audio project that recreates the viral "Coffin Dance" (Astronomia) melody using the Arduino's tone() function.
BPM-Synchronized Tempo Engine: The Arduino iterates through a music-array containing note frequencies and durations. The firmware manages a strict Beats-Per-Minute (BPM) timer to ensure the catchy rhythm is perfectly preserved.
Piezo Acoustic Optimization: The project explores the use of a simple 10μF capacitor in series with the piezo buzzer to "Round" the square waves, resulting in a cleaner, more melodic sound.
Aesthetics
LED Rhythm Flash: Simultaneously pulses a high-brightness LED on every "Drop" or "Beat," providing a visual synchronization that matches the viral video's energy.