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

How can you debug Lego Mindstorms programs?

Is there any way to add any sort of debugging to a Lego Mindstorms program, when using the NXT drag-and-drop environment? It would be nice to be able to monitor the status of the various sensors, but even knowing what step in the program was running…
chris
  • 33,326
  • 50
  • 148
  • 232
4
votes
2 answers

Python Bluetooth Passkey/Password Linux

I'm working on a Python script to control my Mindstorms NXT with a Raspberry Pi. My problem is, that the NXT has a Bluetooth passkey. You can change the passkey but not delete it. I want to know how you can connect the PyBluez socket to a device…
4
votes
0 answers

I'm trying to send data with NXJ and Android Bluetooth

I'm doing something with NXT and Android APP, but it is not easy. I succeeded to connect NXJ and Android Device, however, the data isn't sent. I'm trying to send data from Android to NXT. First, I got the code for the Android App: public void…
3
votes
3 answers

Mindstorm NXT Programming Loop Exit Conditions

I am developing a robot for an engineering class. For the purposes of the class I am required to use the NXT programming language. To move, the robot needs to follow a solid black line. If the robot looses the line, I have it scan to the left…
Nathan Tornquist
  • 5,698
  • 8
  • 42
  • 69
3
votes
2 answers

How to make local USB port to work with Azure virtual machine

I am new to Azure, I want to connect my local USB port to Azure VM (for debugging apps), how can I do this? If I can connect local USB (USB of my PC) to Azure VM, I can make 100% use of Azure as PC, and I can run apps without any problem. Please…
3
votes
0 answers

How to build a Lego MindStorm EV3 binary?

We are trying to write a pseudo-OS for an ev3 Lego brick. We already know, that there is an u-boot loader in the ROM of the brick, and that it loads an uImage file from the first partition of the SD-Card. We have tried to understand how the Linux…
BloodyD
  • 963
  • 6
  • 17
3
votes
1 answer

Unable to Load LeJOS NXT Comm Driver

I have been trying to generate an interface with my NXT robot, using the LeJOS libraries. When I run the code I get the following error printed to the console: lejos.pc.comm.NXTCommException: Cannot load NXTComm driver at…
Andrew Gies
  • 719
  • 8
  • 20
3
votes
1 answer

Memory test operation without pointers in NXC on NXT?

I'm trying to write a memory test program for the NXT, since I have several with burned memory cells and would like to identify which NXTs are unusable. This program is intended to test each byte in memory for integrity by: Allocating 64 bits to…
user1131435
2
votes
1 answer

nxt-py no backends error

i am trying to run one of the example scripts for nxt py library using pyusb. whenever i try to run the examples i get the following error: USB module unavailable, not searching there Bluetooth module unavailable, not searching there Traceback (most…
user1130772
  • 387
  • 1
  • 4
  • 9
2
votes
0 answers

Using Bluetooth on Mac OS X

I want to make an app that controls the NXT 2.0 over Bluetooth with my MacBook Pro/iMac. However, I can't find a tutorial on how to use Bluetooth in Xcode for Mac OS X, only for the iPhone. So, is there a tutorial on using Bluetooth in Xcode for Mac…
Corina Vos
  • 19
  • 1
2
votes
1 answer

libusb seems to fail under a class coding structure but works without one?

I have a simple working example using Python/NXT/libusb as follows (note: using Lego's NXT which has a USB interface): import nxt.locator from nxt.motor import * def flip_cube(b): m_arm = Motor(b, PORT_B) m_arm.turn(75, 85) m_arm.turn(-50,…
2
votes
1 answer

BSD for the NXT

Is it possible for me to "port" the BSD operating system over to the Lego Mindstorms NXT? If yes, has any body done it yet? Are there any examples?
wantoknow
  • 563
  • 1
  • 6
  • 15
2
votes
3 answers

Separate signed int into bytes in NXC

Is there any way to convert a signed integer into an array of bytes in NXC? I can't use explicit type casting or pointers either, due to language limitations. I've tried: for(unsigned long i = 1; i <= 2; i++) { MM_mem[id.idx] = ((val & (0xFF <<…
Mateen Ulhaq
  • 18,406
  • 13
  • 75
  • 112
2
votes
1 answer

Python nxt mindstorms connection issues

I want to connect to a LEGO Mindstorms NXT robot using Python 3 via USB, however I am getting a BrickNotFoundError when I attempt to connect. Here is the script I am attempting to run: #!/usr/bin/env python import nxt.locator from nxt.motor import…
2
votes
1 answer

ColorSensor LeJos NXT

So, basically what i'm trying to do is: i let my NXT drive a parkour, and while he's doing that, he has to display the colors of a piece of paper (he drives over the paper) on the LCD. The colors are red, green and blue. The one thing that's not…
1
2
3
9 10