Go Down

Topic: java application & arduino (Read 825 times) previous topic - next topic

brunortiz

Hello, i configured arduino to read the value of resistances generated by a LDR, and i am creating an application in java that needs to receive the data read by the arduino. How do i do this connection, java/arduino?

thanks and  sorry for my english.

johnwasser

http://www.arduino.cc/playground/Interfacing/Java
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

brunortiz

thanks for the help, but i already compiled that code and nothing happens, there is something that i am doing wrong?

johnwasser

Run the Arduino code and click on the Serial Monitor button.  You should see the "Hello World" message arrive once every second.  Does that work?

Do you get any messages when you run the java code?  "Started" at least?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

brunortiz

The message "hello world" appears normally, but when i run the java code, nothing happens, even the "started" doesn't appears.

johnwasser

That does not bode well.  Sounds like the problem is in your PC or the installation of Java or one of the libraries. Perhaps some java forum would be able to provide better assistance.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up