Questions about programming the various LEGO programmable bricks, including Mindstorms (EV3, NXT, and RCX), Wedo and Scout, in either the provided languages and editors, or more advanced languages.

learn more… | top users | synonyms

3
votes
1answer
146 views

Execute program programmatically

I want to program our Ev3 for FLL (class assignment), and I want to use an object oriented approach in a very procedural environment. Is there a programmatic way to execute another program inside the ...
3
votes
1answer
108 views

Where can I learn how to program an NXT using C#?

I've been toying around with my NXT 2.0 set for a few years now and I would like to learn how to program it using C# language. I have no experience in coding and I am definitely not a computer geek. ...
3
votes
1answer
512 views

How to program light sensor to follow moving light using NXT

Cannot figure out how to simply program Lego Mindstorm NXT robot to follow another moving robot that has a bright LED light attached to it. Currently my programme looks like this:
3
votes
2answers
215 views

Lego EV3 - Get output device type, opOUTPUT_GET_TYPE

I would like to know what kind of motor (XL, L) is connected to EV3 output port (A|B|C|D). I need to use direct command: Instruction opOutput_Get_Type (LAYER, NO, *TYPE) Opcode ...
3
votes
2answers
815 views

IDE recommendations for EV3 programming

Does anybody have any recommendations for non-GUI programming of the EV3 unit? I'm impressed by the LabVIEW software, but as a professional C# and VB.Net programmer (with C, C++ experience), I find ...
3
votes
1answer
625 views

Can EV3-G MyBlocks be recursive?

Imagine I create a MyBlock called "function1" from a line of blocks. Can I call that block from within itself? This is the program for the block "recursiveTest." Will this block function properly? ...
3
votes
1answer
69 views

NXT brick not executing programs correctly

I have an issue that I am hoping someone might be able to resolve: We're using Mindstorms in the classroom as part of a STEM program and have one NXT brick that wont execute programs correctly. The ...
3
votes
1answer
120 views

Teleoperated arm trouble

I have built a robotic arm with the lego Mindstorms ev3. My goal is to control its motion via teleoperation, that is , to have a gyro sensor strapped onto my arm and have the robot mimick the up and ...
3
votes
3answers
1k views

My Blocks with return parameter

I have the retail EV3 kit and have created a function with in and out numeric parameters. While using the [in] params seem quite straight forward, it seems that I can only set the [out] param once. ...
3
votes
2answers
56 views

Lego NXT Exploitation or Vulnerabilities?

I originally posted this question on the Reverse Engineering site, but there were no answers. They told me to also post this question here. OK, my friends and I have Lego NXT sumo bot competions for ...
3
votes
2answers
116 views

I need a block that can combine a movement program with NXTbee radio

I am a student. I am working on a science project using LEGO Mindstorms robots enhanced with NXTbees creating a mesh network. My engineering mentor has me using LabVIEW. I am trying to find a block ...
2
votes
2answers
2k views

EV3 parallel MyBlocks, but only one working

TL;DR = Is there any obvious reason why a MyBlock, added twice in parallel to a program, will only run one of them? In my EV3-G program, I have a MyBlock which uses the Proximity Heading to control ...
2
votes
3answers
2k views

The Mindstorms EV3 Software crashes on OS X Yosemite 10.10.3. What do I do?

It's crashing on startup which is really irritating. When debugged with terminal it says this: Unhandled Exception: System.UnauthorizedAccessException: Access to the path is denied. [ERROR] FATAL ...
2
votes
1answer
73 views

How to make NXT bricks communicate information?

Is it possible to connect, in some way, two NXT bricks that has program functions running on both. For example, Brick one would tell brick two that it is okay to start a program. Are there any sensors ...
2
votes
3answers
2k 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 ...
2
votes
1answer
310 views

EV3 turning in circles

New programmer feeling my way around. I set the most simple "steering block" to 25, the power to 50, and the number of motor rotations to 40 or 50. Then I let it run expecting the bot to go in a ...
2
votes
1answer
92 views

Absolute Turning Motor in NXC

How can I turn my motor to 123 degrees, not for 123 degrees? I tried the PosRegSetAngle("output", "angle") command and didn't work. Documentation for PosRegSetAngle
2
votes
1answer
1k views

RGB sensor HOWTO use?

I've got an RGB sensor (this one with the three LED thingies) and wonder how to access it using NXC. I know I can SetSensorColorFull(IN_1); and then access it using ReadSensorColorEx or, for ...
2
votes
1answer
278 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 ...
2
votes
2answers
987 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 ...
2
votes
1answer
135 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
1answer
208 views

Sort the program list on EV3

When uploading a project to the EV3 brick, is there a way to control the sorting order of the programs on the brick? E.g: Prog_1 Prog_2 Prog_3 ... When playing a robot match in FLL one often needs ...
2
votes
1answer
156 views

Tufts MAZE LabView Program Will Not Run on EV3

Through the 2012 LabVIEW for LEGO software package, I found an example of a maze from Tufts. I cannot get it to run on an EV3. It appears to just constantly execute the initialization. How can I ...
2
votes
3answers
1k views

Programming NXT color sensor with NXC?

Currently I am working Lego robot that solves 2x2x2 Rubik's cube. I am programming Lego Mindstorms NXT 2.0 color sensor in BricxCC. I already have RGB data with the command ReadSensorColorRaw. I ...
2
votes
1answer
403 views

Trying to get a modified traffic signal challenge worked out

The challenge is for a robot to go around the perimeter of a rectangular field and execute 90 degree turns when it gets within 4.5 inches of a wall. Simultaneously, if the bot encounters a red flag, ...
2
votes
1answer
141 views

How make robot turning going straight?

I have been struggling with this function for a while. I want my robot to turn left until it detects black then turn right until it hits black again. Then, I will divide the angle in half and call ...
2
votes
1answer
728 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 ...
2
votes
1answer
387 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
0answers
64 views

Programming the LEGO Mindstorms T-Rex [duplicate]

I followed the instructions up to the MoveAbsolute My Block for the T-rex but I'm not able to link the last connection (Brake at End). Can anyone advise what I might need to change?
2
votes
0answers
224 views

Daisy chaining EV3 with RobotC

I'm trying to run EV3 programs with RobotC and trying run on EV3 Daisy Chaining. I have three independent EV3 bricks labelled A,B,C. I want, according to the color reading by the color sensor on ...
2
votes
0answers
265 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?
1
vote
1answer
202 views

Raw RGB data to Color?

I'm trying to convert the raw RGB values from a Colour Sensor into HSL but it doesn't seem to be working: R = rgbn[INPUT_RED]; G = rgbn[INPUT_GREEN]; B = rgbn[INPUT_BLUE]; var_R = ( R/255 ); var_G = ...
1
vote
3answers
348 views

Reading current motor speed, opOutput_Read

I'm trying to read current motor speed using direct command: Instruction opOutput_Read (LAYER, NO, *SPEED, *TACHO) Opcode 0xA8 Arguments (Data8) LAYER – Specify chain ...
1
vote
1answer
82 views

Direct/system command for reading the display buffer of EV3 bricks?

I recall being able to read in the display buffer of NXT 2.0 bricks over Bluetooth/USB by issuing Read IO Map system commands. I've looked through the bytecodes and communication documentation for the ...
1
vote
1answer
89 views

Site or example project / downloadable programme resource anywhere for the EV3 mindstorm?

There seems to be lots of available examples for the NXC version, but I can't find anything for the EV3. I thought that there would be a load of example project files with the software but there's ...
1
vote
2answers
99 views

Which program do I use to program my rcx 1.0 or 1.5

I am getting an RCX and I know it is ether a 1.0 or a 1.5. Which program do I use to program my RCX?
1
vote
1answer
175 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 ...
1
vote
1answer
328 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 ...
1
vote
1answer
724 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 ...
1
vote
0answers
53 views

NXT (NXC) Programs are too slow

I am using Bricx Command Center to write some NXC code for a side project. I am working with the MindSqualls C# Library in Unity and am trying to figure out some ways to use the NXT robots in an ...
1
vote
0answers
46 views

Is there any way to find misplaced bricks in LEGO NXT Programming?

I am working on a Mindstorms NXT project. Due to annoying bug (cannot find terminal hotpoint thingy) I can't delete a specific block, and if I do so, part of the program will be cut off from the main ...
1
vote
0answers
43 views

EV3 Programme won't load to brick

I have installed EV3 on my PC and am trying to load a program into an NXT 1 Brick. When I click the down load button on the EV3 screen the Brick beeps twice and the program does not load. What am I ...
1
vote
0answers
77 views

Use of Mindsensors IMU with Labview

I thought someone could help me with a the Mindsensors AbsoluteIMU ACG and its use with the Lego Mindstorms NXT. Is it possible to use it with and get data out of it?
1
vote
0answers
77 views

After adding a MyBlock icon to the EV3 palette of MyBlock icons, how can the new icon be associated to an existing MyBlock?

After following the advice given in adding a MyBlock icon to the EV3 palette, can the icon be associated to an existing MyBlock? Something better than copy/paste the contents of the existing MyBlock ...
0
votes
1answer
452 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 ...
0
votes
1answer
39 views

How to parameter the ports in move tank block EV3?

How do I parameter the ports at Move Tank block (in My Block)?
0
votes
2answers
107 views

Don't know how to call this but

I want to make a program that does a few things in a random order: I have this so far: The problem here is... I have set the switch block with the random number block to 3 different programs to run. ...
0
votes
1answer
215 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 ...
0
votes
1answer
156 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 ...
0
votes
0answers
32 views

Sense and Display blocks

I put move forward until it sees the red color then it stops and it writes red color But the teacher told us there is problem so where is the problem?