Project tutorial
Lights, Music, ACTION!

Lights, Music, ACTION! © GPL3+

Create your own little disco!

  • 2,088 views
  • 1 comment
  • 6 respects

Components and supplies

Ard nano
Arduino Nano R3
×1
11125 01
SparkFun Audio-Sound Breakout - WTV020SD
Not the same one that I am using, but more or less equivalent.
×1
09590 01
LED (generic)
×1

Apps and online services

About this project

Ever thought about having a portable disco light? That grooves according to the music?

Well it’s your lucky day because I have a very simple and an economical way to make a sound sensitive lighting system!

This is how the setup looks like on the breadboard. The components required are as listed below:

1. Arduino Nano 2. Sound Sensor 3. LED (You can choose any number according to your ease, the more the better!) 4. Jumper Cables, resistors

The connections are really easy to make. The sound sensor has 3 pins, namely VCC, output signal and ground. The output pin is connected to the Analog Pin 0 (A0) of the Arduino. And you can find how to connect the LED here.It’s better if you connect the LEDs to the PWM pins to get varied intensity of lights.

The main concept that is being used here is to interpret the intensity of the music or beats coming in and map them onto the multicolored LEDs to create a visually appealing effect.

This is the sound sensor being used to interpret the music.

This small and easy circuit can also be converted into a PCB, using the Eagle CAD software, which would make it more compact and robust.

You can find the code for the above device here: sound_sensitive_1Changes can be made into the code to make it more efficient, suggestions are welcome!

Here is a little video showing the functionality:

So that’s it, there you have your own little simple disco. Have fun!

Code

Code_1Arduino
 int sensorval=0;
 int led;

void setup()
{
 Serial.begin(9600); 
 pinMode(A2,OUTPUT);
 pinMode(A3,OUTPUT);
 pinMode(A4,OUTPUT);
 pinMode(A0,INPUT);


}


void loop()
{
  sensorval = analogRead(A0);
  led = map(sensorval, 300,1024,0,255);
  Serial.println(led);
  delay(10);
  analogWrite(A2,led);
  analogWrite(A3,led);
  analogWrite(A4,led);
  
}

Comments

Similar projects you might like

Fade Lights and Push Button

Project tutorial by Phuong Vo

  • 2,196 views
  • 2 comments
  • 8 respects

Add Lights and Spooky Music to Your Jack-O-Lantern

Project tutorial by aams86

  • 5,124 views
  • 0 comments
  • 19 respects

US National Anthem with Lights & Tone

Project tutorial by Ryan Aebi

  • 821 views
  • 2 comments
  • 6 respects

Control Music Volume and Ledbar Using Slider of 1Sheeld

Project tutorial by ahmed ismail

  • 1,576 views
  • 2 comments
  • 12 respects

How to Configure NeoPixels Using Vixen Lights and Arduino

Project tutorial by Victor Aguilar

  • 13,226 views
  • 23 comments
  • 28 respects

Police Chaser Lights

Project showcase by Jolynn Awesome

  • 5,514 views
  • 0 comments
  • 20 respects
Add projectSign up / Login