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
5 votes
1 answer
162 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, ...
user avatar
3 votes
2 answers
126 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, ...
user avatar
  • 31
5 votes
1 answer
258 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 ...
user avatar
  • 53
2 votes
2 answers
345 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 ...
user avatar
2 votes
1 answer
196 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("...
user avatar
1 vote
1 answer
52 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: ...
user avatar
1 vote
1 answer
559 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 ...
user avatar
  • 378
8 votes
1 answer
761 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 ...
user avatar
  • 378