[ev3dev × Python] Build ev3dev development environment

This article is for anyone who wants to work with ev3 in Python. This time we will prepare to run ev3 using VS Code.

table of contents

  1. Overview
  2. What to prepare
  3. SD card preparation
  4. Preparation of bluetooth
  5. VS Code preparation

0. Overview

** Use ev3dev to run a Lego robot (ev3). ** ** ** Create and run Python programs with VS Code. ** **

◯ ** ev3dev **: A system for running ev3. Official Site ◯ ** VS Code **: Abbreviation for Visual Studio Code. Where to make a program (editor). ◯ ** Python **: One of the programming languages. It is simple and easy to read.

1. What to prepare

◯ev3 ◯ PC  ◯bluetooth ◯ microSD or microSDHC (within 32GB) and adapter

2. Preparation of microSD

1. Download the image file from the link below

Image file (zip file Leave)

2. Download and install Etcher from the link below

Etcher download page

3. Flash microSD with Etcher

スクリーンショット 2020-06-15 8.24.43.png スクリーンショット 2020-06-15 8.24.49.png

4. When the flash is finished, insert the microSD into the intelligent block and turn it on.

3. Preparation of bluetooth

1. Turn on the bluetooth setting of your computer

スクリーンショット 2020-06-15 9.31.13.png

2. Through Wireless and Networks

スクリーンショット 2020-06-15 9.31.18.png

3. Press Bluetooth

スクリーンショット 2020-06-15 9.31.23.png

4. Check both Powered and visible (make both rectangles in the frame black)

スクリーンショット 2020-06-15 9.31.25.png

5. Press Start Scan to find your computer

スクリーンショット 2020-06-15 9.31.28.png

6. Check your computer

スクリーンショット 2020-06-15 9.31.30.png

7. Press Network Connection

スクリーンショット 2020-06-15 9.31.32.png

8. Connect ev3 to your computer

スクリーンショット 2020-06-15 9.35.33.png

9. Press connect

スクリーンショット 2020-06-15 9.31.36.png

10. Check if it is connected

スクリーンショット 2020-06-15 9.31.38.png

3. VS Code preparation

1. Download and install VS Code from the link below

VS Code download page Let's download it according to your computer! (Here it is Windows)

スクリーンショット 2020-06-15 10.31.26.png

2. Make VS Code Japanese

Search, install and restart! スクリーンショット 2020-06-15 10.31.29.png

3. Install ev3dev browser

スクリーンショット 2020-06-15 10.31.30.png

4. Create a new folder

Create a new folder for ev3dev! スクリーンショット 2020-06-15 10.31.33.png

スクリーンショット 2020-06-15 10.31.34.png

スクリーンショット 2020-06-15 10.31.57.png

5. Create a new file

Let's treat it as a Python file like program name .py! スクリーンショット 2020-06-15 10.32.01.png

6. Connect VS Code and ev3

Find your ev3! When it turns green, it means that you are connected! If it doesn't come out here, let's reconfirm bluetooth! スクリーンショット 2020-06-15 14.38.23.png

スクリーンショット 2020-06-15 10.35.13.png

7. Change the line feed setting (Windows only)

Let's change the line feed setting from CRLF to ** LF **!

スクリーンショット 2020-06-15 10.35.16.png

8. Download the program

Every time you make a program, press the download button to download it!

スクリーンショット 2020-06-15 10.35.18.png

9. Program execution

Right-click on the program file you want to run and press Run!

スクリーンショット 2020-06-15 10.35.54.png

Finally

Thank you for reading! !! I want to move it from the next time!

I want to make a better article ◯ This is easier to understand ◯ This is difficult to understand ◯ This is wrong ◯ I want you to explain more here We appreciate your opinions and suggestions.

Recommended Posts

[ev3dev × Python] Build ev3dev development environment
Python development environment construction
About Python development environment
python2.7 development environment construction
Development environment in Python
Build Python development environment (pythonz, virtualenv, direnv)
Build Python development environment with Visual Studio Code
[Python] Build a Django development environment with Docker
Build a Python development environment on your Mac
Build a Python development environment on Raspberry Pi
Build python3 environment with ubuntu 16.04
Build python environment with direnv
Build python environment on windows
[MEMO] [Development environment construction] Python
[For organizing] Python development environment
Build a Python environment offline
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
Build a GVim-based Python development environment on Windows 10 (1) Installation
Build a Python development environment on Mac OS X
Build a machine learning application development environment with Python
Build a Python development environment using pyenv on MacOS
Build python 1.0
Prepare Python development environment on Ubuntu
Build python virtual environment with virtualenv
Build Mysql + Python environment with docker
Prepare your first Python development environment
[Python3] Development environment construction << Windows edition >>
Python development environment construction on macOS
Vim + Python development environment setting memo
Emacs settings for Python development environment
Install Python development environment on Windows 10
Emacs Python development environment construction memo
Checking the NAOqi Python development environment
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Build a python3 environment on CentOS7
Prepare Python development environment with Atom
Build an Ubuntu python development environment on Google Cloud Platform
Build a Python development environment in Eclipse (add HTML editor)
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
How to build a python2.7 series development environment with Vagrant
UpNext2 Development Record # 1 Build Python CI environment in VS Code
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
Build an environment for Blender built-in Python
Python development environment for macOS using venv 2016
Easily build a development environment with Laragon
Build Jupyter Lab (Python) environment with Docker
[Development environment] Python with Xcode [With screen transition]
Python 2.7, 3.4, 3.5 extension module build environment on Windows
Method to build Python environment in Xcode 6
Blender 2.82 or later + python development environment notes
Python environment construction
Build a local development environment for Lambda + Python using Serverless Framework
Build Python3 and OpenCV environment on Ubuntu 18.04
Build a python environment on MacOS (Catallina)
python windows environment
Environment construction (python)
I want to build a Python environment
Python3 + venv + VSCode + macOS development environment construction
Build Python environment with Anaconda on Mac
python environment construction
Python --Environment construction