Introduction: Linkit ONE Sound Reactive LED

Picture of Linkit ONE Sound Reactive LED

The following instructable presents a sound reactive LED. The intensity of LED is increased as the intensity of sound falling increases.

Step 1: Materials

Picture of Materials

  • Linkit ONE
  • Battery
  • Sound Sensor
  • Transistor
  • LED
  • Jumper wires
  • Breadboard

Step 2: Connect the Sensor

Picture of Connect the Sensor

  1. Connect the Vcc pin of sensor to linkit one 5v.
  2. Connect the gnd pin of sensor to linkit one gnd.
  3. Connect the output pin of sensor to linkit one A0.

Step 3: Connect the LED

Picture of Connect the LED
  1. Connect positive terminal of LED to transistor Collector.
  2. Connect negative terminal of LED to transistor Gnd linkit
  3. Connect base of transistor to linkit D9
  4. Connect emitter of transistor to linkit 5v

Step 4: Upload the Code

Picture of Upload the Code

The code is:

void setup()

{

pinMode(9, OUPUT);

}

void loop()

{

int a = map(analogRead(A0), 400, 600, 50, 255)

analogWrite(2, a)

delay(100);

}

Step 5: Test

Picture of Test

After uploading the code, connect the battery and switch it on. Tap on the mic and you will see the LED glowing.

Comments

About This Instructable

241views

0favorites

License:

More by apoorvtr:Linkit ONE Sound Reactive LEDDIY Pulse Rate Monitor
Add instructable to: