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
1 answer

NXC StrToNum always returns 0

I have a strange problem with NXC. I try to receive a message from android phone and convert the string to a int value. The problem is it's always 0 Thats just a test programm. so its very strange^^ // MASTER #define INBOX 0 string tmps1 =…
NsJn
  • 63
  • 1
  • 1
  • 4
0
votes
1 answer

How can I develop an android that control my LEGO NXT via bluetooth?

I have Eclipse installed and I know how to develop android apps, but I didn't find how to communicate with the LEGO NXT. I heard something about the LEGO Communication Protocol, but I didn't find the libraries that give me the direct methods.
0
votes
2 answers

Connect to nxt with java bluetooth

I would like to connect to my mindstorms nxt robot over bluetooth with java. Also keep in mind that I have lejos installed. Lejos includes classes to connect with the robot. Thank you so much I have spent weeks trying to figure this out and would…
www139
  • 2,111
  • 3
  • 13
  • 8
0
votes
1 answer

Mindstorms NXT Programming opposite facing ultrasonic and light sensors

I'm not usually one to ask for help, but after weeks of trying to get this to work, I'm reaching out for help as a ditch attempt. I've been having trouble with programming my LEGO Sumo bot. Because of this, I started to learn the program more and…
0
votes
0 answers

Using lejos for NXT with Linux

I have a Mindstorms NXT and only could flash it with sudo right? So now I want to upload a test program, but: Initializing LeJOS JDK at /opt/lukas/lejos Linking ... Program has been linked successfully Uploading ... leJOS NXJ> Failed to find any…
irwisch
  • 1
  • 1
0
votes
2 answers

RobotC VEX / Lego Programming: How to make a robot run multiple reactions in parallel?

I need to get my robot to be able to use the bump switches so that either one can be pressed and the motor corresponding to that bumpswitch will run for as long as the bump switch is pressed. The problem I'm having is getting the LEDs to light up…
user3376956
  • 21
  • 1
  • 4
0
votes
1 answer

NXT 2.0: Combine Line follow and Obstacle avoidance?

I have seen code sample that do line follow and code samples that do obstacle avoidance. But are there any code samples that combine both line follow and obstacle avoidance?
0
votes
1 answer

Trouble programming MindstormsNXT with RobotC

I am having trouble making my robot controlling my Mindstorms NXT robot with RobotC. I want my robot to be able to move forward on a table and when reaching the end, the ultrasonic sensor, which is facing down, will determine if it is on the edge by…
rkatakam
  • 51
  • 6
0
votes
2 answers

Motor conrolling through C

I am working on a NXT lego mindstorm robot and I am building the line follower robot with single reflected light sensor and I am programming in C Language. the sensor converts the raw Analogue value to digital value with the range from 0 - 1023. I…
user2828488
  • 65
  • 1
  • 8
0
votes
1 answer

Using 32bit Java library with JavaFX 2 (OS X)

I have written a small class using a 32bit Java library (http://bluecove.org/) to control a Lego Mindstorms NXT robot over Bluetooth. However, I would like to use this class now within a Java FX 2.0 application and Java FX 2.0 requires at least Java…
Michael Stauffer
  • 298
  • 1
  • 4
  • 15
0
votes
1 answer

NXT to pc bluetooth text message

How can I send a bluetooth text message from nxt to pc and read it in the pc? I use this: byte[] byteOut = new byte[65]; int i = 0; try { byteOut[0] = (byte)(TextBox1.TextLength + 5); //number…
0
votes
1 answer

Weird compiler errors on in Bricx command center

I have been working on a program to make a robot follow a sound, but I keep getting weird compiler errors. I'm guessing that I made some mistake that threw the compiler off the rails. #define TICKS_TO_SAMPLE 6 #define MS_TO_SAMPLE 100 #define…
0
votes
0 answers

how to build a 5 wall map in lejos-nxj with NXT brick

I have an NXT robot. I want to map a room without any obstacles, and "give" this map to the robot. I have this sample code: // Create a rudimentary map: Line[] lines = new Line[3]; lines[0] = new Line(75f, 100f, 100f, 100f); lines[1] = new…
shlomi
  • 523
  • 3
  • 13
  • 26
0
votes
2 answers

NXT - Tortoise and Hare - follow moving object - Theoretical

I'm going through Robotics past papers as a revision before the exam, and I found one problem which seems very confusing. My department does not provide answers to past papers, so I can't check if I'm right. public class Question4i{ public…
LucasSeveryn
  • 5,984
  • 8
  • 38
  • 65
0
votes
2 answers

Lego NXT-RobotC ultrasonic sensor

I am newbie in programming so I need help with my Ultrasonic sensor driven NXT robot. It is attached to motor(A) and I'd like it to scan the room from robot's centerline to 90° left and 90° right in 30° increments (seven measurements total), store…
Strma
  • 1
  • 1