Hackster is hosting Hackster Holidays, Ep. 5: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 5 on Friday!
Arnov Sharma
Published © CC BY

Music Reactive LED Strip with Microphone Module

LED strip turns on/off at a very fast rate which creates this visualizer effect when the microphone module picks up high pitch voices.

BeginnerShowcase (no instructions)25,277
Music Reactive LED Strip with Microphone Module

Things used in this project

Story

Read more

Schematics

inkedsound_sensor_connection_iotboys_com_wiring_wkfols3kjv_li_KuBPJnCBl6.jpg

just add a mosfet as switch setup instead of led, watch the video for more info

Code

Untitled file

C/C++
its a pretty basic sketch which triggers the gate of MOSFET when Arduino receive a signal from microphone module
int soundSensor = A0;
int LED = 2;

void setup()
{
  pinMode(soundSensor,INPUT);
  pinMode(LED,OUTPUT);
}
void loop()
{
  int statusSensor = digitalRead (soundSensor);

  if (statusSensor == 1)
  {
    digitalWrite(LED,HIGH);
   }
   else
   {
    digitalWrite(LED,LOW);
   }
}

Credits

Arnov Sharma

Arnov Sharma

310 projects • 311 followers
Just your average MAKER

Comments