The Magical Disco of Sound: Create a Sound-Reactive Light Show

by Protobject in Teachers > 6

48 Views, 0 Favorites, 0 Comments

The Magical Disco of Sound: Create a Sound-Reactive Light Show

principal65.png

In this project, we will create an interactive sound and light show. Your lights will change color in response to sound — each time there's a spike in noise, like a clap, a beat, or any sudden sound, the lights will explode into new colors. Teenagers go crazy for this experience, as it turns any cardboard box into a magical disco!

Supplies

  1. Smartphone 1: Functions as a noise level detector and colored lamp.
  2. Smartphone 2: Functions as an audio player and additional colored lamp.
  3. Cardboard box: Used to create the disco setup.
  4. Scissors or a craft knife: Used to cut holes in the cardboard.

Create the Cardboard Disco Setup

ApplicationFrameHost_lHORzEknzV.jpg
ace4881e-6ba5-47fc-bcca-95633e394176.jpg
9310d38f-88a5-499e-8501-529c24b62d52.jpg
0470472f-5c95-41dc-9259-3a67945b7a88.jpg
448bb4e8-0ba2-4342-85ec-c736e6180443.jpg
  1. Prepare the Cardboard Box: Find a cardboard box that is large enough to fit both smartphones.
  2. Cut Holes for Smartphones: Using scissors or a craft knife, carefully cut holes in the cardboard box where the screens of the smartphones will be visible. Ensure the holes are positioned so that the light from the screens can illuminate the inside of the box.
  3. Secure the Smartphones: Place the smartphones on the box with their screens facing the holes. Position the smartphones so that the microphone of the first smartphone is directed toward the speaker of the second smartphone.
  4. Optional: Create windows and a door in the cardboard box to make the experience more realistic. Cut out small sections of the cardboard to form windows and a door, adding to the disco ambiance.

Access the Platform and Add Devices

0.add-device.png
1.lamp.png
8.audioplayer.png
9.noiselevel.png
  1. Visit the Protobject platform at https://app.protobject.com using Chrome or any Chromium-based browser (e.g., Edge, Opera).
  2. On the first smartphone, add the NoiseLevel and the Lamp components.
  3. On the second smartphone, add the AudioPlayer and the Lamp components.

Program the System

msedge_DHrRTC7qcz.png

How It Works:

  1. One smartphone plays disco music.
  2. The system listens for changes in the noise level using the microphone of the other smartphone.
  3. When the noise level rises and then drops suddenly, the system triggers the lamps on both smartphones to change color.
  4. This color-based feedback system allows students to create a dynamic light show that responds to sound.


The code is already prepared for you!

You can view it in detail at this link. Comments are included to provide clarification when needed.

You can also open the project directly in Protobject to avoid manually setting it up.

Test Your Sound-Reactive Light Show

The Magical Disco of Sound
  1. Place the smartphones correctly on the box and start the system.
  2. Watch as the lamps on both smartphones change color in sync with the music.
  3. Enjoy the interactive light show.

Optional Improvements

  1. Add More Lights: Integrate additional Lamp devices to make the experience more immersive and involving.
  2. Customize the Cardboard Box: Decorate the cardboard box with stickers, paint, or other materials to enhance the disco theme.
  3. Add a Switch to Control Music: Integrate a Switch component to start and stop the music, adding more control to your disco setup.

Enjoy Your Magical Disco of Sound!

By using Protobject’s web interface and your smartphones’ built-in sensors, you’ve created a fun and interactive sound-reactive light show without needing extra hardware. Teenagers absolutely love this experience, as it transforms any cardboard box into a vibrant, pulsating party zone.

Enjoy building and coding!