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
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,105
  • 1
  • 10
  • 15
-1
votes
1 answer

Return Functions Don't work. Using pythagorean Theorem

#pragma config(Motor, port1, RightsideB, tmotorVex393_HBridge, openLoop) #pragma config(Motor, port2, RightsideF, tmotorVex393_MC29, openLoop) #pragma config(Motor, port9, LefttsideF, tmotorVex393_MC29,…
Matthew
  • 157
  • 1
  • 9
-1
votes
1 answer

NXT bluetooth pairing always failed

Over 10 hours spend on this and really drive me crazy, any help is appreciate! Tried with Android phone first: Samsung NOTE2, Samsung Grand2, Samsung Glaxy S2 with android 2.2, android 4.2, androind 4.4 both with Original official NXT firmware, and…
Shawn
  • 652
  • 1
  • 7
  • 29
-2
votes
1 answer

Finding certain positions in a room with LEGO NXT?

I have LEGO NXT and a square room of 100x100cm. I would like to use the center of the of the room always as my starting point(the black box). The green box is going to be my park area. Circles can be the random placed obstacles on my way. Red is the…
Anarkie
  • 595
  • 1
  • 14
  • 45
-9
votes
1 answer

Do action until specific time in C#

I'm trying to develop a Windows Phone application that runs a motor. I want to execute the MoveCar method only for 1 second and then Stop. I have this code that works correctly to move the C motor: CarControl _cc; private void UP_Motor_C(object…
Farik_23
  • 13
  • 3
1 2 3
9
10