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
2 answers

Converting Byte Array to String (NXC)

Is there a way to show a byte array on the NXTscreen (using NXC)? I've tried like this: unsigned char Data[]; string Result = ByteArrayToStr(Data[0]); TextOut(0, 0, Result); But it gives me a File Error! -1. If this isn't possible, how can I watch…
1
vote
0 answers

Upgrade nxt explorer to draw a map

I have made this robot: http://www.nxtprograms.com/explorer/steps.html#Program and i want to upgrade it to draw a map of the environment where he moves. I have tried a lot of things but never succeeded, and also i can not find a good tutorial to…
Bambus
  • 1,493
  • 1
  • 15
  • 32
1
vote
0 answers

Configuring Java with NXT Lego robot

I have been trying to getting I got everything installed for leJOS on the NXT by the tutorial and I installed this Java 6 for it from Here. I have tried to run a simple java program on the NXT but I keep getting this. How do I fix this? Error: This…
ProgrammingCuber
  • 377
  • 4
  • 14
1
vote
0 answers

How to resolve nxt-python error "ImportError: No module named 'nxt'"

I am attempting to use nxt-python in order to program a robot. I installed nxt-python for mac by following these instructions. After installing it I decided to run one of the example scripts: #!/usr/bin/env python import nxt.locator from nxt.motor…
Foobar
  • 7,458
  • 16
  • 81
  • 161
1
vote
1 answer

LabView NXT Programming - Error 1003

I'm using the NXT toolkit addon for LabView 2009 and I'm trying to download a program, targetted to the NXT onto the brick. When compiling, it fails with the error. Error 1003: The VI is not executable. Most likely the VI is broken or one of its…
A Jackson
  • 2,776
  • 7
  • 34
  • 45
1
vote
2 answers

Lejos RGB color sensor

Does anyone have a code example of using the NXT RGB Color Sensor in the Lejos programming language. I have tried several different uses of setType() and setMode() but to no avail.
Milhous
  • 14,473
  • 16
  • 63
  • 82
1
vote
0 answers

Matlab lego nxt robot doesn’t turn but says it did

I am programming a Lego brick NXT in Matlab to go through a maze. The robot is supposed to drive forward until the touch sensor is activated by a wall. The robot should stop backup stop read the ultraSonic (distance) sensor display the result If…
Pam
  • 11
  • 1
1
vote
1 answer

LeJOS NXT Programming Sonic Sensor

I am trying to make a NXT Robot that has attached the Ultrasonic Sensor. It has to drive until the distance is 15, and then the engines have to stop. After it stops it has to turn, but it doesn't work. import lejos.nxt.*; public class test { …
lucafj2j282j
  • 879
  • 3
  • 13
  • 32
1
vote
2 answers

LeJOS: How write integer data succesfully to a file in NXT

I am working on some AI project which I am supposed to implement a controller using fuzzy logic on my NXT. In order to evaluate properly my control strategy, I have the need to track the information measured by the color sensor and the data that are…
Mudkip
  • 373
  • 6
  • 27
1
vote
0 answers

RGB To HSL Algorithm?

I have seen many algorithms and formulas for converting RGB data to HSL but none were successful. So where can I get few algorithms/formulas for converting.
Timbelion
1
vote
1 answer

Android can't connect to NXT after reopen the app

Firstly, unfourtanetly my English is not too good, but I hope you can understand what is my problem:) So, I am new here and new in Android too. I have two phones: Motorola Defy (with Cyanogenmond- Android 4.4.2) and a Sony Xperia J (Android 4.1.2 -…
Joci Ivanics
  • 31
  • 1
  • 3
1
vote
0 answers

RobotC - Simple error from motors not being recognized

We are programming a teleop program for FTC. Our robot is omni wheeled: /\ / At the top we define our four motors as motor_LF, motor_LB, motor_RF, and motor_RB Unfortunately, on the last few lines that actually move the motors, we get error saying…
surfaspen
  • 391
  • 7
  • 17
1
vote
1 answer

mindstorm NXT bluetooth developer docs

So the mindstorm NXT provides fairly user friendly bluetooth communication, which works if you just need to communicate robot to robot, or directly control the robot without much programmability. However my engineering club wants to be able to…
Sophie
  • 780
  • 6
  • 18
1
vote
1 answer

Found the NXT device but can not upload a program to NXT

I'm using Ubuntu 14.04 (64 bit). After installing leJOS_NXJ_0.9.1beta-3, I was able to flash the NXT device. However, when I tried to upload a program, it showed a message "Found NXT: NXT 0016530CDF15" and then just stuck there. I also tried Eclipse…
Thuy
  • 11
  • 1
1
vote
2 answers

C Variable instantiation speed

I have a function in my main loop that's called ~200hz. It's running on an NXT, so the processor is pretty slow. In my function, it instantiates a variable, writes it to screen, and ends. Because of the processor speed, I need this function to be as…
mailmindlin
  • 616
  • 2
  • 7
  • 25