9 votes
Accepted

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

Using rshell I've managed dump the micropython filesystem of my hub after updating it to v1.0.03.0034-c3879ab. rshell connect serial /dev/ttyACM0 115200 rsync -a /pyboard ~/spikefw Note: These ...
gpdaniels's user avatar
  • 398
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
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
  • 40.3k
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
4 votes

Spike Prime remote command using screen

With the prime hub you need to exit the hub default process before you can send commands using ctrl-c. Ctrl-c is the character 0x03. This is my python script that I use to send micropython scripts ...
gpdaniels's user avatar
  • 398
4 votes

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

Short answer: You can't. Longer answer: It should be possible to do with custom firmware, but it's (a) not worth it, (b) difficult from a technical standpoint, and (c) a bad idea. Disclaimer: besides ...
IvanSanchez's user avatar
  • 8,554
3 votes

Camera for Spike or Mindstorms for Streaming

You probably want to look into suppliers for copter drone parts - the kind that RC hobbyists attach to drones or RC cars to fly/drive from a first-person point of view. These are called FPV ("...
IvanSanchez's user avatar
  • 8,554
3 votes

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

As far as I know, this is not possible with the default firmware and APIs currently. The primary hub LED is exposed as hub.led, but I don't believe that the other LED is accessible from user code. It ...
jncraton's user avatar
  • 40.3k
3 votes
Accepted

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

Python has this built in. Or is there some reason you can't use it?
RSchulz's user avatar
  • 7,542
2 votes

Camera for Spike or Mindstorms for Streaming

You could use a smartphone to do this. They are lightweight and have a camera and Wi-Fi all in one package.
David Lechner's user avatar
2 votes
Accepted

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

Using the micropython REPL interface of the hub I've managed to dump the firmware using the built in tools. This was after I'd updated to v1.0.03.0034-c3879ab. The commands on the hub to achieve this ...
gpdaniels's user avatar
  • 398
1 vote
Accepted

Why is my EV3 status light pulsing? (ev3dev)

That is just the default state of the light when pybricks-micropython starts. You can get help with Pybricks programming at https://github.com/pybricks/support.
David Lechner's user avatar

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