SPremote Python package
SPremote allows LEGO SPIKE Prime machines to be controlled remotely from a computer. With standard tools like Lego Education SPIKE App or Pybricks all code runs on the hub block’s microcontroller. With SPremote most of the code runs on your (fast) computer, only few commands for controlling motors and readings sensors have to be executed on the (slow) hub block. With SPremote you get
- much faster programs,
- programming in your favorite Python IDE,
- orchestration of multiple hub blocks,
- (relayed) communication between multiple hub blocks,
- seamless integration of other devices like cameras,
SPremote has been developed mainly for projects in deep reinforcement learning education. All the heavy code, neural network training, optimization algorithms and so on, runs on your powerful multi-core CPU (and maybe GPU), while the LEGO machine’s microcontroller only has to execute some simple commands from time to time.
Find code and information in the project’s GitHub repo. HTML documentation is available, too.