I just successfully completed my first Java project by following your excellent tutorial. Your graph program is exactly what I needed for my Arduino heart monitor. I'm a 75 year old retired hardware engineer with minimal software skills an no previous exposure to Java or eclipse, so I needed every single detail in your video. I would have been lost if you had left out a single word. Fortunately for me, you produced the most complete, detailed, and professionally presented youtube video I've ever seen. I also like the way you take the time to respond to the comments. Thank you for this superb tutorial.
@upgrdman8 жыл бұрын
Glad you liked it. Thanks for the feedback!
@HitAndMissLab9 жыл бұрын
This is even more powerful than programming with Arduino and Processing. Many thanks. There is a real shortage of Arduino Java tutorials. If you have more ideas please do them.
@JimmiJohnJunnior8 жыл бұрын
This is more of a tutorial/reference video about making a UI with Java than anything else! Which is great!
@upgrdman8 жыл бұрын
Thanks for the feedback, glad you liked it.
@paveltrostianko97054 жыл бұрын
This is the level of quality that all training videos should strive for. Thanks for the detailed tutorial, amazing work!
@jeffreymelanson92306 жыл бұрын
Good work! Saved me a lot of time having to read and sort through books in order to get a GUI up and running. BRAVO!
@vacm17009 жыл бұрын
You are my hero! He had long months trying to get the data, but, with the help of your video I made it in few minutes. Greetings from Mexico.
@upgrdman9 жыл бұрын
+Miguel Vázquez Thanks for the feedback. I'm glad it helped.
@hughclarkson44257 жыл бұрын
Excellent video just what I needed to go from zero to having a running java app over the weekend. Thank for all your hard work.
@pattrainor70967 жыл бұрын
I couldn't help but comment how good this was/is. I also started thinking about when exceptions were caught. I might suggest incrementing x (as in x++) in the try/catch block, but if you do it in the finally() portion, you guarantee the value of x to increment-even though there may be an exception. I suggest this because if you have a series of, or frequent exceptions, you might want to ensure your 'seconds' time series still represented reality. It would just have 'blank' spots where there was no data. This way you could accurately count back & know when you had disconnects/exceptions. I've always avoided graphing in Java, so being an arduino hobbyist and a crack Java programmer, this was just what I needed to motivate me to use SWT!
@devilshand66969 жыл бұрын
Wow...I just gotta say, This Is A Fantastic Tutorial! Way "above and beyond". Keep up the great work.
@janjiratko67146 жыл бұрын
I am not used to comment videos, but this is so great, that I have to express it. Thank you very much, Your video helped me a lot and is really useful.
@upgrdman6 жыл бұрын
Thanks for the kind feedback!
@doylemaleche99376 жыл бұрын
What a delightful tutorial! VERY detailed!! Thank you for the EASY and in-depth Step-by-step instruction! GREAT JOB Sir!
@upgrdman6 жыл бұрын
Thanks for the kind feedback!
@khanqaiserster6 жыл бұрын
You are an excellent tutor for Java and Arduino. Excellent work !
@chenamee95847 жыл бұрын
really thank you !!! l just learn so much . i have done some projects with arduino lonely ! l have studied the java last term and now based on your vid l have more confidence to build communication project between PC and arduino ! l think it is pretty cool ! thx again
9 жыл бұрын
You're a very good teacher. I've learned a lot from your video. I'll be returning back as long as I haven't done it all. Thanks, great video. Very clear.
@melvsuy8 жыл бұрын
Finally, after searching for hours I found this. Thanks! This will help us in our study.
@caioporai6 жыл бұрын
Excellent tutorial! You made it comprehensive, easy to understand, anyone can follow it. Thanks!
@betoflores5517 жыл бұрын
héroe!!! me acabas de salvar de un problema que traía en cómo leer el puerto serie al enviar datos del arduino a la PC, infinitas gracias
@thysavrin3 жыл бұрын
I tried to follow your lesson but when I run it, there is an error. I don't what wrong. the message "Error: Unable to initialize main class SensorGraph Caused by: java.lang.NoClassDefFoundError: org/jfree/data/xy/XYDataset"
@abdietabrizi17236 жыл бұрын
Excellent video. Very informative, clear, and thorough. Thanks for taking the time to create this video.
@zachfotis7 жыл бұрын
Incredible video/tutorial ! Everything to the point from start to the end ! Thanks a lot sir ! Waiting for more java+arduino tutorials !
@FrequencyBender7 жыл бұрын
Thanks man, I think this tutorial will be my introduction to Java in general. Seems perfectly suited for my heart beat monitor, and tired of using processing.
@r.d.machinery37495 жыл бұрын
That was really interesting thanks. It was like a Java/Arduino "Hello, world" example. My head is buzzing with ideas now. I had forgotten that you could use Java to communicate with the serial port. I've ordered an Arduino starter kit from Amazon and I am going to repeat your experiment to compare sunset/sunrise times with official times. JFreeChart is a cool API, though I think I will use JavaFX for the charting. As another person has commented, if you have more Java/Arduino examples that leverage Java's powerful APIs it would be great to see them.
@agwri6 жыл бұрын
Very informative. Thank you for taking the time to start from scratch and develop a useful application.
@diegoestrada53503 жыл бұрын
How can i set the X-Axis with an inconmig String that is being sent from an Arduino RTC Module(DS3231) i.e"15:38"?
@egleo70577 жыл бұрын
Awesome tutorial. Coming back to java after a long time of C and C++ programming and this is just what I needed for my new project. Only suggestion would be to use a better screen capture program.
@rz13597 жыл бұрын
Really thanks for informative java video , I truly understand real job of class and thread here .
@fvgm7 жыл бұрын
Hi, thanks for your tutorial. Easy way to get started with Java and microcontrollers. Thank you again
@cjkelly91017 жыл бұрын
Best Tutorial Video I've Seen - Thankyou.
@pgorellana5 жыл бұрын
Finally, I could do it in NetBeans 8.2 on Linux and It works fine. Thanks a lot
@poojasonegar27618 жыл бұрын
This is more than a tutorial ....really awesome video...thanks for every step of instruction and video:)
@oliverheaviside93559 жыл бұрын
Great video, your thoroughness is highly appreciated.
@scimathfun3 жыл бұрын
Wow, this is a really amazing tutorial. You really nailed it and explain it well. A++
@altugkaya30459 жыл бұрын
What a great video! I am new on Arduino and you helped me a lot. Thanks dude.
@scooter1449 жыл бұрын
Excellent video, very detailed, I'm sure if you done a series on Java, Arduino, ESP8266, Interfacing things it would be very popular.
@brianbrookes75215 жыл бұрын
Excellent! Learned a lot and well explained, thank you. I am using this as a basis for one of my hobby projects.
@roxenhs64078 жыл бұрын
Love your all videos. Thanks for detailed explanation. Kindly, extend this video for multiple sensors and upload these graphs on server, using raspberry pi or windows.
@upgrdman8 жыл бұрын
Thanks for the feedback. I just posted a new video showing how to graph multiple sensors: kzbin.info/www/bejne/one9Y2mdeZyCf6c I plan to eventually make a video showing how to send sensor data to a web server like a Pi, but that might take a while.
@Coconut-bentoAsmr2 жыл бұрын
Thanks so much Sir for this tutorial ✨✨ but I’m wondering if I can use it for easyPic with a sensor of temperature 🤔🤔🤔 ?
@angustsang47158 жыл бұрын
This video is wonderful! But how to add another sensor value into the graph if I separate the two sensor value by "," in serial print ?
@pustakawandunia16887 жыл бұрын
can you help me? how to make line scrol to show data in jtable from combain line chart jfreechart and database?
@krisztiangyarmati21446 жыл бұрын
Thanks, I've managed to start serial communication now!
@dalwinci4 жыл бұрын
Many thanks ,This is more help to lerning to program .
@PaintingDigitally6 жыл бұрын
Thank you so much! I wonder if you could tell me how to add a marker at some point(s) on the graph. For example, an arrow or triangle or number at some x,y value to indicate an important event?
@PaintingDigitally6 жыл бұрын
I can see how I could add another series showing a vertical line at a particular x-axis point. I can also see how XYShapeAnnotation and XYPointerAnnotation could be used to draw a circle or elipse at the xy coordinate and have an arrow with text pointing to the coordinate. So unless you have another solution this will do fine, thank you!
@kirityrapuru9 жыл бұрын
Excellent tutorial : It was very helpful and your explanation is really awesome. We expect a lot more stuff like this ! Thanks for your interest for sharing with us. A end the video was not very clear
@upadhyayaman5047 жыл бұрын
thanks for this video helped me a lot only one thing i want to suggest that to use a screen recorder tool i hope it will make your video more effective
@upgrdman7 жыл бұрын
Thanks for the feedback. I use screen recording software in my newer videos.
@Rishab123125 жыл бұрын
Excellent tutorial! If anyone is still watching this and wants to try it in 2020 with the newest versions you must set a baudrate on your SerialPort with .setBaudRate()
@MrRaulcarricajo7 жыл бұрын
Thank you so much. Your tutorial is the best!!!
@scottgilsdorf29388 жыл бұрын
Really liked this! I appreciate you taking all this time to provide this instruction! Great detail level for someone that is not a programmer. I will be replicating this. Can't wait to give it a try! Scott
@ohmedarick17 жыл бұрын
Thank you for your time and effort. Exactly what I was looking for
@ivansambrana76047 жыл бұрын
could modify the code to listen for several com ports at the same time? with the same csv format
@mostafafawzy20818 жыл бұрын
thank you very much but I have a question.. I want to put sensor value on x axis and another sensor value on y axis and make a curve... what should I do?
@0mkarlokhande3078 жыл бұрын
Can You add the video to compress the amplitude of sensed signal?
@WasabiHapper8 жыл бұрын
Very well explained. Valuable vid!
@joesmith19228 жыл бұрын
Great video. Thanks for taking the time to share your knowledge!
@nanoic29645 жыл бұрын
What would I need to do if I want to read from a light sensor that runs continuously and use that data from the while loop within the program without it getting stuck in the while loop?
@AtomicGeckoBrewing7 жыл бұрын
how can i force the ADC reading to start from zero...i notice that sometimes the value is really high when it initializes before settling down. This forces the graph to auto-range to a big number on the y-axis...making the rest of the data very small in comparison...in other words after the readings settle down changes in the light sensor are almost imperceptible. I'd like to give it a consistent starting point for the first second or so...or how do you fix the range?
@TheJavaSync3 жыл бұрын
Wowww, I'm not real programmer Never though before, that we able plot some data from arduino. But, I enjoyed the whole video Very interesting Thx You :)
@TheJavaSync3 жыл бұрын
I watched video many2 times to learn it, I followed step by step, & I get to Java build Path (13:50) - library & find 'add external jars' not executable (in grey mode) Any sugestion?
@amitgoel68306 жыл бұрын
very nice sir !!!! everything explained so nicely
@thearturo19094 жыл бұрын
Nice video men. Really help me a lot.
@charfeddinehajlaoui45728 жыл бұрын
hi .. im making a Gui to controle a gopro camera with arduino .. i need to connect it via com port and serial port ..can you help me please ?
@michaelandersen11614 жыл бұрын
Nice tutorial.. How can I add actual timestamp on th X-axis instead of a number?
@adamsthename7 жыл бұрын
When I try to export the Project into a .jar file I have: JAR creation failed. See details for additional information. No resources selected Jar export finished with problems. See details for additional information. Could not find main method from given launch configuration.
@jubinantony12647 жыл бұрын
Facing an error for connectbutton and portlist "Cannot refer to a non-final variable connectButton inside an inner class defined in a different method"
@hichamtribak19446 жыл бұрын
How can we plot two or three curves in the same plot? thank you Sir.
@diegoosorio34919 жыл бұрын
Thanks for your time, your video is worth ! :)
@edmundasmilieska92666 жыл бұрын
Very Very nice.That is what I need. Thank you. Best tutorial.
@learnbox37832 жыл бұрын
Hi, please let me know how to auto scroll X-AXIS?
@leonidpiliptsevich53299 жыл бұрын
Thank you for so great explanation of everything java related!
@chuypunks58176 жыл бұрын
Hi sir. I would like to ask, what if my sensor is connected in the digital pin not in the analog, what code should i put? It would really help me in my project thank you.
@danielarmandovidalsoroa77874 жыл бұрын
Hi, very useful tutorial. I'm trying something similar but with MVC architecture but I don't know how to make it work having the dataset in the model and the graph in the view, any suggestion? I also saw your Telemetry videos but that is far more complicated than what I'm looking for. I just need to make this example run in a MVC application, thanks
@ridvanmelihsahin94793 жыл бұрын
Hi, I can use this project for ADC. But ADC contains SCK and DOUT pins. And these pins connect to Digital Pin 1 and Digital Pin 2. Can I update this code for these pin, do you have a any suggestions for this question?
@anafilipaferreira86184 жыл бұрын
Thank you for your explanation. However, I try to run your code but simply doesn't read any values, and the console doesn't show any issue. It seems like the problem setComPortTimeouts(), but I already try other options to TIME_SCANNER and it still doesn't work. I will be very greatfull if you could help me.
@ANKITPANDEY-fg2bj7 жыл бұрын
+upgradman thanks for the video. I had a query. what if i want to show two different analog values on two different graphs? how is that possible? how will i switch between two inputs?
@PeakWuNeverSurrender5 жыл бұрын
Great Video! But how to have 2-way communication between PC and sensor? For example, only when PC send msg ‘1’ then the sensor will reply with current light intensity; when PC send msg “2”, then the sensor will reply with current temperature.
@LUCKY0077257 жыл бұрын
Nice work, Could you please guide us, how to add a function in your existence java code by which we can import logged data to excel auto/Manuel bundle of thanks
@abdalrahman34976 жыл бұрын
do you know that you can use some software to record your screen instead of using a camera
@florin31613 жыл бұрын
Hi this priceless i am trying to finsh some sofware for a small balancing machine that is using one small laser to take parts from rotor.... can you give some help...
@johnnicinco8 жыл бұрын
Thank you very much for the video. I have been wanting to see a video like that with so much explaining for each step and it is apparent you are well versed in Java. It was very helpful. I am wondering if I can take that runnable jar file and put it in am Android tablet and use a BlueTooth serial connection in place of com3 for receiving the data from my microcontroller, and also do you have any idea how much data could be transmitted each second from the Arduino, or in my case the Controllino before the program would not be able to handle the data. I am hoping to send 4 thermocouple readings, a few actuator states (just 1's and 0's. and a laser reflectometer signal like yours. Even if you don't have the time to answer those questions, I must say I really appreciate your video.
@hoatolagbe17 жыл бұрын
Excellent work!! Can't thank you enough!!
@ReflectingMe20247 жыл бұрын
The demo screen you show at the start of the video is shown on a MAc, but the tutorial is done on a Win PC? Do you happen to have a Mac tutorial for this as I am very interested?
@upgrdman7 жыл бұрын
It was Windows running on the Mac. The process should be similar for doing this directly on a Mac. Just install Java and Eclipse, the rest should be the same.
@ReflectingMe20247 жыл бұрын
Awesome, many thanks. It's a fair bit ahead of my programming knowledge but you explain things very well so might have a go at doing this. Cheers 👍
@JohnDoe-pq8yw8 жыл бұрын
Awesome!!! You are an excellent instructor. Thanks.
@upgrdman8 жыл бұрын
Glad you liked it!
@Rosi20017 жыл бұрын
I learn Java, in video is tutorial how to create chart, that's really simple, thank. Static chart about 5 rows :)
@shripradgaydole61597 жыл бұрын
I m getting error to change the modifier to final what should i do??
@vaibhavlagad11406 жыл бұрын
It is not showing any port name in JComboBox...What can i do..?
@nawaryoussef7 жыл бұрын
Thanks for the tutorials, I am having a problem. I tried the code I typed by my self and the one you provided in the link below the video. In both cases I was able to connect and the text on the button changed from "Connect" to "Disconnect", but the program froze when I click it back from "Disconnect" to "Connect". Do you hav any idea why that happening? By the way I am using NetBeans.
@everybodydothedabwhooo7997 Жыл бұрын
Does anyone know how to convert this code into a JFrame form class?
@uchihatashi32498 жыл бұрын
hey is it possible to send the data value from java Netbeans to Arduino and then received data from Arduino one after one.. if it is possible can u make a video on that or guide me how to do that?
@amargaikwad84086 жыл бұрын
hello your work is OSM..... i want to take inputes from a numpad and print it to display but it is not happning on java can you help please.. and is it possible program ardiuno from java i mean inputs from pins and setting servo etc thanks regards..
@muzafir12078 жыл бұрын
thanks for this awesome instructions ,i want to add two digital inputs to arduino from this application .i have tried ,amy but failed can you please suggest how to do it .
@DjanilsonMartins9 жыл бұрын
Great Tutorial!! Congratulations and thank you!!
@LightFykki8 жыл бұрын
This was a very useful video, thank you for posting this. The only problem that I have is that when I disconnect and the connect, the GUI freezes. It doesn't even give any errors or exceptions.
@upgrdman8 жыл бұрын
+LightFykki Hi. If I recall correctly, when connecting or disconnecting from the UART, the Arduino resets. You might need to delay for a few seconds before attempting to communicate.
@mohalemolefe5 жыл бұрын
A very great tutorial thank you so much, man! So how would you go about reading 2 sensor values from the same line? will I have to create another scanner for that??
@javierrinaldi89416 жыл бұрын
hi there. I made it in Netbeans and when I build it, the .jar doesn't run. I have no idea why.
@amarenpdas19756 жыл бұрын
Excellent tutorial
@mohamedfaroukbouklihacene8194 жыл бұрын
what is better, this or by using javascript and chart.js ?
@dairecanavan46998 жыл бұрын
Hi , just wondering if there is an easy way of graphing multiple sensor readings on the same plot using this method?
@denys4718 жыл бұрын
there is an explanation on 28 minute
@kevingalvin95688 жыл бұрын
Very well presented video. Thank you very much. I am interested in presenting data from my Arduino in gauge form such as rpm or temperature or watts output. Are there any suitable GUI java imports that I could make use of?
@ahmadmohammed16075 жыл бұрын
Where can I find this sensor ?
@riyadrahman98447 жыл бұрын
thank you sir learn a lot from you ! Can i change the baud rate with this code only 9600 baud rate is working
@f58fcv8 жыл бұрын
May I know how to get a fixed size for x-axis? So that the line graph will move on and not get "squeezed"? Thank you so much!
@upgrdman8 жыл бұрын
Hi. Right after creating the chart object, you can use: chart.getXYPlot().getDomainAxis().setRange(minX, maxX); And regarding your other message, to set the baud rate, before calling chosenPort.openPort() you can use: chosenPort.setBaudRate(115200);
@f58fcv8 жыл бұрын
Thank you so much for your prompt reply and kind help! Really appreciate it!
@kaischaabane69788 жыл бұрын
Great Tutorial!! Congratulations ,can i do the same things but with Pic18f4550 (usb communication) MANY THANKS