Skip to main content
Version: FILS English

PiGlowTune

PiglowTune is a Rust-powered project that syncs LED light patterns with music in real time.

info

Author: Stoean Miruna-Teodora
GitHub Project Link: [https://github.com/UPB-PMRust-Students/project-mirunastoean]

Description

This project features a music-reactive LED ring powered by a Raspberry Pi Pico W 2, which lights up in real time based on sound intensity. A connected web app over Wi-Fi lets you control the LEDs remotely, toggle power, and switch between vibrant color modes for a fully interactive light-and-sound experience.

Motivation

My motivation for this project comes from my passion for both music and visual aesthetics. I've always been fascinated by how sound can be transformed into something you can see and feel, not just hear. This project gave me the perfect opportunity to blend those interests by creating a system where music drives a visual experience in real time. I wanted to explore how technology could bridge the gap between auditory and visual art, and building a music-reactive LED setup felt like a natural and exciting challenge—especially with the added control and customization through a web interface.

Architecture

Diagram

The sound sensor picks up music and sends audio data to the Raspberry Pi Pico W 2, which also connects via Wi-Fi to a mobile web app for remote control. The Pico processes the sound input and controls a WS2812 RGB LED ring, powered by a 5V external supply, to create light effects synchronized with the music.

Log

Week 5 - 11 May

After purchasing all the necessary materials for my project, I began assembling the components, connected everything using jumper wires, performed debugging, and verified that my Raspberry Pi was functioning correctly.

Week 12 - 18 May

Week 19 - 25 May

Hardware

Poza
1. Raspberry Pi Pico 2W – Controls the LEDs and connects to Wi-Fi.
2. Microphone Sound Sensor – Detects sound intensity from music.
3. WS2812B LED Ring – RGB LEDs that light up based on audio input.
4. Power Supply (5V) – Powers the LED ring.
5. Breadboard & Jumper Wires – For easy circuit connections.

Schematics

schema

Bill of Materials

DeviceUsagePrice
Raspberry Pi Pico 2WThe microcontroller39 RON
Sound Sensor ModuleThe sound sensor5 RON
2 x Breadboard The breadboards used15 RON
40 x Male-Male WiresMale to Male Jumpers Wires5,99 RON
10 x Female-Male WiresFemale to Male Jumper Wires5,99 RON
Power Supply ModuleAlimentation Source for Breadboard4,69 RON
Led Ring RGB WS2812 Led Ring29,15 RON

Software

LibraryDescriptionUsage
st7789Display driver for ST7789Used for the display for the Pico Explorer Base
embedded-graphics2D graphics libraryUsed for drawing to the display
smart-ledsA library designed to control addressable LED strips and matrices, with support for multiple protocols and pixel formats.Used to control the LED ring by setting the color and brightness of each LED based on the sound intensity of the music
embassy-rpA hardware abstraction layer (HAL) for the Raspberry Pi RP2040 microcontroller, built on the async-first Embassy framework, enabling efficient, non-blocking embedded applications in RustUsed to interact asynchronously with the Raspberry Pi Pico 2W’s hardware components, enabling responsive and efficient control of the LED ring in sync with music input
rp2040-halIs the official hardware abstraction layer for the Raspberry Pi RP2040 microcontroller, providing low-level, synchronous access to its peripherals and features in RustUsed to configure and control the Raspberry Pi Pico W’s GPIO pins and timers for driving the LED ring and processing sound input signals
  1. Raspberry Pi Audio Reactive LED Strip (2020)
  2. Sound Reactive WS Led with Raspberry Pi Pico