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,352
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,352
6 votes
Accepted

How do you program mindstorms to keep doing a task until either the IR OR the colour sensor state changes

One way of doing this is using a loop and interrupting it. How it works: The "Loop Interrupt" block stops all blocks running inside of the loop, so by interrupting the loop after either wait block, ...
David Lechner's user avatar
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
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
  • 39.8k
5 votes

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

I think it would be more realistic to have the robot drive in a straight line but have a linkage to the foci of the ellipse that "pulls" the robot towards the center of the ellipse just as orbiting ...
David Lechner's user avatar
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
Accepted

How can EV3 Gyro sensor drift be handled?

There are two options that I can think of. Do the "hardware" fix before every run of the robot to reboot the sensor along with the "software" fix to zero it. Don't use the Angle reading at all. To ...
David Lechner's user avatar
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,352
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

Programming on a chromebook with EV3

Can you just install Scratch? MIT supports EV3 directly
RSchulz's user avatar
  • 7,542
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

Is there a microphone that works with Mindstorms EV3?

There is a (new?) LEGO brand sound sensor (9845) for $35 on the LEGO store. I don't know if it's suitable for your particular application but sounds plausible. Using the NXT Brick (sold separately), ...
vzn's user avatar
  • 149
4 votes

How can EV3 Gyro sensor drift be handled?

The Gyro is a tricky sensor to use, but at yesterday's FLL competition in Elk River, at least 5 teams had worked out the issues to their satisfaction. I'm revealing their answers here. It is unfair ...
dfrevert's user avatar
  • 1,331
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
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

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