[LeJOS] Let's program mindstorm-EV3 in Java [Environment construction first part]

Overview

With EV3, you can challenge embedded programming of robots in Java! leJOS is a system for controlling mindstorm-EV3 in Java. You can easily enjoy controlling EV3 with Java by installing a dedicated OS on EV3. In this article, I will explain how to build an environment in two parts, the first part and the second part. In the first part, we will explain how to install LeJOS on the intelligent block itself.

environment

Things necessary

Please use your own USB dongle and microSD card.

leJOS installation procedure

download leJOS

https://sourceforge.net/projects/ev3.lejos.p/files/ Download the latest leJOS_EV3_0.9.1-beta.tar.gz from the URL and unzip it.

When unzipped, the file structure should look like this. スクリーンショット 2017-02-21 16.05.00.png

Write image file to microSD card

If you unzip sd500.zip in the previous file, the image file sd500.img will appear. Write this to the microSD card. I used Etcher for writing.

スクリーンショット 2017-02-21 12.48.21.png

Save necessary files to microSD card

Unzip lejosimage.zip in the file where you unzipped leJOS_EV3_0.9.1-beta.tar.gz earlier. Move to the unzipped folder and save all these files in the root directory of the microSD card. スクリーンショット 2017-02-21 16.15.22.png

Next, download Java for lejos from the Oracle JRE (URL below). http://www.oracle.com/technetwork/java/embedded/downloads/javase/javaseemeddedev3-1982511.html

Account registration is required to download. Save the downloaded file (ejre-7u60-b19-ejre-7u60-fcs-b19-linux-arm-sflt-headless-07_may_2014.tar.gz) to the root directory of the microSD card without decompressing it.

At this point, the file structure of the microSD card should look like this. スクリーンショット 2017-02-21 16.33.09.png

Start-up

Insert the SD card into EV3 and start it. At first, it takes time to install the module, so it will start after about 10 minutes.

Startup screen 1 (1).jpg

WiFi settings

Let's connect leJOS to the network. Insert the USB dongle into the EV3 main unit and select the WiFi button on the screen. If you enter the SSID of the network according to the GUI, you will be connected to the network and the IP address will be displayed.

The IP address (192.168.2.91) is displayed. 1.jpg

SSH connection

$ ssh [email protected]
[email protected]'s password: 
root@EV3:~# 

No password is set by default. Please replace the IP address with your own environment

Summary

leJOS includes some sample code by default. It will be interesting to select Samples on the screen and try various things. Building an environment is not so difficult, so please give it a try.

reference

https://sourceforge.net/p/etroboev3/wiki/lejosev3_mac_eclipse_section02/

https://sourceforge.net/p/lejos/wiki/Installing%20leJOS/

Recommended Posts

[LeJOS] Let's program mindstorm-EV3 in Java [Environment construction first part]
[LeJOS] Let's program mindstorm-EV3 in Java [Environment construction part 2]
JavaFX environment construction in Java 13
Play Framework 2.6 (Java) environment construction in Eclipse
[Java] Environment construction
Java environment construction
Road to Java Engineer Part1 Introduction & Environment Construction
java development environment construction
Web application development environment construction in Java (for inexperienced people)
Null-safe program in Java (Eclipse)
AtCoder Challenge Environment Construction (Java 8)
First Java development in Eclipse
[ev3 × Java] leJOS development environment construction (Eclipse on Mac OSX / bluetooth)
Java Spring environment in vs Code
Let's use Twilio in Java! (Introduction)
Creating lexical analysis in Java 8 (Part 2)
[Java & SpringBoot] Environment Construction for Mac
Creating lexical analysis in Java 8 (Part 1)
Let's think about what declarative programming is in Java and Elm (Part 1)
Java EE 8 (using NetBeans IDE 8.2) starting from sample code Part 1 Environment construction
Java container performance degradation in Menicoa environment
Java runtime environment construction method (Tomcat @ Linux)
Use OpenCV_Contrib (ArUco) in Java! (Part 2-Programming)
[Processing x Java] Construction of development environment
First steps for deep learning in Java
Java development environment construction memo on Mac
Let's create a Java development environment (updating)
Spring Boot + Docker Java development environment construction
Creating a matrix class in Java Part 1
Program PDF headers and footers in Java
Java application development environment created in VM environment
Minimal Java environment construction and Hello World
[Note] Execute java program in the integrated development environment Eclipse-I tried using git