Questions tagged [nxt]

The NXT tag should be used when asking question about programming in the NXT 1.0 or 2.0 environment, or about programming the NXT 1.0/2.0 controller using other methods than the language/environment provided by LEGO.

NXT is the previous version of the LEGO Mindstorms robotics kit. NXT includes the microcontroller and the software to program it.

The NXT software was developed for LEGO by National Instruments (makers of LabView) and is a graphical, drag-and-drop programming environment.

NXT environment allows interaction with a wide range of sensors available for the controller as well as interacting with up to 3 motors per controller.

139 questions
1
vote
1 answer

Touch sensor not working

I am attempting to create a very simple program in RobotC. In this program the robot will move forward until the touch sensor is hit. #pragma config(Sensor, S2, touchSensor, sensorTouch) void setMotors(int a, int b){ motor[motorA] = a; …
Noah Huppert
  • 4,028
  • 6
  • 36
  • 58
1
vote
0 answers

Trying to connect NXT to C# using bluetooth

I am trying to receive a message from my LEGO NXT Robot in C# using serial ports, but this does not seem to work. I have connected the NXT on COM7 (Serial Port (SPP) Dev A). Then, I have tried the following options to allow the communication. I…
Dimitris
  • 303
  • 1
  • 6
1
vote
1 answer

How to use Visual Basic, Mindstorms NXT and USB communication Altogether?

I have been researching for a couple of days, and i have not found anything I understand about sending direct commands to the NXT via USB. All of the tutorials I have found are based on Bluetooth communication, and the information I have found about…
1
vote
1 answer

Control lego NXT using Arduino [Bluetooth]

I am trying to control NXT robot using Arduino UNO and bluetooth, I used this code #include byte moveTelegram [] = {0x0C,0x00,0x80,0x04,0x01,0x32,0x05,0x01,0x00,0x20,0x00,0x00,0x00,0x00}; SoftwareSerial blue(10, 11); int…
1
vote
1 answer

How to "join threads" with Lego Mindstorms NXT default "LabVIEW" code

Simply put, I want to manipulate two motors in parallel, then when both are ready, continue with a 3rd thread. Below is image of what I have now. In two top threads, it sets motors B and C to "unlimited", then waits until both trigger the switches,…
hyde
  • 60,639
  • 21
  • 115
  • 176
1
vote
1 answer

LeJOS NXT Programming

iam a beginner in Programming and trying to make a Cleaning Robot NXT i attached ( Ultrasonic Sensor) ,and ( Sound Sensor ) the job of the Robot is that when i Clap it have to start moving Forward and when the UltraSonic Sensor sees Something on…
1
vote
2 answers

leJOS ignores my loops

I just installeds leJOS for my NXT 1.0 and it worked just fine. I am using Eclipse to write the code and uploade it to the block. The only problem I have is that the block completely ignores my code: import lejos.nxt.*; public class Drive { public…
Timbo
  • 487
  • 1
  • 5
  • 17
1
vote
0 answers

Can i run a program in C# for Lego NXT with wifi connection?

I would like to run a program in C # using a wifi connection. I found a wireless sensor, WifiBlock, which can connect to the NXT and connect to the PC. But I don't know if Wifiblock can run a program in C#. Do you know other sensor that can do it or…
1
vote
1 answer

Can I download a programm written in C# into nxt 2.0 brick?

I use C# language and http://www.mindsqualls.net/ library. But I could not find how to download my program into brick. Actually, is it possible? Or I just have to control my nxt 2.0 robot via bluetooth? Are there any languages/libraries which allow…
Oleg Dudnyk
  • 1,009
  • 1
  • 10
  • 22
1
vote
2 answers

NXT mindstorm drawing robot

I am a high school student and am thinking of making a robot that draws using different colored markers. I would like some guidance as to where I should start with this program. What I want to do is to construct a program on the computer where you…
Omar
  • 2,155
  • 4
  • 24
  • 38
1
vote
1 answer

NXT programming?

I would like to program some stuff for a LEGO NXT robot. The "API" included with the robot is quite limited, so I went on to find some alternatives. There seems to be a bunch of languages/add-ons/compilers for this task. The thing is that I don't…
OFRBG
  • 1,653
  • 14
  • 28
1
vote
1 answer

java eclipse: failed to load nxt usb comm driver

I have problems with java eclipse indigo, the plugin lejos for the nxt brick. The problem is that i have installed the hole software/drivers which i need to program it. operating system: windows 7 But the console say following: Linking ... Program…
peterpf
  • 11
  • 1
  • 3
1
vote
0 answers

Bluetooth between NXT and android smartphone

I want my android smartphone to receive a message from a Lego Mindstorms NXT-unit. Once the message has been sent, the phone will then dial the first number in a list and if it gets a "busy signal" or no answer for four signals, dial the next number…
pimmen
  • 402
  • 4
  • 17
1
vote
1 answer

Fixing the turn method in nxt-python

I want to be able to stop my robot from moving when it meets an obstacle. However the turn method in the SynchronizedMotors class under motor.py doesn't allow me to do so. How could I fix that? Is there any direct solution? I did try using a thread,…
Edward
  • 93
  • 10
1
vote
1 answer

How to update position of the robot and the object without repeating it values

I would like to know how could i solve the issues of values being repeatedly passed down to my activate(valueList) method.The program works in a way that there's a robot and a ball and the main loop passed the values list method continuously. My…
Edward
  • 93
  • 10