LEGO MINDSTORMS Education EV3 Manuel utilisateur

Getting Started with
LEGO®
MINDSTORMS®
Education EV3
MicroPython
Version 2.0.0

i
LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group.
©2019-2020 The LEGO Group.
TABLE OF CONTENTS
1
Installation
......................................................................................................................................................................................................................
2
2
Creating and Running Programs
.............................................................................................................................................
8

1
Getting Started with LEGO®MINDSTORMS®Education EV3 MicroPython Version 2.0.0
This guide shows you how to get started with writing MicroPython programs for your LEGO®MINDSTORMS®EV3
robots. You’ll learn to do this in two steps:
• Installation: First you’ll prepare your computer and your EV3 Brick by collecting and installing the required
tools. You’ll also learn how to switch the EV3 Brick on and off, and how to navigate the on-screen menu.
• Creating and running programs: Next, you’ll learn how to create a program and download it to the EV3Brick.
You’ll also learn how to start that program from your computer or from the EV3 Brick.
After you’ve run the first demo program, you’ll be ready to try out the example programs and start inventing
your own programs.
LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group.
©2019-2020 The LEGO Group.

2
CHAPTER
ONE
INSTALLATION
This page guides you through the steps for collecting and installing everything you need to start programming.
1.1 What is needed?
To get started, you’ll need:
• A Windows 10 or Mac OS computer
• Internet access and administrator access
This is only required during the installation process. You will not need special access in order to
write and run programs later on.
• A micro SD card
You’ll need a card with a minimum capacity of 4GB and a maximum capacity of 32GB. Thistype
of micro SD card is also known as ‘micro SDHC’. We recommend using cards with the Application
Performance Class A1 rating.
• A micro SD card slot in your computer, or a card reader.
If your computer does not have a (micro) SD card slot, you can use an external USB (micro)
SDcard reader.
• A mini USB cable, like the one included in your EV3 set.
The typical configuration of this equipment is summarised in Figure 1.1.
LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group.
©2019-2020 The LEGO Group.

3
Getting Started with LEGO®MINDSTORMS®Education EV3 MicroPython Version 2.0.0
1.2 Preparing your computer
You’ll write your MicroPython programs using Visual Studio Code. Follow the steps below to download, install
and configure this application.
1. Download Visual Studio Code.
2. Follow the on-screen instructions to complete installation.
3. Launch Visual Studio Code.
4. Open the ‘extensions’ tab.
5. Install the EV3 MicroPython extension as shown in Figure 1.2.
Figure 1.1: Setup overview.
Mini USB cable
EV3 Brick
Micro SD card with
EV3 MicroPython image Computer with
Visual Studio Code
LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group.
©2019-2020 The LEGO Group.

4
Getting Started with LEGO®MINDSTORMS®Education EV3 MicroPython Version 2.0.0
1.3 Preparing the micro SD card
Now you’ll learn how to install the required tools onto your micro SD card. This will make it possible to run
MicroPython programs on your EV3 Brick.
If the micro SD card contains files you wish to keep, make sure you create a backup of its contents before
installing the tools. If necessary, please refer to’Managing files on the EV3 Brick’ to learn how to back up your
previous MicroPython programs.
This process erases everything on your micro SD card, including any previous MicroPython programs that are
stored on it.
To install the MicroPython tools on your micro SD card:
1. Download the EV3 MicroPython micro SD card image and save it to a convenient location. This file is
approximately 360 MB. You do not need to unzip the file.
2. Download and install a micro SD card flashing tool such as Etcher.
3. Insert the micro SD card into your computer or card reader.
4. Launch the flashing tool and follow the steps shown on your screen to install the file you have just
downloaded. If you use Etcher, you can follow the instructions below, as shown in Figure 1.3.
a. Select the EV3 MicroPython micro SD card image file you have just downloaded.
b. Select your micro SD card. Make sure that the device and size shown correspond to your micro
SDcard.
c. Start the flashing process. This may take several minutes. Do not remove the card until the flashing
process is complete.
Figure 1.2: Installing the extension from the Visual Studio Code Marketplace.
Search
Open the ‘extensions’ tab
Install
2
1
3
LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group.
©2019-2020 The LEGO Group.

5
Getting Started with LEGO®MINDSTORMS®Education EV3 MicroPython Version 2.0.0
1.4 Updating the micro SD card
To update the micro SD card, use the link above to download a new image file and flash it to the micro
SDcard as described above. Be sure to back up any MicroPython programs that you wish to save.
You do not need to erase the contents of the micro SD card first. This is done automatically when you flash the
new image file.
1.5 Using the EV3 Brick
Make sure the EV3 Brick is switched off. Insert the micro SD card you have prepared into the micro SD card
slot on the EV3 Brick, as shown in Figure 1.4.
Figure 1.3: Using Etcher to flash the EV3 MicroPython micro SD card image.
Select image Select drive Flash!
abc
LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group.
©2019-2020 The LEGO Group.

6
Getting Started with LEGO®MINDSTORMS®Education EV3 MicroPython Version 2.0.0
1.5.1 Switching the EV3 Brick on and off
Switch the EV3 Brick on by pressing the dark grey Centre Button.
The booting up process may take several minutes. While booting, the EV3 Brick Status Light turns orange and
blinks intermittently and you’ll see quite a bit of text on the EV3 Display. The EV3 Brick is ready for use when
the Brick Status Light turns green.
To switch off the EV3 Brick, use the Back Button to open the shutdown menu and then select ‘Power Off’ using
the Centre Button, as shown in Figure 1.5.
Figure 1.4: Inserting the flashed micro SD card into the EV3 Brick
Figure 1.5: Switching off the EV3 Brick
First, switch off
the EV3 Brick
Adding a tape
wrapper will
make it easier to
remove the card Place the card
in the SD slot,
text-side facing up
Main Menu
Press the Back Button
Power Off
1
2
3
LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group.
©2019-2020 The LEGO Group.

7
Getting Started with LEGO®MINDSTORMS®Education EV3 MicroPython Version 2.0.0
1.5.2 Viewing motor and sensor values
When you’re not running a program, you can use the device browser to view the motor and sensor values,
asshown in Figure 1.6.
1.5.3 Reverting to the original firmware
You can revert to the LEGO®firmware and your LEGO programs at any time. To do so:
1. Switch off the EV3 Brick as shown above.
2. Wait for the Display and Brick Status Light to switch off.
3. Remove the micro SD card.
4. Switch on the EV3 Brick.
Figure 1.6: Viewing motor and sensor values
Open devices Choose device type Watch values
123
LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group.
©2019-2020 The LEGO Group.

8
CREATING AND RUNNING PROGRAMS
CHAPTER
TWO
Now that you’ve set up your computer and EV3 Brick, you’re ready to start writing programs.
To make it easier to create and manage your programs, let’s first have a quick look at how the MicroPython
projects and programs for your EV3 robots are organised.
The programs are organised into project folders, as shown in Figure 2.1. A project folder is a directory on your
computer that contains the main program (main.py) and other optional scripts or files. This project folder and
all of its contents will be copied to the EV3 Brick, where the main program will be run.
This page shows you how to create a project and how to transfer it to the EV3 Brick.
Figure 2.1: A project contains a program called main.py and optional resources like sounds or MicroPython modules.
2.1 Creating a new project
To create a new project, open the ‘EV3 MicroPython’ tab and click create a new project, as shown in Figure
2.2. Enter the name of the project in the text field that appears and press Enter. When prompted, choose a
location in which to store this program and confirm by clicking choose folder.
LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group.
©2019-2020 The LEGO Group.
Autres manuels pour MINDSTORMS Education EV3
2
Table des matières
Autres manuels LEGO Robotique
Manuels Robotique populaires d'autres marques

STEMCenter USA
STEMCenter USA Pi-Bot v2.00 Manuel utilisateur

SunFounder
SunFounder PiDog Manuel utilisateur

Universal Robots
Universal Robots UR5 Manuel utilisateur

Universal Robots
Universal Robots E Series Manuel utilisateur

YASKAWA
YASKAWA MOTOMAN-MPL80 II Manuel utilisateur

EFORT
EFORT ECR5 Manuel d'instructions
















