Â*Theres a lot of things that you can doÂ*with an Motorola DROID Android phone, but did you knew that you can Lego your DROID?.Â* Here are some words from Mike, the guy behind the DROID Lego project:
One of my all-time wishes was to have my very own robot. And now, Lego has made playing with robots practical with the Lego NXT Robot kits. These kits follow the spirit of Legos in that they are easy, inexpensive and fun to assemble into multiple varieties of wheeled and walking robots. The kits include a brain that controls three motors, and up to 4 sensors. But what was missing was a remote camera, a compass, and a GPS. Enter the Motorola Droid, or most any Android device for that matter. Since the Android phone contains these advanced sensors, and is based on Java and open source, I figured it would be a simple matter to "wire" the Droid up to my computer and monitor its sensors side by side with my Lego Robots software. I wasn’t too far off. I struggled a few days working out the code needed to decode the camera preview image, but everything else went fairly smoothly. In the end, I had a huge smile across my face as my Lego robot ventured out across the vast living room carpet, with me controlling it remotely from only the image I could see on my computer screen. It’s not the robot from lost in space, but none the less, it can open up a lot of young minds into how their future may look.

I should note that the software is not "finished" quality. It's proof of concept, and it works. I may or may not ever improve or complete it, so I am making it available as is with no license or restrictions (or promises).
There are 3 pieces of software:
The Android Java code (droidSense). This code is a simple TCP server that provides raw undecoded image data (from the camera preview, sensor data and GPS data to any client.
The stand alone .Net program (AssClient) that communicates with the Droid Java server, decodes the raw image data and displays the image, and raw sensor and GPS data.
A Microsoft Robotics studio service (AndroidCameraService) that provides a generic WebCam image for use by a visual or standard MRDS program.
The Java piece run on the Droid (There is no UI, it just displays the preview surface while running, use ‘force stop’ to kill it), and you then run either piece on the PC (I haven’t tried running them both at the same time, but I suppose it might work).
[youtube]http://www.youtube.com/watch?v=QZ7NvLbbA74[/youtube]
[youtube]http://www.youtube.com/watch?v=GoQ2x2iXmdc[/youtube]
Â*[Via]
<a href="http://www.dailymobile.net/2010/07/10/android-motorola-droid-lego-true/">
</a>