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.

143 questions
2
votes
1 answer

implementing PID algorithm in line following robot

I'm working on a small project with NXT mindstorms set. My intention was to build a Robot that can follow a line very smoothly and as fast as possible. Therefore after a small research I found the PID algorithm and I was able to understand and…
james
  • 133
  • 1
  • 11
2
votes
1 answer

How to calibrate the Lego NXT color sensor with LeJos NXJ?

I'm currently writing on a program about detecting different colored balls and sorting them with the Lego NXT and its color sensor. At the beginning it worked quite good but now, the color sensor always returnes the color ID "7" (white), no matter…
Richard
  • 21
  • 1
2
votes
0 answers

How send numbers from android application to LEGO NXT Brick

I want control my mobile robot by android application. I use LEGO NXT and nxtOSEK platform http://lejos-osek.sourceforge.net/ecrobot_c_api.htm . If I send command 0x06 0x00 0x80 0x03 0x0B 0x02 0xF4 0x01, my robot give "beep". If I send 0x01 0x02…
user3483899
  • 93
  • 1
  • 5
2
votes
0 answers

NXT like standard C?

I'm currently working on a project, where we want to program a swarm of nxts. I have a question to this one, and I can't find a precise answer on the web. So there will be a program on my pc, let's call it a switch, which should connect to 3…
themaksmw
  • 25
  • 6
2
votes
0 answers

Sending message from NXT to PC via Bluetooth using RobotC

I'm trying to send a message from an NXT, programmed with RobotC to a Qt Application on a PC. The PC-Side works well, when sending string data from a phone. On the NXT, I first Tried to use the sendMessage() function. This works, but it's only…
Kaktus
  • 143
  • 6
  • 20
2
votes
1 answer

Lego NXT Color Sensor: Print color as string? (Java)

How can I print the string value of the scanned color on the NXT-Screen? My code currently looks like this: ColorSensor colorSensor = new ColorSensor(SensorPort.S4); ColorSensor.Color color = colorSensor.getColor(); System.out.println("Color = "…
user3158254
  • 21
  • 1
  • 4
2
votes
4 answers

Lego Mindstorm NXT 2.0: "Error: NXT Bluetooth passkey confirmation failed"

Running Windows 7 and the Lego Mindstorms NXT 2.0 IDE. The Windows bluetooth manager shows the NXT is connected and the NXT shows up in the Windows list of bluetooth devices. When I try to connect from the Lego IDE, however, I get a message that…
DenaliHardtail
  • 24,560
  • 51
  • 134
  • 216
2
votes
1 answer

Any way to program the Lego NXT brick in Assembly Language?

The question says it all. Im currently learning assembly and thought it would be fun to program my nxt in assembly language to get practice at the language. And so I was wondering whether it is possible for this to be done. Thanks -Dan
Code Doggo
  • 1,700
  • 4
  • 25
  • 51
2
votes
2 answers

Using serial port interactively with Haskell

I'm trying to send a message via the serial port to a Lego NXT using Haskell's interactive mode but I cannot figure out how to use the serialport functions correctly. I have a message that should play a tone on the NXT which is of type ByteString >…
ihatetoregister
  • 1,346
  • 2
  • 17
  • 35
2
votes
1 answer

Mathematica won't find SerialIO package

I'm following a guide from The Mathematica Journal that describes how to use Mathematica with the Lego Mindstorms NXT. I have some trouble getting started and got stuck with the SerialIO package. I use Mac OSX and I have installed the package…
ihatetoregister
  • 1,346
  • 2
  • 17
  • 35
2
votes
8 answers

Is Occam-pi a good language to learn to program LEGO MINDSTORMS & Surveyor Corporation SRV-1?

Is Occam-pi a good language to learn to program LEGO MINDSTORMS & Surveyor Corporation SRV-1 robots for an programming newbie. Are there any opensource projects making use of the same -- to read source code. url for occam-pi :-…
anonymous
2
votes
1 answer

NXC communication through USB

How would you send data through the USB port and receive the data in my Linux machine? task main () { byte data[2] = {1,2}; while (1) { Wait(1000); SetUSBOutputBuffer(0, 2, data); } } Compiled it with: nbc -d -Z2 usb.nxc dmesg: usb 2-1.2:…
ArchHaskeller
  • 1,130
  • 1
  • 10
  • 26
2
votes
0 answers

Send message to LEGO NXT from Android

I just want to send a message just like string/number into the NXT from my Android. But NXT didnt receive the data. I use ROBOT C for NXT program and BluetoothMessage example from the ROBOT C. First, I try source code for Android from…
felangga
  • 495
  • 7
  • 20
1
vote
1 answer

Java generated images can't be use in code that generated them?

I am trying to write a NXT Robot simulator with lejOS where the robot can avoid obstacles, but I want the obstacles to be generated in the code. The code below allows for the creation of the Circle.jpg, but the code crashes if it tries to use the…
1
vote
1 answer

Can I use Visual Studio 2010 to program Mindstorm NXT2 in C++

I'm considering to buy mindstorm NXT2 and I'd like to know if it is possible to develop c++ software for NXT2 using Visual Studio 2010 as IDE. I guess it will be funny to improve my C++ skills (I didn't study C, just C++) with a lego kit and in a…
1 2
3
9 10