Skip to content

marcomauro/Arduino-SerialRead-Java

Repository files navigation

#Arduino Serial Read Using Java#

Arduino-Serial-Read-Java

How to communicate with an Arduino board using a Java application.

##Intro## In this example I will show how to read data sending by an Arduino board using Java application. The Arduino board elaborates a random number and print the data via the serial port. The Java application is designed to find the COM port where the Arduino is connected, establish the connection between Arduino and your PC, read the data coming from the serial port and finally plot the data via a real-time chart using JFreeChart.

##Info## For detailed information visit my blog Physics Light at the page Arduino Serial Read Using Java

##Configure##

Download and install Java SE development kit JDK and NetBeans IDE Windows x86 version (32 bit)

###RXTX library installation guide Windows###

Download the RXTX java library

Navigate to the JDK directory in your PC and find the jre directory:

C:\Program Files (x86)\Java\jdk1.8.0_20\jre

Open the RXTX library folder and copy the files in the jre directory

RXTXcomm.jar → …\lib\ext

rxtxSerial.dll → …\bin

##License## The Arduino Serial Read Java app is a free software licensed under GNU GPL v3.0 General Public License

##Contact## Contact me on twitter personal account @2m_marco sciblog account @PhysicsLight

##Acknowledgements## Luciano Zu for developing Ardulink the open source Java library for controlling Arduino board, and for helping me in my first Java app.

About

How to communicate with an Arduino board using a Java application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages