Java Programs

Useful for just reading data from arduino and outputing to terminal, saves having to use the arduino serial monitor and allows easy logging to file so that data can then be graphed with KST.

ArduinoComm

ArduinoComm is used for all the basic sensor setups as the first step on the computer side to read the data coming in from the arduino and output it to terminal for viewing.

 

KST does a good/better job of what the power logger does.


New Sampler 2.0

 

  • Select arduino from USB port drop down list
  • Take samples at different sample rates
  • Select any analog input or multiple analog inputs
  • See a zoom-able, pan-able graph.
  • Get Mean and Standard deviation of sample

The code is all these so if your interested in learning how to make graphs in Java the code may be useful.

Power Logger

Graph values the values send by the Arduino in real-time. Zooming and panning with the mouse so that you can quickly access data back in time and see larger or smaller sets of data.

 

VISampler

Based on the same code as power logger but has an extra button called sample sends a request to the Arduino to sample a small part of the voltage and current waveform and then send it in one lump to the VISampler program. This allows you to see the waveform in fair detail with the sampling rate adjustable from 5kHz to 35kHz if sampling voltage and current. Or twice that if sampling only current or voltage. Sample rate is set in the Arduino sketch.

 

 

 

 

 

Java Installation, rxtx lib install + Compiling and Running java programs

 

Example code

Some arduino - java examples from reading in integers and doubles sent by the arduino to outputting to a simple frame and using a simple GUI consisting of a couple of buttons to send data to the Arduino.