Questions tagged [programming]

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.

Filter by
Sorted by
Tagged with
4
votes
3answers
8k 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 ...
4
votes
2answers
2k 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 ...
4
votes
1answer
817 views

How to make Lego Mindstorms EV3 robot go in reverse when move steering input comes from proximity sensor

I saw an program on the Lego Education page which makes a Lego Mindstorms EV3 robot gradually slow down as it approaches a wall. The info from the proximity sensor is used as the direct wire input of ...
4
votes
1answer
229 views

Is code written for NXT bricks compatible with EV3 brick (for Johnny 5 building)?

My son is mad on the robot from Short Circuit (Johnny 5) and I want to build robots with him. We have a copy of Daniele Benedettelli's "Creating Cool Mindstorms NXT Robots" and I was planning to start ...
5
votes
1answer
905 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 ...
2
votes
0answers
37 views

NXT Mindstorms software glitch

My FLL team was doing some practice programming exercises this morning. One group wrote a program using color sensors, no issue. The next group opened a new program window and attempted to open a ...
41
votes
7answers
52k 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 ...
1
vote
1answer
818 views

A 90 degree turn with 56145

I'm making a program for my ev3rstorm and I want it to have a 90-degree spin turn. I use the standard part ev3rstorm wheelbase or rather, treadbase. Using the move tank block (I use that block all the ...
0
votes
1answer
54 views

NXT light sensor homework help

Read value from NXT kit using light sensor and show it in the middle of NXT screen. If measured lightness value is less than or equal to 50, right motor will stop and left motor will move with the ...
2
votes
0answers
305 views

Creating custom blocks using EV3 block developer kit

I am trying to develop a custom block using ev3 block development kit but i get nowhere. I created the XML files according to the documentation and the VIX file but it does not compile, I cannot ...
2
votes
1answer
387 views

EV3 Wired Brick to Brick communication

I'm currently working on a project for my intro to engineering class. As it stands now, one brick is running a LabView program to intake data from a 'barcode' and another brick runs a Matlab program ...
3
votes
3answers
2k 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. ...
7
votes
1answer
3k 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.
0
votes
1answer
106 views

Bazooka blast ev3 Mindstorms using Python

I would like to shoot balls with the ev3 Lego robot. How can I code it using Python? Which components do I need for that and which function and motor use ?
5
votes
4answers
4k 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 ...
4
votes
4answers
5k views

What are the programming languages that can be used on Lego Mindstorm EV3?

My son is interested in robotics. For me, I would like maximum flexibility for programming. For my son, I guess something simpler would be preferable so that his interest is not killed by complexity ...
9
votes
2answers
611 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 ...
0
votes
1answer
311 views

EV3 Program - Menu

I've been trying to make a menu that when you press the < button on the block it will start and > to stop. The menu wil only occur at the start also, it will not be ongoing. I've attempted to use ...
5
votes
1answer
2k views

What is the best way to program Mindstorms EV3?

I'm just starting to use the LEGO Mindstorms EVE robot and I'm a bit hesitant which way to choose for programming: the official graphic software or any alternative (preferably the Linux based ev3dev)? ...
0
votes
3answers
2k views

PC control Ev3 robot

I wanted to see if I could control my robot with a PC and I wanted to know if there was a way to do it. I have already searched for a controller for the PC and didn't find anything.
20
votes
7answers
13k 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
171 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
0answers
363 views

How to determine orientation of a EV3 gripper?

I have built the EV3 Gripper using the manual. I am programming an ev3 brick using ev3dev. I need to determine the angle/direction/orientation of the robot programmatically, before I can issue a ...
2
votes
1answer
64 views

Can I get a JSON value from the internet without flashing a custom FW on EV3?

Got an EV3 for X-Mas. My old NXT brick was broken. So now I have a ton of motors and sensors and all. First project I'd like to create a Bitcoin piggy bank which performs some actions when it gets new ...
2
votes
1answer
273 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
0answers
1k views

Bluetooth connection to EV3 from Java on Linux/Android

I would like to connect to my EV3 from PC (and then Android) via Bluetooth. I was able to connect to NXT with LEGO-MINDSTORMS-MINDdroid which uses direct LCP commands but as far as I know the ...
3
votes
2answers
186 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 ...
3
votes
2answers
194 views

A wired data logging brick

I need a data logging brick where I can wire an input to the file name. Is this possible? and if so how would I do this?
0
votes
1answer
2k views

How do I rename an EV3 project?

I can rename the program in the Home Edition software but I just can't rename a project. Please tell me how to do it. Thanks!
3
votes
4answers
2k 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 ...
4
votes
1answer
67 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 ...
6
votes
1answer
265 views

How can I make an EV3 vehicle follow an elliptic equation?

Has anyone succeeded in having the EV3 driving base moving following an ellipse? I would like the kids to think about how would we program a satellite orbiting around earth. They would input the ...
7
votes
1answer
7k 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 ...
5
votes
2answers
324 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 ...
0
votes
1answer
1k views

How to parameter the ports in move tank block EV3?

How do I parameter the ports at Move Tank block (in My Block)?
2
votes
1answer
220 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
0answers
188 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-...
0
votes
2answers
141 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. ...
6
votes
2answers
3k 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 ...
1
vote
3answers
548 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 ...
2
votes
1answer
384 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 ...
8
votes
3answers
2k 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 ...
5
votes
2answers
5k 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 a ...
1
vote
1answer
298 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 ...
4
votes
2answers
382 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 ...
2
votes
3answers
3k 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
0answers
209 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
3k 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 ...
8
votes
1answer
4k 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
590 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?