Skip to main content

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
246 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 ...
Wolfi_HD1's user avatar
6 votes
1 answer
812 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, ...
George Profenza's user avatar
3 votes
2 answers
635 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, ...
Adam's user avatar
  • 131
5 votes
1 answer
287 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 ...
C-Brick's user avatar
  • 53
2 votes
2 answers
801 views

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

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 ...
technicguy1's user avatar
2 votes
1 answer
619 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("...
areop-enap's user avatar
1 vote
1 answer
85 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: ...
technicguy1's user avatar
1 vote
1 answer
2k 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 ...
gpdaniels's user avatar
  • 398
9 votes
1 answer
1k 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 ...
gpdaniels's user avatar
  • 398