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

How do I set up a Java-like language (LeJOS NXJ) in Visual Studio 2005 that uses an external compiler?

Recently, I installed the JDK and a java library called LeJOS NXJ, for controlling a LEGO Mindstorms robot. I'd like to be able to set up the language to run through visual studio, which offers J# color coding. The command line to compile the…
Eric
  • 95,302
  • 53
  • 242
  • 374
0
votes
1 answer

Robot-C Slow Down Motor (Tetrix)

So I want to slow down a motor on a Tetrix Robot: Here's my code: //Makes the main frame of arm move up and down motor[motorE] = joystick.joy1_y2 ; How can I make the values given by joystick.joy1_y2slower?
turnt
  • 3,235
  • 5
  • 23
  • 39
0
votes
3 answers

While-loop or threads?

I'm currently programming on a Lego NXT 2.0 with leJOS 0.9.1 beta firmware. I have several different sensors, like a color sensor and a ultrasound sensor. I'm using a while-loop to make the robot drive forward, until it hits a wall. However, for…
cherrun
  • 2,102
  • 8
  • 34
  • 51
0
votes
1 answer

Garbage output to NXT screen

I've been attempting to get nxtOSEK up and running, as there are some C++ projects I'd like to work on with my NXT and in searching the web it seemed to be the most recommended system for doing so. I've been following this tutorial (I'm on Mac) for…
erik
  • 3,810
  • 6
  • 32
  • 63
0
votes
1 answer

Robot does not stop

Attached is a code that moves the robot to a particular distance, however i want it to stop moving as it approaches and obstacle. How do i do this? i have tried adding the ultrasonic to detect an obstacle. I am using nxt-python def move_to(brick,…
Edward
  • 93
  • 10
0
votes
0 answers

Robot Soccer Control Loop

Using lego nxt with color sensor and ultrasonic sensor. Trying to create a soccer control loop which controls the lego nxt to behave like it is playing football in a rectangular wooden built football field with 4 side walls and two goals.I have the…
Edward
  • 93
  • 10
0
votes
1 answer

How to reduce the noise in image so it does not affect the values passed down from the server to the client

Using a server that is connected to a camera that detects the location of a ball and a robot. When the client request for the coordinates of the ball and the robot, the value of the coordinates that are passed down are varying in +2/-2 due to the…
Edward
  • 93
  • 10
0
votes
1 answer

Rotating robot towards direction of the ball

I would like to know is this method the right way to go about this?.I want to rotate my robot which is facing north to the direction where an object is in this case the red ball. Below shows the grid and the position of the ball And here is my code…
Edward
  • 93
  • 10
0
votes
1 answer

Android NXT communication through MailBox using MindStorms

I can write to a mailbox on the NXT but cannot (yet) read from it. the Setup is to use MindDroid from GitHub as a starter. sendBTCmessage(0, BTCommunicator.START_PROGRAM, "bt1.rxe"); sendBTCmessage(1000, BTCommunicator.SENDMAILBOX,…
user462990
  • 5,472
  • 3
  • 33
  • 35
0
votes
2 answers

How to interact between an Android and a running NXT program using Bluetooth

I have modified the Minddroid github Android program to read sensors on a LEGO NXT (wonderful device!). Now I would like to read and write Bluetooth messages to a Mindstorms program running in the NXT. So that I can run a NXT program and send the…
user462990
  • 5,472
  • 3
  • 33
  • 35
0
votes
1 answer

Lego Mindstorm NXT 2.0 remote control over bluetooth from a computer

Can you control a Lego Mindstorm NXT 2.0 robot over bluetooth from a computer? For example using the arrow keys on the keyboard to make the robot move wirelessly (over bluetooth or something else)?
jox
  • 74
  • 2
  • 8
0
votes
1 answer

How to implement a message handler similar to Android, but in normal Java

Problem: I have to connect a Lego NXT robot to an Android device via bluetooth. The NXT is running leJos, so I can use normal Java code on it. Those devices will send and receive messages from each other. Now, the Android part is clear to me, i did…
Sven Menschner
  • 603
  • 5
  • 12
0
votes
4 answers

Bluetooth sharing - Android

I searched the web a long time for a full Bluetooth communication example for android (eclipse) with another Bluetooth device. I found some codes but none of them workd. I'm developing app that will communicate with a lego mindstorms nxt. I will be…
reznic
  • 281
  • 1
  • 3
  • 5
0
votes
1 answer

How can I read centimeter values with the NXT ultrasonic sensor?

I am trying to create a simple version of VFH (Vector Field Histogram) on the NXT using NBC (next byte code). To do this I need to accurately measure the distance between the robot and an object. Since the NXT can show the distance in centimeters, I…
skyfaerie
  • 33
  • 7
-1
votes
1 answer

stdlib not working in nxtOSEK

I am programming the Lego Nxt Brick with nxtOSEK in C++. It seems that the stdlib.h library is not working, but the string.h library works fine. Has anyone seen this before? my includes #include #include my…
MyrionSC2
  • 1,248
  • 1
  • 14
  • 24
1 2 3
9
10