Controlling Motors and Read Sensors of LEGO MINDSTORMS with Python

A LEGO vehicle with two motors and an ultrasonic sensor that stops 30 cm in front of an obstacle and then reverses was one of the first programming exercises in the data acquisition practical that we developed in 2017. We used the MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware to connect the LEGO vehicle with MATLAB Desktop on a computer to solve for Exercise #2. While this support continues to be offered for Windows, Linux and macOS (Intel), it is not available for macOS (Apple Silicon). Exercise #15 uses a Python solution for programming the LEGO vehicle – but do not expect too much! Continue reading “Controlling Motors and Read Sensors of LEGO MINDSTORMS with Python”