[PYTHON] How to set up the development environment of ev3dev [Windows version]

Introduction

About this article

This article summarizes the steps to set up a development environment for Linux OS ** ev3dev ** running on LEGO® MINDSTORMS EV3.

environment

table of contents

  1. Install Python
  2. Install VS Code
  3. Extension installation
  4. Connection check
  5. Supplementary .Install the ev3dev2 package

1. Install Python

The Python version of ev3dev is ** 3.5.3 **, so here I will install the same version of Python. (Even if the version is different, the program is executed by ev3 itself, so if the program is written correctly, it will work, but if you write it in a notation that is not introduced in 3.5 series, an error will occur, so insert another version. The benefits will not be in the development of ev3dev)

1.1 Download

Go to https://www.python.org/downloads/ image.png

Download 1.2 3.5.3

Find ** Python 3.5.3 ** from ** Looking for a specific release? ** and click ** Download ** image.png

Click ** Windows x86-64 executable installer ** from ** Files ** at the bottom of the page to download

image.png

1.3 Installation

Run the downloaded file, check ** Add Python3.5 to PATH ** and click ** Install Now ** to start the installation

image.png

** Installation complete ** image.png

2. Install VS Code

VS Code is a code editor from Microsoft.

2.1 Download

Go to https://code.visualstudio.com/download image.png

Click ** Windows ** to download image.png

2.2 Installation

Run the downloaded file to install it.

** Installation complete ** image.png

3. Extension installation

Click the icon "EXTENSIONS" in the red frame image.png

Enter ** ev3dev ** in the search field image.png

Install the extension whose creator is ** ev3dev ** image.png

Click the red frame icon "EXPLORER", and if ** EV3DEV DEVICE BROWS WER ** is displayed at the bottom of EXPLORER, installation is complete. image.png

4. Connection check

4.1 Connect PC and EV3

Click here for how to connect your PC to EV3 (https://qiita.com/RYoTA1209/items/9a62a04c8d64c66ec984)

4.2 Connection

Click ** Click here to connect to a device ** and select ** ev3dev ** image.png

If the circle next to ev3dev turns green, ** connection is complete ** image.png

Supplement. Install the .ev3dev2 package

This item is not required, but if it does, it will show you prediction candidates.

Open Powershell with administrator privileges. (Click ** Windows PowerShell (Administrator) ** from Windows + X to open it) image.png

You can install it with the following command

powershell(Administrator)


pip install --upgrade pip
pip install python-ev3dev2

Recommended Posts

How to set up the development environment of ev3dev [Windows version]
How to set up a local development server
[Development environment] How to create a data set close to the production DB
How to set up a Python environment using pyenv
[Blender] How to dynamically set the selection of EnumProperty
How to set up and compile your Cython environment
How to install the deep learning framework Tensorflow 1.0 in the Anaconda environment of Windows
How to set the development environment for each project with VSCode + Python extension + Miniconda
Switch the setting value of setting.py according to the development environment
How to set up Ubuntu for Windows Subsystem for Linux 2 (WSL2)
How to get into the python development environment with Vagrant
How to get the Python version
How to set up WSL2 on Windows 10 and create a study environment for Linux commands
How to handle multiple versions of CUDA in the same environment
The first artificial intelligence. How to check the version of Tensorflow installed.
How to update the python version of Cloud Shell on GCP
How to speed up instantiation of BeautifulSoup
How to set up SVM using Optuna
How to set the server time to Japanese time
About the virtual environment of python version 3.7
How to prepare Python development environment [Mac]
Set up Pipenv in Pycharm in Windows environment
Summary of how to set up major Python Lint (pep8, pylint, flake8)
How to calculate the volatility of a brand
Introduction to Python Let's prepare the development environment
How to set up Random forest using Optuna
Set the range of active strips to the preview range
Instantiation of the BOX development environment created earlier
How to set up Random forest using Optuna
[Note] How to create a Ruby development environment
Set up a Python development environment on Marvericks
Set up an Objective-C 2.0 development environment on Linux
Procedure to set hydrogen of atom (virtual environment)
[Note] How to create a Mac development environment
Set up TinyGo development environment for VS Code
How to make VS Code aware of the venv environment and its benefits
I want to use Python in the environment of pyenv + pipenv on Windows 10
How to set up public key authentication in ssh
Set up a development environment for natural language processing
How to know the port number of the xinetd service
How to set up a Google Colab environment with Coursera's advanced machine learning courses
The easiest way to set up Last-Modified in Flask
How to display the modification date of a file in C language up to nanoseconds
How to get the number of digits in Python
How to visualize the decision tree model of scikit-learn
How to check the Java version used by Maven
Set the specified column of QTableWidget to ReadOnly StyledItemDelegate
How to build a development environment for TensorFlow (1.0.0) (Mac)
[Introduction to Udemy Python3 + Application] 30. How to use the set
[Python] Summary of how to specify the color of the figure
How to hit the document of Magic Function (Line Magic)
How to access the global variable of the imported module
Ssh to virtual environment with remote development of vscode
[Implementation explanation] How to use the Japanese version of BERT in Google Colaboratory (PyTorch)
Set up a Python development environment with Sublime Text 2
[Selenium] How to specify the relative path of chromedriver?
I want to set up a GUI development environment with Python or Golang on Mac
How to run Python on Windows without polluting the environment as much as possible (Scoop edition)
How to manage Python minor version (build virtual environment) on Windows (without Pyenv or WSL)
How to pass the execution result of a shell command in a list in Python (non-blocking version)
How to increase the processing speed of vertex position acquisition