Self-balancing program for the EV3 core set model "Gyro Boy", based on the original LEGO® MINDSTORMS® Education EV3 Classroom block code program. You can download this software in the official LEGO® Education site.
To get my Lego Midstorms EV3 Brick robot set up I followed the instructions from ev3dev.org
Getting Python configured correctly for EV3 Development can be challenging because your OS may already have different (and perhaps old) versions of Python installed. I followed the instructions from this blog post, which made it really easy and worked seemlessly: The right and wrong way to set Python 3 as default on a Mac.
To configure my development environment I first followed the instructions on the Lego Education site, under the section Visual Studio Code (Steps 4-5).
I installed the following Extensions.
-
LEGO® MINDSTORMS® EV3 MicroPython - this allows you to create MicroPython projects on VSCode and lets you create Run configurations so you can download and run your program in the EV3.
-
ev3dev-browser - this lets you connect to your EV3 robot, browse, download, and delete files on your robot.
-
ms-python.python - this provides code formatting, syntax checking, and code completion (Intellisense) for the Python programming language.
Finally, I installed the ev3dev2 Python stubs so that I can have code completion (Intellisense) for this API. This is incredibly helpful to discover functions and classes available in the API and to simplify the development process. To get the stubs installed I followed the instructions under the Code Completion section on the README.md of the vscode-hello-python repository.
These sites provided me with helpful information to help me get my program completed and working.
-
Python language bindings for ev3dev - official site of the
ev3dev2API containing tutorials and the API docs. -
EV3Dev Python Site - this site is full of useful examples and step-by-step guides.