Posts: 8
Joined: Mon Feb 11, 2013 1:19 pm


Wed Aug 06, 2014 3:04 pm

Hello guys,
I want shared with you an personal project called JArduino (Free), the project objetive is controlling arduino from java using a similar sintax of arduino sketch, an example is:

Code: Select all

			final Arduino arduino = new Arduino(ArduinoRxTxController.DEFAULT_RPI_SERIAL_PORT);					
			arduino.pinMode(4, Arduino.INPUT_PULLUP);
			arduino.pinMode(13, Arduino.OUTPUT);
			arduino.setListener(new ArduinoListener() {				
				public void arduinoEvent(ArduinoEvent event) {
						if( event.getPin() == 4 ){
							arduino.digitalWrite(13, event.getValue());
						arduino.servoWrite(6, event.getValue() == 1 ? 90 : 0);
					}catch(Exception ex){
The project have 2 components, one jar lib and one generic sketch.

Example Video:

If you are interested in used this project, write me to my email.

Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: JArduino

Wed Aug 06, 2014 5:44 pm

Very nice but this a Raspberry Pi forum :)

Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

Posts: 8
Joined: Mon Feb 11, 2013 1:19 pm

Re: JArduino

Wed Aug 06, 2014 6:51 pm

Hello simplesi, yes, this is a raspberry pi forum, the library allow use in a raspberry pi for integrate with arduino !!

User avatar
Posts: 425
Joined: Thu Oct 25, 2012 7:34 am

Re: JArduino

Thu Aug 21, 2014 3:29 pm

I am a bit confused what JArduino really is.

Is it something that converts Java to C and then compiles it for AVR processors?

Or is it JVM that runs in AVR and interprets bytecode?

And last question is - do you plan to make RPi port of libraries available for JArduino - AVR version? So all the code can run on RPi natively as well?

Posts: 28
Joined: Tue May 13, 2014 11:13 am

Re: JArduino

Thu Aug 21, 2014 3:42 pm

I have two Pi+'s and the Yun. Which has the Pi Library installed or parts of it is wifi enabled and I have managed to program it from my computer in the living room while the Yun is upstairs. I can connect the Pi+ to it and program, Pi or let Pi program Arduino Yun . Is that not easier? ;)
Dit Dah Dit Dah Dit

Return to “Java”