Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

3
votes
1answer
52 views

Is it possible to use 5 motors on an EV3 brick?

The EV3 brick has only four output ports (A B C & D) to run motors. Is there any way to use port 1 (sensor port) to control a motor?
2
votes
3answers
60 views

How to retrieve a deleted program file from the lego NXT

I have been programming a complex file for my lego NXT. I accidentally deleted my file from the PC, but it is still available on my NXT brick. Is there any way that I can retrieve the file from my NXT ...
1
vote
1answer
52 views

How to send through Bluetooth motor angle position and mirror that position on another motor?

I've built a steering wheel that checks the servomotor position using NXC function - MotorRotationCount(). Now, I want to send that position to second brick using Bluetooth and apply that servomotor ...
2
votes
1answer
48 views

Stepping through Mindstorm program

The code does not do what I think it should. It is frustrating to tweak it, download it, run it from the block, and find that once again, it does not do what I think it should. Is there some way to ...
1
vote
1answer
84 views

EV3 does not react to commands (sent via bluetooth) after 1.7 seconds

Short description: I want to send commands via bluetooth to an EV3 brick from a Linux computer. I use python to send bytecodes via bluetooth and not any EV3-specific software Pairing the device was ...
0
votes
0answers
120 views

Loop interrupt stops all loops, not just the one designated

I have been using loop interrupts for a while, and not had an issue... until now. And it is driving me nuts. The program has 2 main loops, titled "touch" and "end" with two more nested in the "touch" ...
1
vote
1answer
251 views

Can you extract a program from the EV3 brick to the computer?

As part of an assignment, I made a program for my EV3, but however my computer automatically restarted, so I lost that program. I need to show the program! However, the program is still in my brick. ...
2
votes
1answer
141 views

Could not open serial port or USB device

I am trying to use my old RCX 2.0 set on Linux (Xubuntu). The problem is that when I try to download the (official) firmware into the RCX via the command: nqc -Susb:/dev/usb/legousbtower1 -firmware ./...
2
votes
1answer
185 views

What is a better algorithm for wall following with an ultrasonic sensor?

This wall following algorithm uses the ultrasonic sensor. It has a horrible worst case behavior. Place the robot about 3 cm too far from the wall. Instead of moving closer to the wall, the robot ...
4
votes
1answer
51 views

LEGO MINDSTORMS EV3 Can't find MyData Block

While going through the challenges of the Gyro Sensor Investigation I came upon the issue that I do not have the MyData Block (It's a dark blue block with a graph on it) on the coding program. Could ...
5
votes
2answers
171 views

How can I program a motor to rotate towards the source of sound?

I have 3 sound sensors and a motor connected to four ports of the same brick. My motor should rotate by some angle towards the highest sound detected by the sensor, how do I write an infinite loop ...
5
votes
1answer
286 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 ...
2
votes
0answers
30 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 ...
2
votes
1answer
167 views

How do you interrupt a MyBlock?

I have a "general-purpose" line-follower encapsulated in a MyBlock that runs an infinite loop. Now, in a client program, I would like to interrupt that MyBlock if some condition is met; what the ...
1
vote
1answer
608 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
47 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
192 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 ...
1
vote
1answer
1k views

How can I create custom EV3 blocks?

What do I need to create custom blocks and in particular the VIX part?
2
votes
1answer
290 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 ...
0
votes
1answer
76 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 ?
3
votes
4answers
3k 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 ...
4
votes
1answer
190 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 ...
6
votes
1answer
1k 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)? ...
2
votes
1answer
50 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
0answers
893 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 ...
4
votes
2answers
116 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
214 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 ...
0
votes
1answer
1k 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!
0
votes
3answers
939 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.
6
votes
1answer
195 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 ...
4
votes
1answer
4k 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 ...
6
votes
2answers
251 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
611 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
0answers
156 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
134 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. ...
2
votes
0answers
279 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
285 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
4answers
8k 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 ...
3
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
63 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 ...
1
vote
1answer
215 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 ...
3
votes
2answers
121 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 ...
2
votes
1answer
202 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 ...
9
votes
2answers
462 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 ...
1
vote
2answers
437 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?
2
votes
1answer
2k 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 ...
3
votes
1answer
184 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. ...
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
1answer
275 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
3
votes
3answers
300 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 ...