Arduino Controlled Party Lights
Intro: Arduino Controlled Party Lights
Hello
My name is AJ Udom and I am going to give you a step by step guide on how to make a micro-controlled party light.
This is the overview picture.
This will be a fun, and fairly simple project.
My name is AJ Udom and I am going to give you a step by step guide on how to make a micro-controlled party light.
This is the overview picture.
This will be a fun, and fairly simple project.
STEP 1: Gather Parts
First step is to get all of the parts.
Parts:
- 1 Servo Motor
- 6 LED's (various colors)
- 1 Microphone
- 1 Arduino Uno
- 1 Breadboard.
- 6 Resistors
- Breadboard Wires
- Download Arduino (It's Free!)
Parts:
- 1 Servo Motor
- 6 LED's (various colors)
- 1 Microphone
- 1 Arduino Uno
- 1 Breadboard.
- 6 Resistors
- Breadboard Wires
- Download Arduino (It's Free!)
STEP 2: Connect Circuit Together
Step 1) Connect the LEDs and Resistors to the output pins on the Arduino.
(For example I chose pins 13-7. Note: Pin 12 is broken due to a broken breadboard wire.)
Step 2) Connect the Microphone to the ground, 5V, and an Analog Pin.
(For example, I chose Analog Pin 0)
Step 3) Connect the Servo to Ground, 5V, and a PWM Pin.
(For example I chose PWM Pin 5)
(For example I chose pins 13-7. Note: Pin 12 is broken due to a broken breadboard wire.)
Pin --> Resistor --> LED --> Ground
Step 2) Connect the Microphone to the ground, 5V, and an Analog Pin.
(For example, I chose Analog Pin 0)
OUT to Analog Pin, GND to Ground, and VCC to 5V.
Step 3) Connect the Servo to Ground, 5V, and a PWM Pin.
(For example I chose PWM Pin 5)
White Cord to Input, Red to 5V and Black to Ground.
STEP 3: Type Out Code
The code is fairly simple. The hardest part is figuring out when you want a different sensorValue to become a different set of lights. Because the lights act as a volume meter, then you will only want positive values for sensorValue. If you consider the halfway point (512) as 0, then you want an absolute value function as part of your code. My code can be found at this site. http://pastie.org/8540165
STEP 4: YAY!!! YOU'RE DONE!!!!
You have now completed your party lights. This is my finished product.
5 Comments
bikec 9 years ago
can you make to be connected to music via cable 3,5 mm jack.?
MoonDocker 10 years ago
123456kudo 10 years ago
shaw41 10 years ago
wilgubeast 10 years ago