Application reads serial data from Arduino using jSerialComm Java library. This read data is then displayed back to the user in a graphical user interface(GUI).
- None Available
- jSerialComm 2.5.1
- JUnit 3.8.1
- Maven
- Log4j2
- Do what you want commercial use, and private use are welcome
- Version 1.0
✔️ Initial Release
:bug:Incorrectly selecting port
:bug: Only attempting connection to port 1x
-
Version 1.1
✔️Fixed Incorrect selection of serial port
✔️Retry logic on Serial Port
-
Version 1.2
✔️Add application configuration
✔️No longer requires compile to change port
-
Version 1.3
✔️Add additional style configuration
✔️Added Logj4 logging for better debugging
✔️Added threading
✔️ Added configurable temp thresholds, and units
-
Version 1.4
✔️Added ability to reconnect when controller is removed, and then plugged in again. This will decrease the number of times you have to relaunch the java application
✔️Added Optional Air quality sensor MQ-135
✔️ Added logging of values on 1 minute intervals so the data can be collected over time
✔️ Improved parsing of serial data
✔️ Added progress bar that will show whenever the controller is disconnected
-
Version 1.5
✔️ Added Web socket server
✔️ Add example client webpage
-
Version 1.6
✔️ Added Configurable UI, Text data view, Data as bars, data as arcs(like web client)
✔️ Much improved local UI graphics options
⚠️ BE SURE TO UPDATE CONFIG TO INCLUDE NEW CONFIGURATION OPTIONS🐛 Fixed some reconnect issues
🐛 Made Control connected status more accurate
-
Open Arduino IDE
-
Go to tools tab, and set your board, processor, and port
-
Go to file tab, and select open
-
Use the file explorer to select the tempReaderWriter.ino file
-
Hit the build/upload button in the Arduino IDE
-
Ensure your pins for you sensor match what is commented in the Arduino sketch
- GND
- PWR
- pin 2 is the data pin
-
Open Arduino serial monitor, and temperature, and humidity are being published
-
Ensure you close serial monitor, and any other applications that use serial communication with the Arduino before launching the GUI.
-
Install maven if you have not already
-
Ensure JAVA_HOME environment variable is set correctly.
-
windows:
echo %JAVA_HOME%
-
Linux:
echo $JAVA_HOME
-
-
Ensure that the maven bin directory is in your system path
-
📂 Navigate to the unoTemp directory of the project in you terminal
-
run
mvn clean install
-
If you get a build error complaining about the java version being 10 you can always adjust the target version in the pom.xml file.
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>10</source> <target>10</target> </configuration> </plugin>
📂Navigate to target directory:
- target/unoTemp.jar is your application
- target/config.properties is your application config
💾 Edit / save your configuration:
-
Ensure you have selected your Arduinos port correctly, or the application will fail to display data.
-
If you change the default colors make sure that they are provided as rgb values
[0-255][0-255][0-255]
# Serial Port controller is on
serialPort=COM6
Run Application:
-
Launch by double clicking in your explorer
-
Alternatively you can launch from cmd/terminal
java -jar unoTemp.jar