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.
11 questions
1
vote
1
answer
59
views
ev3dev: Python doesnt let me use all modules?
I was trying to make a robot that is controllable using a keyboard. However, it keeps saying already installed modules (like six) cannot be imported:
Putting print(help('modules')) in my code to list ...
1
vote
0
answers
59
views
Using EV3 Brick and sensor as datalogger for school. (ev3dev, ajax)
Background:
I am a teacher and my school is lacking good dataloggers or commitment to buying them. However it does have sets of Lego EV3 kits.
I have a functioning python program running on ev3dev to ...
4
votes
2
answers
313
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 ...
6
votes
1
answer
923
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
823
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, ...
5
votes
1
answer
312
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 ...
2
votes
2
answers
870
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 ...
2
votes
1
answer
714
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
119
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
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 ...
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 ...