Friday, October 10, 2008

Java Software for Control NXT Robot Through Mobile Phone

Control NXT Through Mobile Phone


If you want to control your NXT robot through bluetooth connection in your Mobile Phone


you can download the program here :



LEGO® MINDSTORMS® NXT
Mobile Application
User Guide



OVERVIEW


This software enables a number of specific mobile phones to control the NXT by Bluetooth. The list of
phones currently supporting the NXT Mobile Application is available are :






THE PHONES IN THIS COMPATIBILITY MATRIX HAVE ALL BEEN VERIFIED TO WORK WITH THE NXT MOBILE APPLICATION.

NOTE THAT NOT ALL PHONES SUPPORT ALL FEATURES.








































































Model
Remote Control
Program Control
Playing Sound
Taking Images
Datalogging
Firmware1
Notes
NOKIA

Official website: http://www.nokia.com/
6680 Yes Yes Yes No Yes 4.04.07 -
3230 Yes Yes No Yes Yes 3.05.05.2 -
SONY ERICSSON

Official website:
http://www.sonyericsson.com
W800iYesYesNoNoYesR1AA008-
W550iYesYesYesNoYesR4BA041-
K610iYesYesYesYesYesR1CB001-
K800iYesYesYesYesYesR1CB001Screen resolution must be 176x208 pixels
K750iYesYesNoYesYesR1N035-
Z710iYesYesNoNoYesR1DA018-
Z550iYesYesYesYesYesR6BA033-
K510iYesYesYesYesYesR4CH003Screen resolution must be 128x128 pixels
BENQ-SIEMENS

Official website:
http://communications.siemens.com/
CX75YesYesNoYesYesN/A-
S65YesYesNoNoYesN/A-





DISCLAIMER


This software is provided as-is without any warranty of any kind. The entire risk arising out the use or
performance of the software remains with you. To the maximum extent permitted by applicable law, in
no event shall the LEGO Group of Companies (including, but not limited to LEGO Systems A/S) and its
suppliers and licensors, be liable for any damages arising out of the use or inability to use the software.
To install and use the software, you must agree to the terms of the License Agreement included with the
software. Please be sure to read the License Agreement (EULA) before installing LEGO MINDSTORMS
NXT Mobile Application on your phone.




SYSTEM REQUIREMENTS


MINDSTORMS NXT
The NXT Mobile Application is supported by NXT bricks with the following versions or later:
FW 1.03

AVR 1.01

BC4 1.01

(You can find your version numbers on the NXT brick under 'Settings'...'NXT Version')



MOBILE PHONE
Your phone must be Bluetooth enabled and capable of running Java (JSR-82). Phones listed in the NXT
Mobile Application Compability Matrix currently supports the NXT Mobile Application:




Make sure that your operator allows third party applications and that your phone's settings allow
installation of java. You may have to change your phones settings to permit the use of Java applications
(consult your phone’s instructions manual).


Following the instructions in this document requires a Bluetooth enabled computer to install the NXT
Mobile Application on your phone.




DOWNLOAD AND INSTALLATION



  1. First check that your phone supports the NXT Mobile Applications.

    A more detailed Compatibility Matrix is included when you download the software.

  2. Download the NXT Mobile Application software package and unpack the files on your computer.

  3. Make sure Bluetooth is turned on your phone and the NXT

  4. Locate the NXTmobile.jar file specific for your phone (make and model is indicated by folder names)
    and install it on your phone:


PC: Find the downloaded application and right click the file. Choose 'Send to' in the context menu and
select 'Bluetooth unit'. Find and select your device and follow the instructions for your phone.


MAC: Click the Bluetooth icon in the top menu and choose 'Send file'. Find the NXTmobile.jar file in the
zip-file you have downloaded and click 'Send'. Find your phone on the devices list and click 'Send'.
Follow the instructions for your phone.


UNINSTALLING THE NXT MOBILE APPLICATION


Please refer to the instructions manual that came with your phone for detailed instructions on how to
uninstall programs. Usually you just need to delete the program file from your phone.


GET CONNECTED


1. Start the NXT Mobile Application on your phone by navigating to the folder where you saved it (most
commonly 'games' or 'applications') and choose the application. When launching the mobile application
it will automatically search for NXT devices during start-up. The first time you connect a new NXT you
need to pair the NXT and NXT Mobile Application:


- On the NXT: Accept the connection by choosing the checkmark (notice the passkey)

- On the Phone: Enter the passkey (default passkey from the NXT is 1, 2, 3, 4)


Next time you start up the NXT Mobile Application and it finds your NXT you just need to select it and
you are ready.

Tip: Personalize your NXT and your Phone by giving them unique names. This will help avoiding
confusion when other NXT's or phones when they are in range of the Bluetooth connection.



BASIC USAGE


When the NXT Mobile Application is started you have the following options from the Main Menu:



Info


A brief description of the NXT Mobile Application, where to find help and more information - and the
terms for using the software.



Remote Control


This enables you to control two motors on the NXT. Use the joystick/command wheel on your phone to
go forward, backwards, stop - or you can choose to control one motor at the time. If your NXT model
have wheels (like the Tribot) it will be much like a remote controlled car.
See ‘Advanced Usage and Program Examples’ for more advanced remote control.




Program Control


This mode enables you to control any of the programs on your NXT. First select the program you want
to control and then you can send command messages to your NXT by pressing the numeric keys on
your phone. What the NXT does when you press the keys depends entirely on your program.
Tip: Download the two program examples included with the NXT Mobile Application for an easy
introduction to program control (see the ‘Advanced Usage and Program Examples’)



Collected Data


If the NXT can make your phone take photos, this is where you can find them. Have you made a
program that sends data to your phone, this is where you can find it as well, for instance be readings
from the sensors.


Note: Collected data and images are deleted from the camera when you close the application.

MINDSTORMS NXT Bluetooth Compatibility Matrix


















































Bluetooth Device Name


Compatibility

Abe UB22S
YES
Belkin F8T003 ver. 2 (short range)
YES
BlueFRITZ! AVM BT adapter, BlueFRITZ! USB v2.0
YES
Cables Unlimited USB-1520
YES
Dell TrueMobile Bluetooth Module
YES
Dell Wireless 350 Bluetooth Internal Card
NO
Dlink DBT-120
YES
MSI Btoes
YES
MSI StartKey 3X-faster
YES
TDK GoBlue
YES
Qtrek, Bluetooth USB Adapter v2.0
YES



ADVANCED USAGE AND PROGRAM EXAMPLES


REMOTE CONTROL


In addition to using the joystick/command wheel to control the motors you can use the keys on your
phone:


[1] [4] [7] and [*] controls motor A

[2] [5] [8] and [0] controls motor B

[3] [6] [9] and [#] controls motor C


Using the keys will enable you to make finer adjustments to the motors than using the joystick. For
instance making a vehicle turn in greater curves or controlling all three motors at a time.



Example


Pressing [3] will activate forward movement of the motor on port C. Pressing [6] will start the motor on
port C and pressing [6] repeatedly will increase the speed. Pressing [9] will decrease the speed. To
stop the motor, press [3]



To activate backwards movement of the motor on port C press [#]. Again, pressing [6] will increase
speed and [9] will decrease the speed in backwards direction. Pressing [3] will stop the motor.

Tip: To stop and reset the motors press the joystick/command wheel.



You can change the default motor setup by choosing 'Options' in Remote Control mode. Default is
motor B+C but if your model is wired differently you can change the motors you control with Remote
Control.




PROGRAM CONTROL


During start-up the NXT Mobile Application retrieves all program names from your NXT so they are
available for controlling. You can activate a program on the NXT by selecting the 'Options' menu on your
phone or you can use the following shortcuts to activate programs:
On the joystick/command wheel: Up, Down, Left, Right
On the keypad: [*] [+] [#]



To customize the shortcuts:

1. Choose 'Options'

2. Highlight the program you want to move and press 'More' followed by 'Move Prg'

3. Highlight the key you want to assign to the program and choose 'More' followed by 'Place Prg'


When you have activated a program you can send messages to it by pressing the numeric keys from
[0] to [9]



Examples


Open the two test programs using with the MINDSTORMS NXT Software and transfer the programs to
your NXT by pressing the download button.

(See the NXT User Guide that came with your MINDSTORMS set for details on how to download
programs to the NXT)




SendMsg.rbt



Attach the touch sensor to port 1. If the sensor is pressed the NXT will send a message to your phone to
take a picture (this will only work if your phone has a build in camera)

Attach the touch sensor to port 2 and press it. This will make your Phone play a tune
On port 3, pressing the touch sensor will make the NXT send a text message to your Phone: ‘hello’

TIP: You can review the data your phone receives in 'Collected data'.



RecieveMsg.rbt



Pressing [1] [2] or [3] on the phone will make the NXT say the number pressed.

Tip: Try to customize the two test programs to learn more about how to make programs compatible with
the NXT Mobile Application.




source : www.lego.com

2 comments:

Unknown said...

nyce software and nyce knowledge of lego robotic thanks for sharing

Remote Monitoring Software | Public Access Internet

Kim Tate said...

I believe that even though I've only gone through a small portion of what this set has to offer, I'm already convinced of this set's awesomeness. This is, without a doubt, the best LEGO set I've ever had...and, dare I say, one of the best products I've ever bought, period. Is it pricey?? Absolutely, but I believe it is worth every penny. I've had so much fun with the first set of builds for the Track3r that I feel I've already gotten value out of the kit...and the fact that I have a ton of stuff left to do before I even start moving on to ground up models with ground up programs just says to me that this kit's value is through the roof.

Highly, highly recommended!!


Kim of Impression Emedia