How do I create iPhone controlled LED lights with Arduino?

I want to install LEDs in my room that will turn on automatically when I walk in and turn off when I walk out using a motion sensor. But I also want to be able to control then using the Play BLUno app for my iPhone. This app lets the lights go to the beat of music and you can also change the color of them. I am new to Arduino but this seemed really cool. Can anyone tell me how to do this? 
thanks so much

jjames393 years ago

In this tutorial you will learn how to communicate between the iPhone/iTouch app TouchOSC via a WiFi network to a Processing sketch displaying graphics and finally to control an Arduino board to light up an LED.

TouchOSC is just one of many iPhone/iTouch apps that can send Open Sound Control signals. I particularly like TouchOSC because it's stable, it’s only $4.99 and most importantly comes with a really easy to use iPhone interface builder for your computer. There are many applications and hardware devices that can transmit and receive OSC signals, so don’t think that you need an iPhone/iTouch to play with OSC.

Processing is a great application for quickly creating visualizations, interactive installations, and physical computing projects. Processing is free to download and has a large community at Processing.org. Arduino and Processing are also built on the same interface and look nearly identical.

Creating the circuit:

First thing we’ll need to do is to create a simple circuit with an LED, a resistor, a breadboard, some jumper wires and an Arduino board connected to a computer via a USB cable.

Let’s connect our negative/ground jumper to the first row in the breadboard and the other end into one of the ground plugs (enos elisa kit http://www.cusabio.com/bio1-E-eNOS-7-4.html )

Notice that the LED has two different length leads coming out the bottom, the shorter one is the negative lead.

Place the negative lead into the same row as the negative jumper. Place the positive end in the next row down.

Place either end of the resistor into the same row as the positive end of the LED ( The second row). Place the other end of the resistor into the third row.

Next connect the red/positive jumper to pin 11 and the other end of the red jumper into the same row of the end of the resistor (The third row).