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.

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
641 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 ...
3
votes
0answers
363 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
0answers
61 views

How to get Lego Mindstorms EV3 expansion set (45560) programmes in Scratch

I bought recently Mindstorms EV3 expansion set (45560) and found out that the available programs are written in old LabView-style programming language: https://le-www-live-s.legocdn.com/sc/media/files/...
2
votes
0answers
79 views

Lego Mindstorms Software: “Error code: 4”

After updating my EV3 Brick's firmware from V1.09E to V1.10E and reinstalling the Teacher Edition of the Lego Mindstorms EV3 software (even though I'm not a teacher), I decided to recover my Brick's ...
2
votes
1answer
55 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 ...
2
votes
0answers
111 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 ...
2
votes
0answers
45 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
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 ...
2
votes
0answers
200 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-...
2
votes
0answers
372 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
0answers
219 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 ...
1
vote
0answers
162 views

Strange blocks appeared in my program

In my Mindstorms program, I found these strange blocks. They appeared when I sent this program to my other PC on Windows 10, which is more powerful. They don't work and I can't change them. Mindstorms ...
1
vote
0answers
43 views

EV3 square pattern motion

I'm trying to make my EV3 robot move in a square path, and an infinity path. I've tried this code for a square path but it's not working.
1
vote
1answer
77 views

Online link to the LEGO NXT firmware (v1.31) source code or IAR ARM LEGO development tools?

I am looking for the source code to latest NXT firmware (v1.31). I found the binary image is on LEGO site: https://www.lego.com/en-us/themes/mindstorms/downloads, but no links to firmware source code ...
1
vote
1answer
161 views

Where's the iNXTG app for 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 ...
1
vote
0answers
103 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 ...
1
vote
0answers
516 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" ...
0
votes
0answers
67 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
0answers
57 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 ...