This is a demonstration of iPhone to Lego NXT Robot communication via the Safari browser and Lego’s Light Sensor.

There are two iPhones involved. The one on the vehicle displays certain colors based on commands issued from the 2nd controller iPhone via a Safari app written with Google’s Web Toolkit. The vehicle executes a command based on the color it “sees.”

You can download the source code from BattleBriks and build and program your own robot by following their step by step tutorial.