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.

learn more… | top users | synonyms

1
vote
1answer
124 views

EV3 Event Delegation

My problem is that the robot, which should just remain in the program until the Escape Button is pressed, just stays in the while-loop. The current code looks like this: using System; using ...
0
votes
0answers
31 views

Parallel Direct Commands to an NXT

Is it possible to send multiple Direct Commands to an NXT brick in a quick succession, and the NXT brick will execute them as soon as it receives them which will look like they are happening in ...
1
vote
0answers
75 views

API for Android or iOS connecting to EV3 by bluetooth

There is official API for Windows, WindowsPhone8 and WinRT https://legoev3.codeplex.com/ it lets you connect to EV3 brick and control it remotely from your WindowsPhone. Are there any libraries ...
1
vote
1answer
97 views

EV3 Brick Error Symbols?

I am currently developing an EV3 robot that sorts colored technic beams. However, the brick will only run part of the program and then generate a strange error code on the brick's screen. The error ...
0
votes
1answer
138 views

Are variables always global with NXT?

New to NXT software. What I'm trying to do is get my motor to go one of 5 distances, but I'm not sure how to choose between those actions. What I thought of was setting 5 variables to 5 sensors. The ...
2
votes
1answer
82 views

EV3 Block problems?

I don't see what is wrong with the way i made my program. It looks like this. The idea is that in the while loop [01] shall the robot move forward until it see something brown. If it see ...
3
votes
1answer
35 views

How to minimize the impact of erroneous sensor readings?

A group including myself are using the Lego Mindstorm kit to design a robot that is going to compete in a school competition. However, the sensors aren't as reliable as we would like them to be, ...
3
votes
2answers
153 views

Is it possible to change the OS in the EV3 Mindstorm Brick

I'd like to know how to change the OS embedded into the EV3 mindstorm Brick ( list of it ). For example, would it be possible to replace the existing one by a linux release without losing any ...
0
votes
0answers
37 views

Can Mindstorms EV3 communicate using protocol 802.15.4?

My aim is to make the robot communicate using protocol 802.15.4 through a USB dongle 802.15.4 over 6LoWPAN. The robot has to be able to get information from TelosB. I wonder whether this possibility ...
0
votes
1answer
21 views

I can’t run the NXT 1.0 program software on my Mac version 10.6

How do I fix this? I run the install program, restart my computer, go to the “Applications” folder and there is a folder named “LEGO MINDSTORMS NXT”. I open the folder and there are three “options”: a ...
1
vote
1answer
222 views

“The type or namespace name ”Brick“ could not be found” Xamarin Studio with MonoBrick

I managed to establish a wifi connection with the Ev3 Brick via WinSCD and am programming the Ev3 with XamarinStudio/Mono Develop(http://xamarin.com/studio "XamarinStudio"). My problem is that "The ...
0
votes
0answers
90 views

Guide me on how to use my Mindstorm RCX kit on OS X Mavericks

Any suggestions on how I can use my old RCX set on Mavericks? I have set up Xcode command line tools, and I am getting compiler errors while trying to download nqc through Macports. Even downloading ...
4
votes
3answers
365 views

In lego mindstorm EV3, can you make the individual programs in a project into functions which can be used in the other programs?

The bit where you program what the robot does using your computer. I'm making a project and I can't fit it all onto the screen, so if you can't do functions, is there any way to zoom out of the screen ...
29
votes
5answers
12k 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 ...
2
votes
1answer
225 views

Can I open my old NXT program files in the new EV3 software so I don't have to rewrite the entire program?

I would like to use or convert NXT-G 2.0 programs for use with the new EV3 software. Is there an easy way to convert them besides just building them from scratch in the EV3 environment?
3
votes
2answers
426 views

Invert motor block in EV3

New to EV3 so this should be simple. I would like my simple wheeled robot to go backwards. So I put two invert motor blocks, one for port B the other for port C followed by a move steering block. The ...
5
votes
2answers
453 views

How to program two NXT motors to run at the same time?

I'm working on a project with multiple axis of movement… trying to get two motors to run at the same time in order to achieve a mix of two!
1
vote
1answer
244 views

What are the memory requirements of EV3-G software blocks running on NXT bricks?

The NXT brick has about 130K memory available for user programs. With the newer firmware required for downloading EV3-G programs that memory has been reduced to 118K. How much memory is used by the ...
2
votes
2answers
586 views

What is a normal range of reading of the Light Sensor using EV3 Raw Sensor block?

EV3 software does not support the Light Sensor. It does support the Color Sensor. The solution is to use the Raw Sensor Block. What is "normal" for raw sensor block readings? I'm getting readings ...
4
votes
1answer
378 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 ...
4
votes
2answers
268 views

Ultrasonic problems with the red and blue balls?

I'm still new to NXT, I try to make the robot locate a ball using the ultrasonic sensor, while there I should be in a square area marked by white color. How can I make the robot locate the object (by ...
2
votes
1answer
142 views

NXT Programming not working

I recently got back into NXT stuff (keep in mind I have a NXT 1.0). My screen was broken,but got that fixed. The software works,but I think the programming doesnt. I made it so If I push a button,the ...
1
vote
2answers
649 views

Can I program EV3 with the NXT-G IDE?

I am helping prepare a team for First Lego League and the new EV3 kit is what will be used. We are currently teaching the kids with NXT 2.0 kits that we have using the NXT-G IDE. It appears that we ...
1
vote
1answer
95 views

NXT brick erratic programming behavior

I think I have a defective NXT brick. It has been programmed to move in a direction for 1 second, wait 1 second and then move in the reverse direction for 1 second. The code downloads on another ...
2
votes
0answers
194 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?
3
votes
1answer
157 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 ...
2
votes
1answer
121 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 ...
4
votes
1answer
406 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
5
votes
1answer
155 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 ...
-1
votes
1answer
217 views

How do I get started with Mindstorms NXT 2.0? [closed]

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 ...
4
votes
2answers
152 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 ...
6
votes
2answers
862 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 ...
7
votes
2answers
363 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 ...
4
votes
1answer
2k 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
1answer
156 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
418 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
356 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 ...
8
votes
4answers
2k 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
2k 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 ...
6
votes
1answer
331 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?
4
votes
1answer
2k 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 ...
4
votes
1answer
2k 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 ...
7
votes
1answer
235 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) ...
5
votes
0answers
182 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: # ...
5
votes
1answer
385 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 ...
13
votes
2answers
2k 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?
4
votes
1answer
203 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 ...
5
votes
1answer
244 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 ...
16
votes
4answers
4k 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 ...
13
votes
1answer
815 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.