Saturday, July 7, 2012

Arduino Midi Controller Part 3: LEDs!



I apologize for the delay between this post and my last post. Several things have happened (high school graduation, family vacation, etc.) which prevented me from posting. In any case, I have mounted the buttons in a viable case, mounted the LEDs in the buttons, and wired everything up except the button switches.

I scrapped the idea of making a wood plate because it became too time-consuming. Instead, I found a plastic container and used the tip of my soldering iron to cut out holes for the buttons.

100_3196

I then began the long, menial, and monotonous process of wiring everything up. The first step was to solder 330 ohm resistors on the positive leads of the RGB LEDs.

100_3194

Once this was complete, I added connecting wire to the LEDs and insulated the connections (I had to use duct tape because I didn't have access to heat-shrinking tubing). I then stuffed the LEDs inside of the buttons and bundled the wires into a semi-organized mass.

100_3412

100_3413

Finally, using a similar wiring design as before, I connected the LEDs to the Arduino through two 74HC595 output shift registers.

100_3415

Below is the demo code I used to flash through all of the LEDs: