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
0
votes
0answers
42 views

Confusion with error symbol and coding

I am making a colour sorter robot. However, when I'm trying to detect colour with the colour sensor it displays an error message. The error symbols look like ev3 programming blocks and then an ...
0
votes
0answers
36 views

Bluetooth connection between EV3 brick and MacBook Pro fails after 2 seconds

As I was adviced, I searched for same questions before posting mine but although some are similar, I can't make their answer useful for my problem. I have a Mindstorms EV3 Education brick and a ...
0
votes
1answer
360 views

EV3, menu with the buttons?

I've been trying to make a menu that when you press the < button on the block it will start and > button to stop. The menu will also only occur at the start, it will not be ongoing. I've ...
5
votes
4answers
10k 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 ...
2
votes
1answer
39 views

EV3 program runs fine when connected to PC but does not respond when copied to the brick

I am building the race car mentioned in the LEGO Mindstorms discovery book using an EV3 brick. The problem I am facing is that the driving program runs fine when the brick is connected to the PC via ...
8
votes
1answer
1k views

Where can I find documentation on the LEGO Wireless Protocol for Powered Up devices?

LEGO BOOST and LEGO Powered Up Smart Hubs use Bluetooth Low Energy to communicate to apps. Where can I find documentation on the communication protocol so that I can build my own app for these devices?...
2
votes
0answers
95 views

How do I make a single arm double tap a piano key?

I am trying to make a Lego play piano from ev3, where I have connected two arms to a single motor on either side using Lego elements. Both the arms move counter clockwise to one another (if one plays ...
5
votes
5answers
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
6k 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
3k 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 ...
5
votes
1answer
152 views

How to mirror an EV3 motor?

I want to get one EV3 large motor to copy the other. So if I move one half a rotation the other copies.
0
votes
1answer
67 views

LEGO EV3 Ultrasonic sensor missing from Home Edition programmer [duplicate]

I'll get straight to the point: When I open my LEGO MINDSTORMS EV3 Home Edition programmer and try to use an ultrasonic sensor, there is no option for it in any blocks. I don't even see any allusion ...
1
vote
1answer
853 views

A 90 degree turn with Wheel part number 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 ...
1
vote
1answer
52 views

How to make Spik3r move without the pincers moving

How do you make Spik3r move without the pincers moving as well? Seems like the legs are only controlled by the motor on port B, but the move tank and steer modules only allow for the use of 2 ports. ...
8
votes
1answer
5k 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 ...
6
votes
6answers
6k 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 ...
3
votes
3answers
412 views

Could not open serial port or USB device, RCX on Linux

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 ./...
1
vote
1answer
220 views

EV3 does not react to Bluetooth commands 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 ...
2
votes
1answer
175 views

Stepping through Mindstorm program for debugging

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 ...
5
votes
3answers
3k views

Which programming environments or APIs are available for the LEGO BOOST?

Over the holidays I tried the following Python library: https://github.com/undera/pylgbst but I couldn't get it to work. Then again my knowledge of Python is very limited. I'm more experienced with C+...
0
votes
1answer
67 views

Using a remote control for an EV3 robot?

I have just started to get into using a LEGO Mindstorms EV3 robot. I know you have to create a program on the laptop, then it has to be downloaded to the EV3 block. Can you use a remote control to ...
2
votes
1answer
66 views

Unsure of how to use a switch that is time dependent

Have been trying to make a line follower that can auto-correct itself if it would lose the line. The follower is supposed to turn around, go forward and catch the line if the line has not been ...
1
vote
0answers
94 views

iNXTG app programming NXT from iPad

I'm trying to find the old iNXTG to program NXT bricks via iPad but it is no longer available in the Apple Store. Does anyone know if there exists an archive for programs like that? The problem is ...
0
votes
1answer
66 views

Detect distances over 255cm with EV3 ultrasonic sensor?

In my use case, I have to detect things about 3-4 meters. I don't need to be accurate, +-2 or 3cm is enough. The EV3-G and most other places have a max distance of 255cm, which I understand that it is ...
1
vote
0answers
497 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. My program has 2 main loops, titled "touch" and "end" with two more nested in the "touch" ...
2
votes
1answer
203 views

LEGO mindstorm - which product to use to make projects mentioned below

I'm planning to buy a Lego Mindstorms kit for the following projects. I haven't really used Lego before - my friend asked me to consult him about projects (I use microcontrollers and build robots from ...
3
votes
0answers
352 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 ...
0
votes
1answer
222 views

Is the EV3RSTORM from Lego Mindstorms programmable using a real programming language? [duplicate]

I'm a software developer and Lego fan. I'll create a robot with Lego Mindstorms, but I'll like to know that the is EV3RSTORM is programable using a real programming language (Python, C#, JavaScript, ...
2
votes
1answer
94 views

Rearing off to the left without telling it to

I've started to build a robot, but when it drives it veers off to the left even though I'm just telling it to go straight. I think I need to do something to the motors but I don't know what or how. I'...
22
votes
7answers
14k 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?
2
votes
0answers
44 views

When the Chromebook crashes after coding the color sensor switch, what can I offer students to do for troubleshoot this consistent problem?

When students use the switcher block to program the color sensor on their Chromebooks, the app crashes. We have all accessibilities turned off and ChromeOS updated. What other troubleshooting steps ...
2
votes
1answer
88 views

How to distinguish between objects using a sonic sensor?

I am trying to find a ball in the field, grab it, and drop in the specified area. I'm using an ultrasonic sensor on the front of the robot. My current solution for locating the ball is: Turn ...
7
votes
2answers
640 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
3answers
5k 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 ...
1
vote
0answers
40 views

T-R3X the look My Block problems [duplicate]

OK I am making the look My block for the T-R3X program but there is this block which don't know how to make at the end of the diagram in the book.
7
votes
4answers
13k 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!
8
votes
5answers
9k 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?
1
vote
2answers
135 views

What does this symbol on the EV3 Brick mean?

I can’t figure out how to get my R3PTAR to open and close it’s mouth to bite. I keep getting this symbol. What does it mean?
0
votes
0answers
52 views

Using switch block with Hitechnic color block

Can I compare the Hitechnic block --> measure --> color output in a switch block? For example, if the Hitechnic color sensor is seeing black, then do something, else do another thing. If not, then how ...
0
votes
2answers
173 views

Can't link variable inside a switch when creating a new block

I have a problem when connecting the variable (from the create a block) to a variable in the function because it's inside a switch. How can I link them? I want to connect the variable to each (20) in ...
0
votes
1answer
177 views

Using two color sensors simultaneously

I am new to the world of robotics, and I'm preparing a new project with my students. Our goal is to make a self driving robot that can read colored signs from the road in order to turn right or left a ...
3
votes
3answers
274 views

EV3 Multiple conditions: wait sensor activation for N seconds or

How to program EV3 to wait for a sensor activation for at most X seconds? If the sensor is activated in the given time, begin sequence B. If it is not activated in X seconds, begin sequence A. ...
1
vote
0answers
95 views

Function in EV3 Basic

I have been programming in basic for ~30 years. I want a translation of the following code into EV3 Basic: function index( x , y ) return x + y * ( maxx , + 1 end function sub look for i = 0 ...
3
votes
2answers
375 views

How To Plug Detected Light Values into Variables and Still be Usable in Programs in EV3-G

I've seen teams, mostly in the world festival do this, and what they do is they program the robot so that when a brick button is pressed, the robot detects a value (usually RLI) and it is used later ...
0
votes
1answer
132 views

How I can program a solar panel heliostat? [closed]

I want to make a program for an EV3 solar heliostat. It consists of two motors and a color sensor. I want it to follow the light. The station is fixed. EV3SolarStation pdf
4
votes
2answers
219 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 ...
4
votes
1answer
638 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 I got it fixed. The software works, but I think the programming doesn't. I tried to make the motor move ...
5
votes
1answer
145 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 won't execute programs correctly. The ...
1
vote
2answers
3k views

How can I create custom EV3 blocks?

What do I need to create custom blocks and in particular the VIX part?
1
vote
1answer
165 views

Program for NXT golf robot not looping properly

This is what I made: I will put this robot straight in line with the ball I have to make this robot go forward and once it reaches the ball, I have to make it stop and hit the ball with the swing ...