Maker Pro
Arduino

Music Reactive LED

April 30, 2022 by CIRCUITS DIY
Share
banner

Today we are going to make "Music Reactive LED" using Arduino Nano

A music-reactive LED circuit is a simple electronic circuit that responds to varying sound levels, usually, of the rhythmic melody from nearby playing music, and displays the changing intensity level of the sound signal in the form of blinking LEDs. It is a common circuit usually used for decorative purposes in places such as ceremonies, clubs & advertisements, etc. So Here we design “Music Reactive LED” using Arduino Nano Microcontroller.

PCBWay commits to meeting the needs of its customers from different industries in terms of quality, delivery, cost-effectiveness, and any other demanding requests. As one of the most experienced PCB manufacturers in China. They pride themselves to be your best business partners as well as good friends in every aspect of your PCB needs.

music-reactive-led-pcb.JPG
music-reactive-led-circuit-diagram.png
//Circuits DIY
//Sound Reactive Light
int soundSensor = 8;  //define Sound Sensor Pin
int LED = 9;          //define LED Strip Pin

void setup() 
{
  pinMode (soundSensor, INPUT); //define Sound Sensor as input
  pinMode (LED, OUTPUT);        //define LED Strip as output
}

void loop()
{
  int statusSensor = digitalRead (soundSensor);   //define variable of the Sound Sensor status
                                                  //and read value of the Sensor's
  if (statusSensor == 1)        //When the Sensor detects a signal
  {
    digitalWrite(LED, HIGH);    //LED Strip will be active
  }
  else                          //If no signal is detected
  {
    digitalWrite(LED, LOW);     //The status of the LED strip is deactivated
  } 
}

Related Content

Categories

Tags

Comments


You May Also Like