Menu
Is free
check in
the main  /  the Internet / EV3 robot programming course in LEGO environment. EV3 robot programming course in LEGO Mindstorms EV3

EV3 robot programming course in LEGO environment. EV3 robot programming course in LEGO Mindstorms EV3

The top of the creation of LEGO was the release of programmable designers of LEGO MindStorms EV3. The toy is designed for children age more than ten years.

Now MindStorms EV3 can be used without any problems in special stores or on the Internet. They are easily programmed to perform certain actions.

Installation of programming environment

Before you start writing commands for a robot, you need to install software.

System requirements PC for working with lEGO Mindstorms. EV3:

  • Windows XP, 7, 8 or MacOS (10.6-10.8);
  • 2GB RAM and 750 MB on disk.

Installing Wednesday C. using USB., choose a version for a teacher or student.

After installation, create a project that is displayed as a folder. In the control panel, choose what we want to create, programs or carry out an experiment. The experiment is recommended to create sensors to study the performance.

The robot management program consists of blocks, sequential operations that it executes, in turn, each individual block has its own mode. For example, the motor control unit has the ability to stop. Explore all the symbols that are applied to the screen.

The menu contains the menu on the screen:

  • act;
  • operator management;
  • sensor;
  • data transactions;
  • my blocks, etc.

Using this menu, you can program a robot for different steps. For example, in a tab that is responsible for the action of different mechanisms, you can configure the motor mode to move, stop or switching on. There you can set time, quantity and angle of rotation.

In the "Sound" block, you can program a robot for playback. sound signals. These signals can be downloaded or recorded using a microphone. An important element of the program management is part of the menu that controls operators. In it you can manage the action of the program itself.

Here you can give such commands to the program:

  • start expect;
  • cycle repetition;
  • switch between blocks;
  • finish the cycle.

LEGO MINDSTORMS EV3 multitasking, it accommodates several command sequences. You can program not only your actions in the program, but also their sequence of execution.

Combining all possible commands of the corresponding menu, you can create complex trajectories and types of constructor behavior.

LEGO EDUCATION MINDSTORMS EV3: Roboruki Programming (RoboHand H25):


Short description


This course reviewed:


- exit from the cycle;
- work with the switch;

Full description

LEGO MINDSTORMS EV3 is not the most complex programming environment. But this does not mean to learn it to spit. For those who have never programmed before, its development can take away more than one year. And I do not exaggerate. Without a clear benefit, and constant practice, the development of robots programming in LEGO MindStorms EV3 can take up to 2 years.

I will not hide - there are good books on programming on LEGO MindStorms EV3. The only drawback is not the strongest visibility. Do not place the video in the book. Will not write to the voice explanation of the "code" of the program.

That is why I made a programming course in LEGO MindStorms EV3 in the format of short video lessons.

Course composition.

This video course consists of more than 30 video and 3 instructions for assembling robots.
This course reviewed:
- creating simple programs;
- execution of the program in the cycle;
- exit from the cycle;
- work with the switch;
- Considered variables and constants;
- Riding around the black line on one color sensor, etc.

Cost.

On the this moment, Course price is 1000 p. P

You may argue - that 1000 r. it is expensive. Yes, it is more expensive than the book. But unlike the book, you will not just read, and then watch pictures. You will be able to look at the robot in the action of the person. And at least on the video. And if you want, then build it on the instructions offered by me (all of them 3).
And the second difference from the book is the opportunity to ask a question on programming LEGO MindStorms EV3 personally to me. Something in the course is incomprehensible, and causes questions? Not a problem. The site has my contacts. Bear and ask.

Guarantee.

If after studying the course, you can not program, I will return the money to you. To do this, write to me on an e-mail that you wish to return the money, and I will make you a refund.

P.. S.. The course will be refined and modified. After purchasing it, it will be available in the Personal Account of an unlimited amount of time. So buy now is really profitable.

Demo - access

Sp-Force-Hide (Display: Block; Background: #FFFFFF; Padding: 15px; width: 450px; max-width: 100%; Border-Radius: 8px; -moz-Border -Radius: 8px; -WebKit-Border-Radius: 8px; Border-Color: #dDDDDDD; Border-Style: Solid; Border-Width: 1px; font-face: arial, "helvetica neue", sans-serif; background- REPEAT: NO-REPEAT; Background-Position: center; Background-size: auto;). SP-FORM INPUT (Display: Inline-Block; Opacity: 1; Visibility: visible;). SP-Form .sp-Form-Fields -Wrapper (Margin: 0 auto; width: 420px;). SP-FORM .SP-Form-Control (Background: #FFFFFFF; Border-Color: #CCCCCC; Border-Style: Solid; Border-Width: 1px; font- Size: 15px; padding-left: 8.75px; Padding-Right: 8.75px; Border-Radius: 4px; -Moz-Border-Radius: 4px; -Webkit-Border-Radius: 4px; Height: 35px; width: 100% ;). SP-FORM .SP-Field Label (Color: # 444444; font-size: 13px; font-style: normal; font-weight: bold;). SP-Form .sp-Button (Border Radius: 4px ; -Moz-Border-Radius: 4px; -WebKit-Border-Radius: 4px; b Ackground-Color: # 0089BF; Color: #FFFFFF; Width: AUTO; font-weight: 700; Font-Style: Normal; Font-Family: Arial, Sans-Serif; Box-Shadow: None; -Moz-Box-Shadow: None; -Webkit-Box-Shadow: None;). SP-Form .sp-Button-Container (Text-Align: Left;)

Hello. In my articles, I want to introduce you to programming the LEGO NXT Mindstorms 2.0 microcomputer programming. To develop applications, I will use the Microsoft Robotics Developer Studio 4 (MRDS 4) and NI LabVIEW (NI LabView) platform. The tasks of automatic and automated control of mobile robots will be seen and implemented. We will move from simple to complex.

Anticipating some questions and comments readers.

Why NXT MINDSTORMS 2.0? Because for its projects, this set seemed to me the most appropriate, because The NXT microcomputer is fully compatible with MRDS 4 and NI LabVIEW platforms, as well as this set is very flexible in terms of assembling various robot configurations - is spent at a minimum of time to assemble the robot.

Why are MrDS 4 and Ni LabView platforms? So it happened historically. Training at the Senior Courses of the University stood the task in developing training courses using platform data. In addition, platforms have sufficient simplicity in mastering and functionality, with their use you can write a program directly to control the robot, develop a user interface and test in a virtual environment (in the case of MRDS 4).

Yes, who generally needs these your lessons, online and so a lot of projects on robotics! With the use of this bundle (NXT + MRDS 4 / NI LabView), there are practically no texture articles, the native programming environment is mainly used, and it is completely all trivial in it. All who are interested in robotics, programming and who has a set of NXT (and there are not enough such), an age audience any.

Graphic programming languages \u200b\u200bare evil, and those who are programming heretics! Graphic programming languages \u200b\u200bare MRDS 4 and NI LabVIEW undoubtedly have their minuses, such as focusing under narrow tasks, but in functionality they are little inferior to text languages, especially Ni LabVIEW was initially developed as a language easy to learn to solve scientific and engineering tasks. For this, it has many necessary libraries and tools. Therefore, for solving our tasks, these graphics languages \u200b\u200bare the most appropriate. And do not be burned to despise us for it.

It all looks childish and not seriously! When the task is to implement algorithms, in training the basics and principles of programming, robotics, real-time systems without recess in circuitry and protocols, this is a very appropriate tool, though not cheap (relating to the NXT set). Although for the same purposes, ARDUINO databases are not bad, but there are almost no compatibility with the MRDS 4 and NI LabVIEW, and there is almost no charm in these platforms.

The technologies that are used are the product of the rotational capitalist countries, and the author of the enemy of the people and the accomplice of Western conspirators! Unfortunately, the majority of technologies in the field of electronics and computing technology come from the West, I will be very happy if they will indicate similar technologies for the original domestic production. In the meantime, we will use what we have. And you do not need to tell the special services for it for it.

A brief overview of the MRDS 4 and NI LabVIEW platforms.

I will make some clarity into terminology. Under the platform, in this case, meaning a set of various tools, such as the VPL language in MRDS, as well as an application runtime environment, i.e. There are no direct compilation of applications in executable (* .exe) files.

In 2006, Microsoft announced the creation of the platform Microsoft Robotics Developer Studio (in more detail in the Wikipedia article). MRDS is Windows-oriented application development environment for robotics and simulation. Currently relevant is mICROSOFT version Robotics Developer Studio 4. Among features: Graphic programming language VPL, Web and Windows - oriented interfaces, VSE simulation environment, simplified access to sensors, microcontroller and robot actuators, support for programming language C #, Libraries for multi-threaded programming and distributed CCR applications and DSS, support for many robotic platforms (Eddie, Boe - Bot, Corobot, Irobot, LEGO NXT, etc.).

LabVIEW (Laboratory Virtual Instrumentation Engineering Workbench) - This is a development environment and a platform for implementing programs created on the programming language of the programming "G" of the company National Instruments (in more detail in the Wikipedia article). LabVIEW is used in data collection and processing systems, as well as to control technical objects and technological processes. Ideologically LabVIEW is very close to SCADA systems, but unlike them are more oriented to solve problems not so much in the area of \u200b\u200bACS TP (automated control systems technological process), how much in the area of \u200b\u200bASNI ( automated systems scientific research). Graphic programming language "G" used in LabVIEW is based on data stream architecture. The sequence of execution of operators in such languages \u200b\u200bis not determined by the procedure for their following (as in imperative programming languages), but the availability of data on the inputs of these operators. Operators not related according to data are carried out in parallel in random order. The LabVIEW program is called and is a virtual instrument (eng. Virtual Instrument) and consists of two parts:

  • block diagram describing the logic of the virtual instrument;
  • the front panel describing the virtual instrument user interface.

A brief overview of the LEGO NXT MINDSTORMS 2.0 set.

The NXT kit consists of a control unit, four sensors and three servo drives. The control unit contains in itself:
  • 32-bit AVR7 microcontroller with 256 KB Flash memory and 64 KB RAM memory;
  • 8-bit microcontroller AVR C 4 KB Flash memory and 512 RAM memory byte;
  • bluetooth V 2.0 radio module;
  • USB port;
  • 3 connectors for connecting servo drives;
  • 4 connectors for connecting sensors;
  • LCD display resolution 99x63 pixels;
  • speaker;
  • connector for 6 AA batteries.
Sensors (in different configurations, different sensor sets):
  • ultrasonic sensor;
  • two tactile sensors (touch sensors);
  • sensor define color.


Figure 1 - NXT microcomputer with connected sensors and drives

And of course, in the set there are a variety of Lego details in the LEGO Technic form factor of which will be collected by actuators and carrying design.


Figure 2 - Details in the Form Factor LEGO TECHNIC

We write the first application.

Write the first application. Let it be classically this application Displays the text "Hello, WORLD!". Implementation will occur alternately in MRDS 4 and NI LabVIEW, we will consider the specifics of each platform in the process.

Pre-install the MRDS 4 and NI LabVIEW platforms, in the case of MRDS 4, the installation should be carried out in the path folder to which it does not consist of Cyrillic (Russian letters), account The user will also consist only of Latin letters.

1. MRDS 4 platform.
We launch the VPL environment (Start menu - All Programs - Microsoft Robotics Developer Studio 4 - Visual Programming Language). This environment allows you to develop applications in the VPL language, testing in the VSE virtual environment. The VPL program is a diagram consisting of united blocks. In the window that opens, in addition to the standard command panel and the menu, there are 5 main windows:
  1. Basic Activities - contains basic blocks that implement such operators as a constant, variable, condition, etc.;
  2. Services - contains blocks that provide access to the MRDS platform functionality, such as blocks for interacting with any hardware component of the robot, or blocks for calling the dialog box;
  3. Project - combines charts included in the project, as well as various configuration files;
  4. Properties - contains the properties of the selected block;
  5. Diagrams Window - Contains, directly, diagram ( source) Applications.

Figure 3 - VPL Programming Environment

Perform the following sequence of actions:

2. NI LabVIEW platform.
On this platform everything is implemented, almost identical. Let's start the labview environment. Two windows appear before us, the first - Front Panel is designed to implement the user interface ( external view virtual instrument), the second - Block Diagram, to implement the logic of the program.


Figure 8 - LabView environments

We will use the Block Diagram window. Perform the following steps:

Summary

  • We made an overview of software platforms to develop NXT microcomputer applications.
  • We reviewed the basic principles for developing applications in MRDS 4 and NI LabVIEW platforms.
  • I got acquainted with the media interface.
In the following articles, we will deal directly with NXT programming. On the LabVIEW environment, there are many educational materials on the network, VPL is much smaller. I highly recommend learning the reference guide of both platforms (knowledge of English), in these manuals, there are a lot of examples that can be implemented and not having NXT, as well as the following books:
  • Programming the NXT microcomputer in LabView - Lydia Beliovskaya, Alexander Beliovsky,
  • Microsoft Robotics Developer Studio. Programming robots management algorithms - Vasily Guy.
In my articles I will describe only my projects, because I see no reason to rewrite information from some sources to others. I will accept any constructive criticism, I will answer any questions regarding the planned platforms. Thanks in advance!

If you like the SCRATCH 2.0 graphic programming environment, then you do not need to abandon it for programming LEGO MindStorms EV3 robots. It is enough to install and configure the necessary software, which will be written in this article.

The article will be calculated on computer owners running Windows Although the software mentioned in the article can be installed and used on computers running Mac Os., Mac OS X. and Linux. Here is a brief plan for which we will act:

Preparation of an SD card

Before starting something to do next, you need to find a suitable SD card, delete all the extra sections from it that may be there, and format it. This should be a map of at least 2GB, but not more 32GB (SDXC card Not supported by module EV3). File system on the map should be FAT32. Developers lEJOS. Recommend to format the map using the SD Card Formatter program. After all, even if you decide to use just a purchased memory card, it can be hidden sectionswhich can cause problems when working with EV3. However, if your SD card less than 4GB, then the program automatically chooses file System Fat. and change in the settings it is impossible, so after formatting the program SD Card Formatter. format such cards into the format FAT32. another way. In addition, I have when using old cards 2GB, lEJOS EV3. In general, refused to load, although the installation was successful. From your experience I advise you to use fresh cards SDHC Volume 4 - 32GB (I have everything successfully working with the card SDHC Volume 4GB Class 4. Production smartBuy.).

Installing LEJOS EV3 components on a computer

lEJOS. - this is a tiny virtual Java carwhich in 2013 was adapted to work with the system LEGO MindStorms EV3.. The official project page is located. For computers running Windows Developers made a distribution in which there is a utility for training SD cards, documentation and examples.

So install lEJOS EV3. on computer:

      • Download last version lEJOS EV3. 0.9.0-Beta.). To install on Windows - It will be a file lEJOS_EV3_0.9.0-beta_win32_setup.exe..
      • Run the downloaded distribution on your computer. You will see a greeting. Click " NEXT\u003e».

      • On this step, select Jdk. (Java Development Kit.), Which you will use. It is recommended to use Java 7. or 8 . However, for use Java 8. You will need to create a suitable compact profile. Java so Java 7. It will use easier that we will do. If a Jdk. You are not installed, click on the button " Download JDK."And after the transition to the site Oracle Download fit Jdk. And install it on your computer. Click the " NEXT\u003e».

      • In the next step, you can choose the path to install or leave it unchanged. Click " NEXT\u003e».
      • In the next step, you will see a list of components installed. It is recommended to install all components. Click " NEXT\u003e».

      • In the next step, you can select alternative paths to install selected components. Here you can leave everything by default and click " NEXT\u003e».
      • The next step selects the name of the folder in the menu " Start" Click " NEXT\u003e».
      • On the latest Chair Click "Install."
      • If your computer installed the previous version lEJOS EV3.You will see a warning, see picture. Click "OK" to remove previous version from a computer.

      • After installation, you will see the final window. Here you can put a tick " Launch Ev3Sdcard Utility"To immediately go from the wizard to run the SD card preparation utility.

Press the button "FINISH" with a check mark " Launch Ev3Sdcard Utility»After installing components lEJOS EV3. on your computer or run the utility manually, To do this, run the file ev3SDCard.Bat.which is in the folder bin inside the folder in which you installed lEJOS EV3. (I have a folder " C: \\ Program Files \\ LEJOS EV3 \\ Bin"). After starting, you should have a window depicted in the bottom of the bottom.

In the top field you need to choose the letter of your card disk, I have this disk I:. The box below indicates the file with the image. lEJOS. And by default you must already be registered the right waysee picture from above. This file can be found in the folder where components were installed. LEJOS EV3. (I have it " C: \\ Program Files \\ LEJOS EV3"). In the lowest field you need to select the file with the runtime. Java which you first need to download from the site Oracle From here (make sure you have chosen Java 7 Jre., but not Java 8 SDK.unless of course you are planning to create a compact profile Java 8.). To download, you will need to register if you have not yet done.

When all fields are filled, click on the button. "CREATE", And after the necessary files will be copied on the SD card you will see a similar message:

Click "OK", Then close the Program window and safely remove the card from the computer. Then insert it into the turned off module EV3. and turn it on by pressing central button. You will need to see the logo lEJOS EV3. and the progress of formatting and installing the image SD cards. It takes about 8 minutes. At the end of this process, the module EV3. will overload and you should see the menu LEJOS EV3..

In the future, when you turn on the module EV3. with inserted SD card lEJOS EV3. You immediately start loading lEJOS EV3., and without an SD card, the standard software will boot Lego.

Installing Adobe AIR on a computer

Before installing offline editor Scratch, You need to update or install the latest version on the computer. Adobe Air.. I will not describe the installation, it is very simple. You need to download the installer, run it, answer a few questions and wait for the installation.

Now download and install the latest version of Offline Editor Scratch 2. (At the time of writing, this version is 437, file Scratch-437.exe.). The installer has very few parameters, see picture. Remove the tick " Start the application after installation"And click" Proceed».

After installation, you will see the following message, see the picture. Click on the button " Ready».

Installing the EV3-SCRATCH-HELPER-APP application on a computer

Next What needs to be done - install an application assistant eV3-SCRATCH-HELPER-APP on your computer that makes it possible to interact Scratch. With module EV3. (read about application assistants for Scratch. can ). Installation can be made in two ways:

    1. If you have on your computer installed git then you can clone the project by completing the command in the console git Clone https://github.com/koen-dejonghe/ev3-scratch-hev3-pscratch-helper-app.git." This method is preferable, but if you do not know what is git That is the second way.
    2. Download and unpack the zip archive with the project (I chose this option). Folder eV3-SCRATCH-HELPER-APP-MASTER inside the zip archive I unpacked on the disk C:.

In folder SCRATCH Inside the installation folder, you can find the file " eV3-HELPER-App.S2E»For English and file" eV3-HELPER-APP-NL.S2E»Dutch languages, respectively, in folders "EN" and "NL". If you want to use the Russian language, you can independently translate the file " eV3-HELPER-App.S2E"(Encoding a file d.b. UTF-8.) or take the file " eV3-HELPER-APP-RU.S2E»With my translation (file" eV3-HELPER-APP-RU.S2E"Save by analogy with the English and Dutch version: make the folder" rU \\ Extensions"And save in it). Unfortunately, it is possible to translate only the names of the blocks, but not the values, otherwise the application eV3-SCRATCH-HELPER-APP It will not work. Those. The name of motors and sensors will remain in English (for motors it "LARGE" and "MEDIUM", for sensors - "Color", "Distance" and "TOUCH" etc.).

EV3-SCRATCH-HELPER-APP Application Rusification Version: from 08/07/2015

EV3-HELPER-APP-RU.S2E file for Russification of EV3 blocks to Offline SCRATCH 2 editor.

08.08.2015 3.76 KB 1428

In the folder with the application you can find the file " application.Properties.»With settings. Change the settings if required. The names of the properties speak for themselves, so I will not paint here. After change, make sure the value of the property " server.port." in file " application.Properties."Equally the value of the variable" eXTENSIONPORT" in file " eV3-HELPER-App.S2E" or " eV3-HELPER-APP-RU.S2E", Depending on whether you will use the language file.

Starting an EV3-Scratch-Helper-App application

Before launching editor Scratch 2. You always have the application must always be launched. eV3-SCRATCH-HELPER-APP. To start it, do the following:

    1. Run the console window and change the current folder to the folder in which the application is installed. eV3-SCRATCH-HELPER-APP. I have a folder " C: \\ EV3-SCRATCH-HELPER-APP"So I called the team" cD C: \\ EV3-SCRATCH-HELPER-APP».
    2. Run the command " gradlew.bat bootrun." When you first execute, the necessary libraries will be downloaded to your computer, so make sure the computer is connected to the Internet. The first launch will occupy long time, be patient.

After the application starts, you will see about the following messages in the console:

2015-08-06 09: 15: 28.699 info 10236 --- SBCETTOMCATEMBEDDEDSERVLETCONTAINER: Tomcat Started On Port (S): 4321 / HTTP 2015-08-06 09: 15: 28.704 Info 10236 --- scratch.ev3.application: Started Application In 13.411 Seconds (JVM Running For 15.025)

For subsequent launches, you can create a shortcut, for example, on the desktop. Here it looks like the properties of a shortcut for installed application in folder " C: \\ EV3-SCRATCH-HELPER-APP»:

When starting the application eV3-SCRATCH-HELPER-APP Connects to the first available module EV3. online. If no module is detected, the application is waiting until this appears.

The first launch of the SCRATCH 2 editor

After launching the editor Scratch 2. The first time (you must have a shortcut " Scratch 2.»On the desktop) you may want to change the language into Russian. The selection of the language is executed from the menu with the image of the globe, see the picture.

Adding EV3 software blocks to Scratch 2 Editor

After starting, you automatically create a new empty project. Now it is necessary to import blocks for this project. EV3, To do this while holding the key SHIFT Click on the menu " File -\u003e Import Experimental HTTP Extension"And select File eV3-HELPER-App.S2E or eV3-HELPER-APP-RU.S2E, depending on the preferred language. I chose the file " C: \\ EV3-SCRATCH-HELPER-APP-MASTER \\ SCRATCH \\ EU \\ EXTENSIONS \\ EV3-HELPER-APP-RU.S2E" This procedure will need to do once for each new project.

After that, open the bookmark " Scripts»Click on" Other blocks"And make sure that our blocks appeared here. Checking the presence of blocks is preferably done every time after opening a previously saved project. Green circles to the right of the name " Ev3Helperapp."Means that the application v3-SCRATCH-HELPER-APP performed. If the mug is red, it means that the application v3-SCRATCH-HELPER-APP Not executed and need to run it.

Connecting the EV3 module to the computer

Connect the module EV3. To the computer you can in two ways: through Bluetooth or WiFi.

For connecting through WiFi. You must have USB WiFi. adapter. lEJOS EV3. Supports adapters with chipsets ATHEROS ATH9K. and Realtex 8192Cu.. EV3 module is tested by developers with adapters NetGear WNA1100. and EDIMAX EW-7811UNBut other adapters can be supported if they use one of the listed chipsets. Here I will not consider connection through WiFi, Because Not everyone has a suitable adapter. But if you are interested in this connection, then you can learn how to do this from the official source.

For connecting through Bluetooth You need to first connect the module to each other. EV3. and computer and then make personal network Bluetooth (PAN).

Connecting the EV3 module to the computer needs to be made only once for a pair " eV3 Module - Computer»:

1. In the EV3 module in the main menu lEJOS EV3. Find the menu item "Bluetooth" And go inside by pressing the button the central button of the EV3 module. If you see the inscription " Visibility ON.", Then everything is in order: the visibility of the module is turned on. If you see the inscription " Visibility Off"Find the menu item "Visibility" (with the image of the eye) and click on the central module button EV3. Twice to include visibility (the inscription should change to " Visibility ON.»).
2. Open the computer " Control Panel -\u003e Equipment and Sound -\u003e Devices and Printers" You will see a list of devices connected to your computer.

3. Make sure that Bluetooth The computer is enabled, and press the "button" Adding a device" The dialog box will rise in which a module must appear after a while EV3. Click on it and then click " Further».

4. In the next step, you will see a selection of connection option. Click on the second option and enter PIN 1234 .

After the EV3 module and the computer are connected to each other, you can do bluetooth personal network (Pan.) (network connection Pan. You will have to do every time you turn on the EV3 module):

    1. Open " Control Panel -\u003e Network and Internet -\u003e Network Management Center and common access "And click on" Change adapter settings»On the left pane of the window.
    2. You should see here " Network bluetooth connection "With a red cross. Click on this icon once to choose it.
    3. Click on top of the button " View network devices Bluetooth».
    4. After a while you will see one or more access points in the rising window. Click here on our device " EV3."To select it, and click on the menu item" Connect through -\u003e Access Point».

EV3 Robot Programming in Scratch 2 Editor

When programming Robotov EV3. Using the editor Scratch. and expansion eV3-SCRATCH-HELPER-APP You need to remember that before using motors and sensors you need to connect using blocks " Connect the motor to the port"And" Connect the sensor to the port» (« Connect A Motor to Port"And" Connect a Sensor to Port"When using an English-language version of blocks). Sensors are disconnected using a block " Close all ports» (« Close All Ports."In the English version).

Control what happens in the application eV3-SCRATCH-HELPER-APPYou can looking at the console messages.

To check whether we are right configured, collect the simplest trolley, for example, a standard drive platform, and write to it simple program in Scratch 2.. You can see examples in folders " dOC"And" scratch \\ en \\ demos»In the program installation folder eV3-SCRATCH-HELPER-APP. When opening demonstration programs in Scratch 2. Check if there are blocks EV3.As described above in the "" section.

Instructions for assembling standard drive platform You can take here:

    • First sprite " Start"(Large triangle left on top) gray, it means that the robot is not initialized. See, the speed of motors nULL, and the distance at the sensor 1 too nULL. You need to click on the gray triangle.
        • After pressing the triangle, there is a connection of motors and a distance sensor, and the triangle becomes green. As you can see the speed of motors and the sensor distance now show meaningful values \u200b\u200binstead of NULL.

        • Now you can click on the space on the computer and the robot will go forward, while there is no obstacle to the distance less than 50 cm. When the robot detects an obstacle, it will stop.
        • When you played out with a robot, you can press the triangle again. At the same time, all ports will close, and the robot will become uninitialized again, and the triangle will become gray.

    The program file depicted in the picture I will apply to the article:

    Instructions for assembling standard drive platform EDUCATOR EV3
    SCRATCH 2 program for testing interaction with Robot EV3 Version: from 08/07/2015

    SCRATCH 2 program for testing interaction with the EV3 robot.

    08/07/2015 45.65 KB 1157

    Outcome

    From this article you learned how to set up offline editor Scratch 2. For programming Robotov LEGO MindStorms EV3.And also learned how to start programming with it. Unfortunately, in the case of programming in Scratch 2. module EV3. All the time must be connected to the computer through Bluetooth or WiFi.. He is not an autonomy. Although there are pleasant bonuses - you can control the robot from the computer, for example, the robot on wheels can be controlled using the arrow keys or W, A, S and D keys. So, try, experiment and write if something is incomprehensible.

    EV3 robot programming course in LEGO Mindstorms EV3

    The educational and methodological center Raor is glad to submit a reprint of an exciting book " EV3 robot programming course in LEGO Mindstorms EV3"From the talented team of authors - the family of Ovsyanitsky.

    The book describes the LEGO MindStorms EV3 programming environment for programming a robot based on the LEGO EV3 designer.

    A detailed description of working with sensors and motors is provided. Attention is paid to working with the screen and sound - output of static and dynamic images and text on the screen EV3 block, programming your own cartoon games on the screen.

    Considered software structures To work with data, arrays and files. Demonstrated various methods Connections of robots to organize their collaboration.

    A detailed description of the movement algorithms of the EV3 robot algorithms along line, counting intersections, objects of obstacles, working with barcode elements, passage of inversion, movement of the robot along the wall, finding a goal in a maze and much more.

    Posted detailed instructions To update the built-in software and working with third-party sensors.

    All algorithms are accompanied by detailed descriptions and software solutions.

    Software riddles are proposed that forcing them to think over strange, at first glance, the result of the program.

    The book is the result of many years of experience of the authors as direct participation in competitions in the robotics of all levels and pedagogical activities aimed at the preparation of teachers, teachers and coaches on this topic.

    You can purchase a book on the edusnab.ru website.

    In honor of the release of the book, Dmitry Nikolayevich Ovsyanitsky told the editorial office of the portal site about the peculiarities and additions of the new publication with the whole textbook, and also answered a few questions "On Robotics, Education and everyday life».

    - Dmitry Nikolaevich, what prompted you to reprint the name of this tutorial?

    During this time, we periodically encountered strange and inexplicable, at first glance, the behavior of the program. It was very interesting to find reasons. And here these "oddities" we have contributed to the book called "Riddles" so that readers can think about interesting things (PS answers are attached).

    A feature of the book is a large number of projects proposed on the basis of disassembled algorithms. Having understood in our projects, children will be able to create their own, more complex and interesting. We hope that our book will serve as the first step to pass the children with robots and will help in implementing their ideas and creativity.

    - Why is the LEGO designer?

    About Lego can speak very much and different. It just so happened that for the first time with robotics, we were encountered on the basis of this designer. Here it is meant to the children's robotics, because With industrial familiar for a very long time. The designer likes simplicity, security for children, and most importantly, it is a set of "everything in one". Those. Immediately and mechanics, and motors, and control unit, and sensors. Very comfortably. In addition, there are Lego Technicians, where even more diverse details, and all of them are conjugated with MindStorms. Very friendly programming environment. Here is a block with motors, pressed a pair of numbers, and the motor earned. Simple, understandable and instant answer. Wonderful.

    - Do you plan textbooks on other designers?

    No, in other designers, do not plan textbooks. LEGO has not yet an hourly work edge.

    - How do you feel about free robotic platforms? For them, the future, or they will remain an outsider of the world of Rosorovnia?

    Wow, what questions. Like all people, we fully apply to the free biorobototechnical platform - Homo Sapiens. On the other hand, if we take all the variety of platform robots used to build robots, then our opinion and attitude towards them, we believe that there is no role in any role, especially for their developers. Regarding the competition, we only "for", the only one, do not mix them. Each has its own advantages and disadvantages. For example: if you disassemble the EV3 block, leave only the controller, alter it onto and connect to it the motors that put on Arduino, then it is impossible to compare, because EV3 Tens of times more powerful. Let the children have competitions in equal basic conditions to assess the diversity of the efforts. After all, all the "machines" will still be different.

    - Do you think you need to introduce robotics in the naturally scientific cycle of school subjects? How do you feel about the idea of \u200b\u200bbuilding lessons on the subject "Technology" based on robotic designers?

    We believe that the introduction of robotics into the school curriculum, both in the natural science cycle and in the subject "Technology" will be erroneous. First, the school should give the basic basics of knowledge on specific subjects and sciences, and robotics is an alloy of different sciences and is very extensive in essence. Secondly, to create a robot need a team, where each participant specializes in its field - mechanics, mathematics, programming. Third, each robot is created under specific task. The school already has its own task.

    On the other hand, if the program of each subject relating to robotics, make a drop of material about the use of the knowledge gained precisely to build robots or robotic systems, it will probably be useful and more understandable to the student in the fact that studying complex mathematical formulas, it can They specifically apply robotics in science.

    But mugs at school, it's great. Use the potential of the school to expand knowledge in different sciences on simple examples - Robots, it would be, from our point of view, a better solution.

    - What are your plans for the future ... Textbooks, can create your designer?

    There are many plans for the future, a lot of interesting material. We will try to set out it in the following books.

    We will not create a designer to create, there are more professional people and whole enterprises.

    - What problems do you see in front of robotics in our country, what is missing?

    Perhaps this question is worth asking the head of the Russian government, and not to us. We have long developed the opinion that the root of the problem is in the interval of the invention before introducing into production. It takes too much time.

    - How does the passion for robotics in everyday life helps you?

    Really, it does not help. All the time is occupied by these hobbies. Distractable and rest fails. Robotics is harm to everyday life. The head is engaged in some ideas, thoughts, handles - "masters", with computer eyes. Favorite saying in the family - "Do there really have people who can sit on the sofa and watch TV? Lit, this does not happen! "

    Rating: