Graph Arduino Sensor Data with Java and JFreeChart

  Рет қаралды 130,129

upgrdman

upgrdman

Күн бұрын

Пікірлер: 295
@itisonlyadream
@itisonlyadream 8 жыл бұрын
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.
@upgrdman
@upgrdman 8 жыл бұрын
Glad you liked it. Thanks for the feedback!
@HitAndMissLab
@HitAndMissLab 9 жыл бұрын
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.
@JimmiJohnJunnior
@JimmiJohnJunnior 8 жыл бұрын
This is more of a tutorial/reference video about making a UI with Java than anything else! Which is great!
@upgrdman
@upgrdman 8 жыл бұрын
Thanks for the feedback, glad you liked it.
@paveltrostianko9705
@paveltrostianko9705 4 жыл бұрын
This is the level of quality that all training videos should strive for. Thanks for the detailed tutorial, amazing work!
@jeffreymelanson9230
@jeffreymelanson9230 6 жыл бұрын
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!
@vacm1700
@vacm1700 9 жыл бұрын
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.
@upgrdman
@upgrdman 9 жыл бұрын
+Miguel Vázquez Thanks for the feedback. I'm glad it helped.
@hughclarkson4425
@hughclarkson4425 7 жыл бұрын
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.
@pattrainor7096
@pattrainor7096 7 жыл бұрын
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!
@devilshand6696
@devilshand6696 9 жыл бұрын
Wow...I just gotta say, This Is A Fantastic Tutorial! Way "above and beyond". Keep up the great work.
@janjiratko6714
@janjiratko6714 6 жыл бұрын
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.
@upgrdman
@upgrdman 6 жыл бұрын
Thanks for the kind feedback!
@doylemaleche9937
@doylemaleche9937 6 жыл бұрын
What a delightful tutorial! VERY detailed!! Thank you for the EASY and in-depth Step-by-step instruction! GREAT JOB Sir!
@upgrdman
@upgrdman 6 жыл бұрын
Thanks for the kind feedback!
@khanqaiserster
@khanqaiserster 6 жыл бұрын
You are an excellent tutor for Java and Arduino. Excellent work !
@chenamee9584
@chenamee9584 7 жыл бұрын
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.
@melvsuy
@melvsuy 8 жыл бұрын
Finally, after searching for hours I found this. Thanks! This will help us in our study.
@caioporai
@caioporai 6 жыл бұрын
Excellent tutorial! You made it comprehensive, easy to understand, anyone can follow it. Thanks!
@betoflores551
@betoflores551 7 жыл бұрын
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
@thysavrin
@thysavrin 3 жыл бұрын
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"
@abdietabrizi1723
@abdietabrizi1723 6 жыл бұрын
Excellent video. Very informative, clear, and thorough. Thanks for taking the time to create this video.
@zachfotis
@zachfotis 7 жыл бұрын
Incredible video/tutorial ! Everything to the point from start to the end ! Thanks a lot sir ! Waiting for more java+arduino tutorials !
@FrequencyBender
@FrequencyBender 7 жыл бұрын
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.machinery3749
@r.d.machinery3749 5 жыл бұрын
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.
@agwri
@agwri 6 жыл бұрын
Very informative. Thank you for taking the time to start from scratch and develop a useful application.
@diegoestrada5350
@diegoestrada5350 3 жыл бұрын
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"?
@egleo7057
@egleo7057 7 жыл бұрын
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.
@rz1359
@rz1359 7 жыл бұрын
Really thanks for informative java video , I truly understand real job of class and thread here .
@fvgm
@fvgm 7 жыл бұрын
Hi, thanks for your tutorial. Easy way to get started with Java and microcontrollers. Thank you again
@cjkelly9101
@cjkelly9101 7 жыл бұрын
Best Tutorial Video I've Seen - Thankyou.
@pgorellana
@pgorellana 5 жыл бұрын
Finally, I could do it in NetBeans 8.2 on Linux and It works fine. Thanks a lot
@poojasonegar2761
@poojasonegar2761 8 жыл бұрын
This is more than a tutorial ....really awesome video...thanks for every step of instruction and video:)
@oliverheaviside9355
@oliverheaviside9355 9 жыл бұрын
Great video, your thoroughness is highly appreciated.
@scimathfun
@scimathfun 3 жыл бұрын
Wow, this is a really amazing tutorial. You really nailed it and explain it well. A++
@altugkaya3045
@altugkaya3045 9 жыл бұрын
What a great video! I am new on Arduino and you helped me a lot. Thanks dude.
@scooter144
@scooter144 9 жыл бұрын
Excellent video, very detailed, I'm sure if you done a series on Java, Arduino, ESP8266, Interfacing things it would be very popular.
@brianbrookes7521
@brianbrookes7521 5 жыл бұрын
Excellent! Learned a lot and well explained, thank you. I am using this as a basis for one of my hobby projects.
@roxenhs6407
@roxenhs6407 8 жыл бұрын
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.
@upgrdman
@upgrdman 8 жыл бұрын
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-bentoAsmr
@Coconut-bentoAsmr 2 жыл бұрын
Thanks so much Sir for this tutorial ✨✨ but I’m wondering if I can use it for easyPic with a sensor of temperature 🤔🤔🤔 ?
@angustsang4715
@angustsang4715 8 жыл бұрын
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 ?
@pustakawandunia1688
@pustakawandunia1688 7 жыл бұрын
can you help me? how to make line scrol to show data in jtable from combain line chart jfreechart and database?
@krisztiangyarmati2144
@krisztiangyarmati2144 6 жыл бұрын
Thanks, I've managed to start serial communication now!
@dalwinci
@dalwinci 4 жыл бұрын
Many thanks ,This is more help to lerning to program .
@PaintingDigitally
@PaintingDigitally 6 жыл бұрын
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?
@PaintingDigitally
@PaintingDigitally 6 жыл бұрын
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!
@kirityrapuru
@kirityrapuru 9 жыл бұрын
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
@upadhyayaman504
@upadhyayaman504 7 жыл бұрын
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
@upgrdman
@upgrdman 7 жыл бұрын
Thanks for the feedback. I use screen recording software in my newer videos.
@Rishab12312
@Rishab12312 5 жыл бұрын
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()
@MrRaulcarricajo
@MrRaulcarricajo 7 жыл бұрын
Thank you so much. Your tutorial is the best!!!
@scottgilsdorf2938
@scottgilsdorf2938 8 жыл бұрын
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
@ohmedarick1
@ohmedarick1 7 жыл бұрын
Thank you for your time and effort. Exactly what I was looking for
@ivansambrana7604
@ivansambrana7604 7 жыл бұрын
could modify the code to listen for several com ports at the same time? with the same csv format
@mostafafawzy2081
@mostafafawzy2081 8 жыл бұрын
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?
@0mkarlokhande307
@0mkarlokhande307 8 жыл бұрын
Can You add the video to compress the amplitude of sensed signal?
@WasabiHapper
@WasabiHapper 8 жыл бұрын
Very well explained. Valuable vid!
@joesmith1922
@joesmith1922 8 жыл бұрын
Great video. Thanks for taking the time to share your knowledge!
@nanoic2964
@nanoic2964 5 жыл бұрын
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?
@AtomicGeckoBrewing
@AtomicGeckoBrewing 7 жыл бұрын
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?
@TheJavaSync
@TheJavaSync 3 жыл бұрын
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 :)
@TheJavaSync
@TheJavaSync 3 жыл бұрын
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?
@amitgoel6830
@amitgoel6830 6 жыл бұрын
very nice sir !!!! everything explained so nicely
@thearturo1909
@thearturo1909 4 жыл бұрын
Nice video men. Really help me a lot.
@charfeddinehajlaoui4572
@charfeddinehajlaoui4572 8 жыл бұрын
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 ?
@michaelandersen1161
@michaelandersen1161 4 жыл бұрын
Nice tutorial.. How can I add actual timestamp on th X-axis instead of a number?
@adamsthename
@adamsthename 7 жыл бұрын
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.
@jubinantony1264
@jubinantony1264 7 жыл бұрын
Facing an error for connectbutton and portlist "Cannot refer to a non-final variable connectButton inside an inner class defined in a different method"
@hichamtribak1944
@hichamtribak1944 6 жыл бұрын
How can we plot two or three curves in the same plot? thank you Sir.
@diegoosorio3491
@diegoosorio3491 9 жыл бұрын
Thanks for your time, your video is worth ! :)
@edmundasmilieska9266
@edmundasmilieska9266 6 жыл бұрын
Very Very nice.That is what I need. Thank you. Best tutorial.
@learnbox3783
@learnbox3783 2 жыл бұрын
Hi, please let me know how to auto scroll X-AXIS?
@leonidpiliptsevich5329
@leonidpiliptsevich5329 9 жыл бұрын
Thank you for so great explanation of everything java related!
@chuypunks5817
@chuypunks5817 6 жыл бұрын
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.
@danielarmandovidalsoroa7787
@danielarmandovidalsoroa7787 4 жыл бұрын
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
@ridvanmelihsahin9479
@ridvanmelihsahin9479 3 жыл бұрын
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?
@anafilipaferreira8618
@anafilipaferreira8618 4 жыл бұрын
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-fg2bj
@ANKITPANDEY-fg2bj 7 жыл бұрын
+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?
@PeakWuNeverSurrender
@PeakWuNeverSurrender 5 жыл бұрын
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.
@LUCKY007725
@LUCKY007725 7 жыл бұрын
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
@abdalrahman3497
@abdalrahman3497 6 жыл бұрын
do you know that you can use some software to record your screen instead of using a camera
@florin3161
@florin3161 3 жыл бұрын
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...
@johnnicinco
@johnnicinco 8 жыл бұрын
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.
@hoatolagbe1
@hoatolagbe1 7 жыл бұрын
Excellent work!! Can't thank you enough!!
@ReflectingMe2024
@ReflectingMe2024 7 жыл бұрын
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?
@upgrdman
@upgrdman 7 жыл бұрын
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.
@ReflectingMe2024
@ReflectingMe2024 7 жыл бұрын
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-pq8yw
@JohnDoe-pq8yw 8 жыл бұрын
Awesome!!! You are an excellent instructor. Thanks.
@upgrdman
@upgrdman 8 жыл бұрын
Glad you liked it!
@Rosi2001
@Rosi2001 7 жыл бұрын
I learn Java, in video is tutorial how to create chart, that's really simple, thank. Static chart about 5 rows :)
@shripradgaydole6159
@shripradgaydole6159 7 жыл бұрын
I m getting error to change the modifier to final what should i do??
@vaibhavlagad1140
@vaibhavlagad1140 6 жыл бұрын
It is not showing any port name in JComboBox...What can i do..?
@nawaryoussef
@nawaryoussef 7 жыл бұрын
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
@everybodydothedabwhooo7997 Жыл бұрын
Does anyone know how to convert this code into a JFrame form class?
@uchihatashi3249
@uchihatashi3249 8 жыл бұрын
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?
@amargaikwad8408
@amargaikwad8408 6 жыл бұрын
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..
@muzafir1207
@muzafir1207 8 жыл бұрын
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 .
@DjanilsonMartins
@DjanilsonMartins 9 жыл бұрын
Great Tutorial!! Congratulations and thank you!!
@LightFykki
@LightFykki 8 жыл бұрын
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.
@upgrdman
@upgrdman 8 жыл бұрын
+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.
@mohalemolefe
@mohalemolefe 5 жыл бұрын
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??
@javierrinaldi8941
@javierrinaldi8941 6 жыл бұрын
hi there. I made it in Netbeans and when I build it, the .jar doesn't run. I have no idea why.
@amarenpdas1975
@amarenpdas1975 6 жыл бұрын
Excellent tutorial
@mohamedfaroukbouklihacene819
@mohamedfaroukbouklihacene819 4 жыл бұрын
what is better, this or by using javascript and chart.js ?
@dairecanavan4699
@dairecanavan4699 8 жыл бұрын
Hi , just wondering if there is an easy way of graphing multiple sensor readings on the same plot using this method?
@denys471
@denys471 8 жыл бұрын
there is an explanation on 28 minute
@kevingalvin9568
@kevingalvin9568 8 жыл бұрын
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?
@ahmadmohammed1607
@ahmadmohammed1607 5 жыл бұрын
Where can I find this sensor ?
@riyadrahman9844
@riyadrahman9844 7 жыл бұрын
thank you sir learn a lot from you ! Can i change the baud rate with this code only 9600 baud rate is working
@f58fcv
@f58fcv 8 жыл бұрын
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!
@upgrdman
@upgrdman 8 жыл бұрын
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);
@f58fcv
@f58fcv 8 жыл бұрын
Thank you so much for your prompt reply and kind help! Really appreciate it!
@kaischaabane6978
@kaischaabane6978 8 жыл бұрын
Great Tutorial!! Congratulations ,can i do the same things but with Pic18f4550 (usb communication) MANY THANKS
Easy Arduino Data Logging and Telemetry
34:31
upgrdman
Рет қаралды 173 М.
Advanced Arduino Telemetry and Data Visualization
55:24
upgrdman
Рет қаралды 25 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
How does a USB keyboard work?
34:15
Ben Eater
Рет қаралды 3,3 МЛН
Send Data from a PC to an Arduino with Java
26:00
upgrdman
Рет қаралды 111 М.
Easier Arduino Telemetry and Data Logging
15:18
upgrdman
Рет қаралды 19 М.
Using AI To Detect AI Music (and other music industry data-porn)
19:42
I built my own 16-Bit CPU in Excel
15:45
Inkbox
Рет қаралды 1,6 МЛН
Arduino Event-Based Programming
26:12
BP Learning
Рет қаралды 230 М.
#9 Arduino Data Logger with Direct Input to Excel
10:12
Andreas Spiess
Рет қаралды 130 М.
I Scraped the Entire Steam Catalog, Here’s the Data
11:29
Newbie Indie Game Dev
Рет қаралды 798 М.
The Genius Way Computers Multiply Big Numbers
22:04
PurpleMind
Рет қаралды 222 М.