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

18
votes
7answers
6k 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?
3
votes
1answer
45 views

How do you program mindstorms to keep doing a task until either the IR OR the colour sensor state changes

How do you program mindstorms to keep doing a task until either the IR OR the colour sensor state changes. I would like to use the wait block but it can only be either the colour sensor or the IF ...
3
votes
2answers
126 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 ...
5
votes
2answers
137 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 competitions for ...
3
votes
3answers
882 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
3answers
188 views

Access WeDo on OS X from a real programming language

I'm trying to talk to the WeDo USB interface from Python or really any real programming language. I tried the clever WeDoMore library, but can't get it to bind the WeDo. I think this is because the ...
7
votes
3answers
4k 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!
0
votes
1answer
57 views

How to parameter the ports in move tank block EV3?

How do I parameter the ports at Move Tank block (in My Block)?
6
votes
1answer
648 views

Pass sensor or motor port number as a parameter

I want to create a block for one light sensor or one motor separately. Is it possible to give the number of the port as a parameter to a sensor or motor block via data wire? In NXT-G it was possible.
2
votes
1answer
159 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 ...
1
vote
0answers
61 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 event-...
5
votes
3answers
3k views

Is it possible to edit a my block input parameter value?

I have created my blocks but want to change the input parameter to a negative. Is this possible or must all the myblocks be re-written?
0
votes
2answers
111 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. ...
4
votes
3answers
2k 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 ...
6
votes
2answers
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
3answers
751 views

How can EV3 Gyro sensor drift be handled?

EV3 robots can use a Gyro sensor to determine the direction the robot is heading. The initial conditions are important. The sensor needs to be still and then the sensor reset. However, once in a ...
1
vote
3answers
356 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 ...
4
votes
1answer
46 views

DNX on Lego Mindstorms

I am not familiar with ARM development but I am wondering would it be possible to compile DNX against Lego Mindstorms EV3 processor. I know there is some ARM support and even there are some builds ...
2
votes
1answer
757 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 ...
1
vote
1answer
94 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 ...
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?
5
votes
3answers
841 views

Is there a microphone that works with Mindstorms EV3?

I'm planning to program my EV3 robot to do voice chat over VOIP using ev3dev and a Debian program. Is this possible? Are there microphones known to work with EV3, and has anyone had experience using ...
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
1answer
219 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 ...
1
vote
1answer
96 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
0answers
47 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 ...
3
votes
2answers
230 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 ...
1
vote
0answers
44 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 ...
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 ...
1
vote
0answers
85 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 ...
6
votes
2answers
170 views

Making an ATM with an EV3

I am building an ATM using my LEGO Mindstorms EV3, but I ran across a problem. The problem is that I want to be able to input the amount of money that I want to get out of the ATM but I can only have ...
3
votes
2answers
360 views

Have Multiple Inputs to Programming Block

Originally, I had a simple program to move until the robot hit a wall, then it reversed and turned and moved again, repeated to infinity. It works by turning the motors on, waiting for input from the ...
7
votes
1answer
3k 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 ...
1
vote
2answers
107 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?
6
votes
1answer
1k views

How can I rotate an EV3 motor an exact number of degrees using RobotC?

I'm trying to rotate the motor of an EV3 by an angle of 50°. I can't. How I can rotate a NXT/EV3 motor by a given angle using RobotC?
10
votes
4answers
5k 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 ...
2
votes
1answer
379 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
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 ...
3
votes
1answer
111 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. ...
1
vote
1answer
177 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 ...
6
votes
1answer
236 views

EV3 RMIregulatedMotor Regulation Problems

I have problem with regulation of the motor when I control EV3 with Bluetooth. Here is the code: RemoteEV3 ev3 = new RemoteEV3("10.0.1.1"); ev3.setDefault(); RMIRegulatedMotor leftMotor = ev3....
4
votes
3answers
4k 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 ...
2
votes
1answer
100 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
1
vote
1answer
221 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 = ...
4
votes
1answer
255 views

Custom EV3 Block: “Unable to compile…” (“string subsection”)

I am attempting to make a custom block according to the EV3 Block Developer kit (found here). I was able to create a simple block that returns the length of a string. This is what it looks like: (The ...
4
votes
1answer
1k 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?
5
votes
1answer
713 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 (...
2
votes
0answers
250 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
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?
1
vote
0answers
82 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?