Skip to main content
12 votes
Accepted

Where can one find the documentation for the LEGO Mindstorms Robot Inventor software?

Official Docs Word Blocks The Word Block Descriptions for the block language (Scratch) are under Help & Support in the Settings. Settings are found by clicking on the gear icon on the home page. ...
David Lechner's user avatar
11 votes
Accepted

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

LEGO calls this communication protocol the "LEGO Wireless Protocol" (LWP). The documentation is publicly available at https://lego.github.io/lego-ble-wireless-protocol-docs/. There is also a GitHub ...
David Lechner's user avatar
10 votes
Accepted

Why did the light block change in SPIKE v2.0.0+?

With the introduction of the SPIKE Essential set, this element was introduced: It's a matrix of 3x3 colored LEDs. It has similar functionality as the 5x5 light matrix on the SPIKE hub, so the same ...
Michael Verschaeve's user avatar
8 votes

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

A sensor port can't directly output to a motor. The sensor drivers can't provide enough power to supply a motor. You have a couple options: Daisy-chain two EV3s together. The first can control the ...
MindS1's user avatar
  • 1,392
8 votes
Accepted

EV3 not recognizing resistance correctly (MicroPython)

Here is the schematic of an input port on the EV3 (available on official LEGO MINDSTORMS download page): And this is the implementation of the resistance() method from Pybricks MicroPython: STATIC ...
David Lechner's user avatar
8 votes
Accepted

Is it possible to re-flash the LEGO Spike Prime Hub with Mindstorms Robot Inventor Hub Firmware while retaining all functionality? And if so, how?

Yes, this is possible. Just connect the SPIKE Prime hub to the MINDSTORMS Robot Inventor App. The app will tell you that the firmware needs to be updated. Follow the instructions in the app to update ...
David Lechner's user avatar
7 votes

How to make an exact 16 degree turn?

This is actually a surprisingly difficult task. If you search for similar questions over on the Robotics stack exchange, you will find very smart people who can't even get it right with thousand-...
MindS1's user avatar
  • 1,392
6 votes

How can I create custom EV3 blocks (developer mode)?

You only need the official LEGO MINDSTORMS EV3 software. LEGO provides a "EV3 Block Developer Kit" on the MINDSTORMS downloads page. This contains some minimal instructions on creating blocks. It ...
David Lechner's user avatar
6 votes

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

Update: There is a tool at http://ev3treevis.azurewebsites.net/ that can be use to create a new .ev3 file from a .rbf file recovered from an EV3 brick. Some information will be lost, but at least ...
David Lechner's user avatar
6 votes

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

Boost and the other Powered Up components (the new City trains, the app-controlled batmobile, and WeDo 2.0) are controlled via Bluetooth. Any environment that can send bluetooth commands can be used ...
Mr. Shiny and New 安宇's user avatar
6 votes

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

I have been looking around a bit for the same files. I plan to contact Lego/IAR myself to try to find the official source code and development software, and will update this answer when I do. However, ...
BarrowWight's user avatar
6 votes
Accepted

How to use REPL on the 51515 hub?

I've used rshell for this. It's available on PyPI, so it can be installed using: sudo pip3 install rshell You may need to provide the device to connect to such as: rshell -p /dev/ttyACM0 To get a ...
jncraton's user avatar
  • 41.8k
6 votes

Connecting a Lego PF M motor to computer

TL;DR: It's not trivial. First, let me quote the pin-out of a PoweredUP (PU) connector from https://bricks.stackexchange.com/a/10365/13403 : Pin 1 - Motor Pin 2 - Motor Pin 3 - GND (0v) Pin 4 - VCC (...
IvanSanchez's user avatar
  • 9,646
5 votes

How can EV3 Gyro sensor drift be handled?

My team put their software fix in a loop with a small wait that cycles until the d/s = 0, then reset it to 0. Here's a simplified version: It works like a charm. We don't mess with the hardware reset ...
EzraCc's user avatar
  • 51
5 votes

Is it possible to edit a MyBlock input parameter value?

It is possible now (since version 1.3.0) by pressing the button at the upper left corner of the block:
Pavel Malinnikov's user avatar
5 votes
Accepted

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

Multiply the output of the proximity sensor by -1.
David Lechner's user avatar
5 votes
Accepted

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

The EV3 brick runs a linux kernel so it is extremely compatible with many different programming languages. 3rd-party support packages for basically any language you can think of have been made, and ...
MindS1's user avatar
  • 1,392
5 votes
Accepted

Why doesn't my LEGO Micropython remote control program work?

You can get community support for Pybricks at https://github.com/pybricks/support. ir.buttons(1) returns a list of pressed buttons, so in this particular program if ir.buttons(1) == Button.BEACON: ...
David Lechner's user avatar
5 votes
Accepted

Help with my Ev3 printer

You are using the function run_target... which tells the motor to run to a specific angle. So it turns to an absolute position... This might be correct for the pen_up and pen_down cases, but I think ...
Michael Verschaeve's user avatar
5 votes

Programming on a chromebook with EV3

Can you just install Scratch? MIT supports EV3 directly
RSchulz's user avatar
  • 7,522
5 votes

Programming on a chromebook with EV3

The new Scratch-based software from LEGO Education is called EV3 Classroom. The link on the LEGO Education EV3 downloads page for Chromebooks takes you to the EV3 Classroom app at the Google Play ...
David Lechner's user avatar
5 votes

How to get a random value in the Robot Inventor software (Python)

Under operators, there is a block "Pick Random" where you can specify to pick an integral number between x to y... x and y you can type... So for a random direction, set it between 0 and 359 ...
Michael Verschaeve's user avatar
5 votes

Where can one find the documentation for the LEGO Mindstorms Robot Inventor software?

Recently following web-page appeared: https://lego.github.io/MINDSTORMS-Robot-Inventor-hub-API/ I learned it from David Lechner (https://github.com/gpdaniels/spike-prime/issues/7#issuecomment-...
Aivar's user avatar
  • 151
5 votes
Accepted

Problem with emulating EV3 brick via wifi

There are two types of commands. "System" commands and "Direct" command. The document that you linked lists all of the system commands but only gives examples of direct commands ...
David Lechner's user avatar
5 votes
Accepted

Does LEGO make a electronically controlled pneumatic valve bank?

I don't know of any electronically controlled LEGO pneumatics. However it's not too hard to get the needed functionality. I see two main parts to the equation : Controlling the pressure in the system ...
Sander De Dycker's user avatar
4 votes
Accepted

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

With ev3dev pretty much any programming language you can run or compile for the ARM board can be used. All you really need to be able to do is read and write to a file. This is because ev3dev is based ...
Alexander O'Mara's user avatar
4 votes

LEGO MINDSTORMS EV3 Can't find MyData Block

EV3 software comes in two varieties, Educational and Home. The Educational version has a few blocks that do data operations that make sense in a science class. Both versions are downloadable from ...
dfrevert's user avatar
  • 1,331
4 votes

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

Just as an aside you can also do the following: sudo ln -s /dev/usb/legousbtower1 /dev/usb/legousbtower0 That worked for me, and my challenge now is that there is no firmware :-)
Paul Duncan's user avatar
4 votes
Accepted

Stepping through Mindstorm program for debugging

No, the software does not provide these kinds of debugging capabilities (although it does animate each block as it runs if you start the program from the programming software instead of starting it ...
David Lechner's user avatar
4 votes

Any way to get the current motor position or angle in WeDo 2 (when accessing hub via BLE protocol)?

Based on the answer to this question and some experiments with other hubs and other motors today (Boost hub + Boost motor + small PoweredUp hub), it seems that the WeDo motors really lack any ability ...
Jan's user avatar
  • 191

Only top scored, non community-wiki answers of a minimum length are eligible