Questions about programming the various LEGO programmable bricks, including Mindstorms (NXT and RCX), Wedo and Scout, in either the provided languages and editors, or more advanced languages.
24
votes
6answers
5k views
Is there any other way to program the Lego Mindstorms NXT other than the provided software?
I'm curious to know if there is any way to program the NXT other than the provided software.
I don't necessarily have any issue with the software.
Does the program created by the software translate ...
15
votes
4answers
2k views
How to calibrate NXT motors to travel the same distance?
The motors included with the NXT are not all created equal - when given the same input power level, they do not always go the same distance or turn at the same rate.
I measured this by creating a ...
12
votes
2answers
954 views
Can you program Lego Mindstorms with the Scratch programming language?
My child is learning programming using Scratch in school. Can she program her Mindstorms using Scratch?
12
votes
1answer
528 views
Can I write programs for the LEGO RCX 2.0 in Java/C++?
Is there a library which makes it possible to write LEGO Mindstorms programs for RCX 2.0 in Java or C++? With the LEGO software it takes so much time to write good programs.
8
votes
4answers
1k views
Can I control 2 NXT bricks from a computer using bluetooth at the same time?
I am thinking about starting a project involving controlling the movement of a mindstorms robot depending on some input from a Kinect device; however the robot will require at least 6 motors. I have ...
7
votes
4answers
646 views
How to make Mindstorms respond differently, depending on which sensor is triggered?
I am new to Mindstorms (but in my day job I am a programmer).
I want to make my robot do one thing if the touch sensor on port 1 is pressed, and do something different if the touch sensor on port 2 ...
7
votes
1answer
195 views
NXC Saturation algorithm for limiting motors?
What is a good algorithm in NXC for control saturation? I want to make sure my motors don't turn past a certain angle, or they will break the model.
I could do something like:
if (angle > 45) ...
7
votes
2answers
255 views
Why does this program work in LabView when targeted to computer but not to NXT?
I have a program written in Labview for my LEGO Mindstorms NXT 2.0. When the target is set to the computer, the program works just fine. However, when I set the target to the NXT, the program doesn't ...
6
votes
2answers
550 views
Can we program Nxt2 in C++ under Visual studio 2010?
I'd like to know if it is possible to develop C++ software for NXT2 using Visual Studio 2010 as IDE. I know there are small online projects for NXT but I can't find nothing about NXT2.... Any ...
5
votes
1answer
214 views
NXT brick output ports not working properly
My NXT brick will not let motors run. When I download a program the motor will move forward and backward and then stop - sort of a wiggle. Another motor will not work at all. This happens for all ...
5
votes
1answer
78 views
Is there a way to change the Lego NXT sensor polling frequency?
I am using LEGO NXT 2.0 with the native NXT flowchart-style programming environment, I would love to be able to poll the sensors more frequently. (In particular, it seems that the light sensor is ...
5
votes
1answer
214 views
How can I power an NXT motor without the NXT brick?
I know almost nothing about robotics, so I was wondering how can I power the nxt motor without using the nxt brick, and how can I send signals to it?
5
votes
1answer
135 views
Is it possible to display large text on an NXT using LabVIEW?
In RoboLab and using RobotC, it's possible to write LARGE text to the screen of the NXT. In RoboLab, this can be done by just typing [\big] at the beginning of a string constant which is wired into a ...
5
votes
0answers
136 views
PosRegEnable - How to change motor parameters?
I want to set PID parameters for a faster 'attack' when using PosRegEnablePID() on a motor. I am compiling with nbc/nxc 1.2.1 r4 mac osx fatbinary using -Z2 and -EF flags.
But the compiler says:
# ...
4
votes
1answer
146 views
What can cause programmed NXT 2.0 motors to misfunction when small resistance is applied?
I have robot built per the Alligator tutorial included with Mindstorms NXT 2.0. Everything works correctly if I hold it off the ground and make sure there is no load on the two leg motors. However, if ...
4
votes
1answer
126 views
Gunner bot programing
I just build the RCX Gunner Bot using the instructions from this web site.
I had to build something different to the one we built in the class, I added a touch sensor and light sensor, so the bot ...
4
votes
1answer
786 views
Can you program an RCX using the Mindstorms NXT 2.0 software?
I was asked to teach a robotics class and found several RCX bricks in storage. Can I use these bricks with the Mindstorms NXT 2.0 software? If not, what would be the software I would need to use the ...
4
votes
1answer
134 views
Best sensor for balancing inverted pendulum
I want to build a balancer for an inverted pendulum. Which of the following sensors is best suited for detecting the tilt?
Accelerometer
Gyroscope
Angle sensor
4
votes
1answer
161 views
NXT motor power accuracy
When turning the motors, how precise is the speed parameter? I am programming in the NXC language (standard firmware) and wishing to know how many decimal points will be taken, if any, and whether the ...
4
votes
1answer
1k views
Mindstorms 2.0 can't download to NXT brick with error 142023
Using Mindstorms education 2.0 on a Windows 7 computer I can't seem to get the program to see the NXT via USB or bluetooth dongle.
When connected by USB nothing appears in the NXT window with device ...
4
votes
2answers
127 views
Mindstorms start block is missing
the start block is missing on my mindstorms NXT 2.0 programming space. i cannot run any program without it.
i have tried, restarting the programming window, placing a block and even just undoing to ...
4
votes
1answer
176 views
RobotC for RCX cannot find USB IR Tower
I have looked for similar question but found null. So here I am asking.
I have Win7, a RobotC fo RCX and Mindstorms for RCX (both are old version, but available free). I borrowed an old LEGO kit ...
4
votes
1answer
1k views
How to control a RCX from a Mindstorms NXT
I have both an RCX and an NXT.
I would like to control the RCX brick from the NXT (and possibly communicate back to to the NXT from the RCX). I would like to avoid purchasing the Mindsensors RCX to ...
3
votes
1answer
73 views
Set to run a program within another program using NXT-G
I'm using NXT-G to program my robot to do few tasks autonomously for so many possibilities. When using C programming, we can call a function from different file into the main program. So, I wonder if ...
3
votes
0answers
94 views
Ultrasonic problems with the red and blue balls?
I'm still new to the nxt thing, I try to make the robot locate the ball using the ultrasonic, while there I should be in a square area marked by white color.
How can I make the robot locate the ...
2
votes
1answer
78 views
Setting priorities in LEGO NXT Programmer
For a sumo bot competition I made a robot that has a perfectly functioning ultrasonic senor. However, when I made a second branch on the program for a light sensor, I calibrated the light sensor and ...
2
votes
0answers
65 views
Ideas for large NXT projects [closed]
I currently have 6 NXT sets. Can anyone think of some large scale projects that I could attempt using most of the NXT bricks and pieces together?
2
votes
0answers
184 views
Program a full rotation of a NXT motor in X seconds
I'm interested in mimicking the functionality of the Arqball Spin, at $60 it isn't cheap so I'd like to make the most out of my Mindstorms parts.
I'd like to use NXT-G to program a motor to rotate ...
0
votes
1answer
85 views
How do I get started with Mindstorms NXT 2.0?
I need help programming a NXT 2.0 Lego Mindstorms. I want to make the robot turn, stop, go back, etc. when the color sensors see certain colors. For example when the robot sees red it stops then ...
-5
votes
0answers
47 views
how to program rc remote? [closed]
I need to program a Mindstorms 2.0 remote with two touch sensors and the NXT buttons by June 1 2013. I have found a close program on the internet but nothing seems close enough for me to work with. ...