Introduction: Arduino Controlled Party Lights
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.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Gather Parts
First step is to get all of the 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
(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)
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.
Participated in the
Make It Glow Contest