Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MINDSTORMS Education EV3 MicroPython and is the answer not in the manual?

Questions and answers

Summary of Contents for LEGO MINDSTORMS Education EV3 MicroPython

  • Page 1 Getting started with LEGO MINDSTORMS Education EV3 ® ® MicroPython Version 2.0.0...
  • Page 2 TABLE OF CONTENTS Installation ............................................Creating and Running Programs ............................. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 3 Getting started with LEGO MINDSTORMS Education EV3 MicroPython Version 2.0.0 ® ® This guide provides instructions on how to start writing MicroPython programs for your LEGO  MINDSTORMS  EV3 ® ® robot. The guide will outline a two step process: • Installation: Where you will prepare your computer and your EV3 Brick by collecting and installing the required tools.
  • Page 4: Installation

    SD card reader. • A mini-USB cable, like the one included with 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 The LEGO Group.
  • Page 5: Preparing Your Computer

    2. Follow the on-screen instructions to install the application. 3. Launch Visual Studio Code. 4. Open the extensions tab. 5. Install the EV3 MicroPython extension as shown in Figure 1.2. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 6: Preparing The Microsd Card

    Select your microSD card. Make sure that the device and size correspond to your microSD card. c. Start the flashing process. This may take several minutes. Do not remove the card until the `flashing’ process is complete. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 7 Make sure the EV3 Brick is turned off. Insert the microSD card you prepared into the microSD card slot on the EV3 Brick, as shown in Figure 1.4. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 8 To turn the EV3 Brick off, open the shutdown menu with the back button, and then select Power Off using the centre button, as shown in Figure 1.5. Main menu Power Off Press back button Figure 1.5: Turning the EV3 Brick off LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 9 1. Turn the EV3 Brick off as shown above. 2. Wait for the Display and brick Status Light to turn off. 3. Remove the microSD card. 4. Turn the EV3 on. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 10: Creating A New Project

    Enter a project name in the text field that appears and press Enter. When prompted, choose a location for this program and confirm by clicking choose folder. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019 The LEGO Group.
  • Page 11: Opening An Existing Project

    Next, navigate to your previously created project folder and click OK. You can also open a recently created project using the Open Recent menu option. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 12 • Turn the EV3 Brick on • Connect the EV3 Brick to your computer with the mini-USB cable • Configure the USB connection as shown in Figure 2.5. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 13 EV3 Brick. If your program produces any output with the print command, this is shown in the output window. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 14 Now that you have run the basic code template, you can expand the program to make a motor move. First, attach a Large Motor to Port B on the EV3 Brick, as shown in Figure 2.7. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 15 This program will make your robot beep, rotate the motor, and beep again with a higher pitched tone. Run the program to make sure that it works as expected. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 16 To do so, find the program using the file browser on the EV3 Display and press the centre button key to start the program as shown in Figure 2.9. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.
  • Page 17 Open file browser Open project folder Run your program Go to previous folder Figure 2.9: Starting a program using the buttons on the EV3 Brick. LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group. ©2019-2020 The LEGO Group.

Table of Contents