Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
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,312
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
341 projects • 349 followers
I'm Arnov. I build, design, and experiment with tech—3D printing, PCB design, and retro consoles are my jam.
Contact

Comments

Please log in or sign up to comment.