Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lejos]

A Java Virtual Machine that can run on Mindstorms intelligent bricks.

2
votes
1answer
46 views

Two motors are driven forward, why are they rotating in different directions?

I have the Lego Mindstorms EV3 Pack and built a simple car with 3 wheels. The back whels are motorized. When I run the following code: Motor.A.backward(); Motor.D.Backward(); both motors are ...
2
votes
0answers
278 views

Is there an leJOS simulator for EV3?

I found this but this seems to be using their own library to control the EV3.
3
votes
2answers
497 views

How to get leJOS to run on macOS Sierra

I am working with an eclipse plugin that requires it to run 32bit Java 6 on it and I do have Java 6 on my computer but when I run the program I get this error. Error: This Java instance does not ...
1
vote
0answers
432 views

EV3 connection problem via USB on Windows 8.1

I am using LEGO EV3 on windows 8.1 eclipse Neon. When I try to launch the class as a LeJos application I get this error. IP address is /10.0.1.1 Creating the jar file or uploading the program failed ...
2
votes
0answers
1k views

Bluetooth connection to EV3 from Java on Linux/Android

I would like to connect to my EV3 from PC (and then Android) via Bluetooth. I was able to connect to NXT with LEGO-MINDSTORMS-MINDdroid which uses direct LCP commands but as far as I know the ...
1
vote
1answer
2k views

Where can I find a good tutorial on programming with Lejos?

I want to get started with LeJOS and use Java to check to see if an EV3 touch sensor is pressed, but I can't find any decent tutorials. Are there any good resources for this?
2
votes
0answers
607 views

Sending Gcode to LEGO mindstorms x/y plotter?

I am building an x/y plotter out of LEGO Mindstorms. I would like it to read an SVG file on the EV3 brick, convert it to gcode, and draw the coordinates. How would I go about doing this?
2
votes
1answer
192 views

Java BufferedImage with Lejos NXT: Java Heap Space

I'm trying to write a program for my Lego Mindstorm NXT, the program is simple, drawing some lines and saving the image in a .png file. So, I thought I'd use BufferedImage and use getGraphics to draw ...
0
votes
1answer
272 views

LEGO Mindstorm NXT memorize line followed (LeJos)

I made a line follower program with leJos, it works pretty well; and I want to take it to the next level: I want to make it remember the line it followed; works like this: follow the line till the end,...
2
votes
1answer
2k views

usage of ev3 ultrasonic sensor in lejos behavior based programming

I'm using ev3 ultrasonic sensor. And I'm writing a behavior based lejos code. I want to do some tasks when the ultrasonic sensor detects an object which is not further than 30 cm's. And this is my ...
4
votes
0answers
440 views

RCX + java + usb-to-serial

I am trying to get an old RCX working with leJOS. I already have it working with NQC and BricxCC. While NCQ/BricxCC seems to recognize my usb-to-serial (which appears as "COM5" to the OS), the leJOS ...
6
votes
1answer
427 views

EV3 RMIregulatedMotor Regulation Problems

I have problem with regulation of the motor when I control EV3 with Bluetooth. Here is the code: RemoteEV3 ev3 = new RemoteEV3("10.0.1.1"); ev3.setDefault(); RMIRegulatedMotor leftMotor = ev3....
6
votes
1answer
2k views

How to close color Sensor properly?

I want to get data from the color sensor with Bluetooth. I can get data but when the program terminates, the color sensor dose not close even though I call function close() on the color sensor. The ...