Skip to main content

Posts

Showing posts with the label phone

Interfacing the LEGO MINDSTORMS NXT and Android Phone: Camera Line Follower

Now that we're on break, I had some time to do another demo in the series; this video shows a robot using the Android phone's camera to locate the line and follow it. The connection is based on Bluetooth, and all that is sent is the line's distance from "the center" of the received image. Around near 0:57, you can see the yellow dash that marks the position of the line. This is subtracted from the center of the screen (width/2) and sent to the NXT, which adjusts the motor speeds proportionally using the steering function. The bright light that creates a glare in the screen is actually the flash on the camera, which I turned on in order to eliminate outside lighting conditions. The phone is almost as good, if not better, as a light sensor! Enjoy, and happy building! Richard

Bluetooth Remote Control for LEGO NXT

Mario P. emailed me to let me know about a new piece of software he's created that allows you to control any robot wirelessly using your mobile phone. From the website : "This should run on any MIDP 2.0 phone, provided it supports the JSR-82 Bluetooth implementation. Features: •Current sensor values are displayed on screen while you control your robot using the game keys. •Basic settings allow you to easily change the way robots are controlled. •No musical intros or fixed resolution settings. Be sure to let us know (and Mario) what you think - give it a try and let us have your feedback.