Skip to content

A project to learn Java and create software for Mindstorms Robots using hardware supported by EV3Dev & the LeJOS way.

License

Notifications You must be signed in to change notification settings

mingan666/ev3dev-lang-java

 
 

Repository files navigation

ev3dev-lang-java

EV3Dev-lang-Java is project to learn Java and create software for Mindstorms Robots using hardware supported by EV3Dev & the LeJOS way.

License: MIT Travis CI

ScreenShot

Introduction

In Lego Mindstorms ecosystem, the default solution to develop Java software for Lego Mindstorms was LeJOS but now exists one alternative, EV3Dev-lang-java a Java project running on the top of EV3Dev.

Lego Mindstorms ecosystem is a nice educational way to learn Java programming in general and Robotics in particular. Now, it is possible to install a complete Linux distro in the third generation of the product and others companies like Mindsensors & Dexter Industries has released products which interact with Sensors & Actuators from Lego ecosystem and that boards can use the Power of the popular board Raspberry Pi 3

But, with the help of EV3Dev, it is possible to have the same Linux experience for multiple boards. So... why not develop a Java library for that Linux Distro? The answer is EV3Dev-lang-java. The project, takes the good things of both worlds: EV3Dev with the complete linux experience and LeJOS with the rich local navigation stack and the remote support in the future.

What Debian versions are supported with this library?

The library has support for Debian Jessie & Debian Stretch. In this release, we have added initial support for Debian Stretch, so the Brick support is limited, only EV3 Brick is supported for this Debian distro but soon you will have all Bricks supported but in the other hand, you have the possibility to use OpenJDK 10 and it is amazing!

If you need to use any Raspberry Pi Boards, I recommend to use the latest stable EV3Dev release: Debian Jessie

What is the hardware platforms supported in this project?

Using the same Java objects, it is possible to deploy the software for Robots on EV3 Brick, Raspberry Pi 3 with BrickPi 3 & PiStorms.

# Element LEGO Raspberry Pi 3 Model B+
1 Hardware EV3 Brick BrickPi+ BrickPi3 PiStorms
2 SoC Sitara Processor AM1808 Broadcom BCM2837 RISC de 64 bits
3 CPU ARM9 300MHz 4× ARM Cortex-A53, 1.4GHz
4 RAM 16KB of Instruction Cache, 16KB of Data Cache, 8KB of RAM (Vector Table), 64KB of ROM 1GB LPDDR2 (900 MHz)
5 USB 1x 4x
6 Year 2010 2018

Project architecture

The project has been designed with the following solution in mind:

# Layer Option 1 Option 2
1 Platforms EV3 BrickPi BrickPi3 PiStorms EV3
2 OS Debian Jessie Debian Stretch
3 JVM Oracle JRE 8 OpenJDK JRI 10
4 EV3Dev Kernel 4.4.47-19-ev3dev-ev3 4.4.47-19-ev3dev-rpi2 4.9.58-ev3dev-1.6.0-ev3
5 ev3dev-lang-java 0.7.0 2.3.0

Note: At the moment, the whole solution is scalable until the next LEGO Mindstorms product estimated for next January of 2020.

Features included in the whole project

Java features

Platform features

  • Support for EV3 Brick, PiStorms v1/v2, BrickPi+ & BrickPi 3

Lego Mindstorms features

  • Regulated Motor Support
  • Unregulated Motor Support
  • Sensor Support (EV3 sensors)
  • Sounds Support
  • EV3 LCD Support

Robotics

Subprojects

Stable projects:

  • EV3Dev-lang-java: Low level interation with EV3Dev
  • lejos-commons: LeJOS interfaces & utilities
  • Installer: A set of Bash scripts to automate some operations with your brick
  • Template project: A Gradle project ready to test the project
  • Examples: A repository with several examples about the usage of this project

Incubator projects:

  • lejos-navigation: LeJOS navigation stack
  • Battery Monitor: A battery monitor to protect your hardware against low battery levels
  • OpenJDK for EV3: A custom OpenJDK JRE build for EV3
  • Usb Devices: A library to use Arduino, Grove Sensors, GPS, IMU, LIDAR, and more devices...
  • ROS: A library to publish Sensor data to ROS for SLAM purposes

Roadmap

Review the backlog to follow the features in course:

https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues

Getting Started

Take a look the documentation to use the project:

http://ev3dev-lang-java.github.io/docs/support/index.html

and use this easy template project with examples to use the project in a quick way:

https://github.com/ev3dev-lang-java/template_project_gradle

Examples

Take a look the following repository to learn how to use this project:

https://github.com/ev3dev-lang-java/examples

Videos

UML Design

ScreenShot

Known issues:

References:

About

A project to learn Java and create software for Mindstorms Robots using hardware supported by EV3Dev & the LeJOS way.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%