Questions tagged [micropython]

Questions involving the use of the MicroPython programming language. Officially supported by LEGO on the SPIKE Prime hub, but also available for the EV3 devices and potentially other LEGO hubs.

Filter by
Sorted by
Tagged with
4 votes
2 answers
83 views

How to change colour of the bluetooth/charging RGB LED in the hub?

I have the Mindstorms set 51515 - Robot Inventor. I want to display the progress of a robot's work using the LEDs. How can I change the colour of the RGB LED that the hub uses to indicate the ...
5 votes
1 answer
267 views

How to use REPL on the 51515 hub?

I've just got access to a 51515 Hub and I tried to connect to it as a serial port (with baudrate 115200), however it's spamming the console with motor/sensor data: {"m":0,"p":[[62, ...
3 votes
2 answers
171 views

Camera for Spike or Mindstorms for Streaming

I have made a few EV3/Spike robots that can be controlled remotely. They are controlled by either a PS4 controller or using a dashboard I built on a website. I'm running Python on the LEGO. However, ...
  • 31
5 votes
1 answer
262 views

EV3 not recognizing resistance correctly (MicroPython)

I recently tried measuring the resistance of a thermistor using the .resistance() method, the results are sadly not accurate. I measured the resistance with a multimeter and it showed 100kΩ, while the ...
  • 53
2 votes
2 answers
419 views

How to get a random value in the LEGO Mindstorms Robot Inventor software

I am making a Python program with the LEGO Robot Inventor software which will, among other things, turn the robot a random amount periodically, which of course requires a random number. However, I ...
2 votes
1 answer
265 views

Spike Prime remote command using screen

I am trying to execute commands using the -X switch on the Spike Prime Hub but all I get is either nothing, or unknown command errors. Here is what I tried so far: screen /dev/ttyACM0 -X 'print("...
1 vote
1 answer
58 views

Why is my EV3 status light pulsing? (ev3dev)

I am using EV3 micropython (ev3dev?). When I upload the below program to my EV3, I see on the screen the usual play button image which looks approximately like the below ASCII art: ...
1 vote
1 answer
661 views

How to dump the firmware from the SPIKE Prime (and Mindstorms v4)?

I'm interested in tinkering with the micropython filesystem and/or firmware in the SPIKE Prime hub and was wondering: How to dump the firmware from the SPIKE Prime hub? Is there an online resource ...
  • 388
8 votes
1 answer
835 views

How to dump the micropython filesystem from the SPIKE Prime (and Mindstorms v4)?

I'm interested in tinkering with the micropython filesystem and/or firmware in the SPIKE Prime hub and was wondering: How to dump the micropython filesystem from the SPIKE Prime hub? Is there an ...
  • 388