How to Plot Real Time Serial Data on Python GUI??

How to Plot Real Time Serial Data on Python GUI??

Dr. Sachin Sharma

5 лет назад

48,597 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@mubin04sheikh
@mubin04sheikh - 17.05.2020 14:00

Please make a videio on PID Control in python

Ответить
@dr.gauravgoyal6243
@dr.gauravgoyal6243 - 11.06.2020 17:35

Hello Really a nice video... After executing it I am facing two problems.
1. The data is not changing
2. could not convert string to float: error in line data[99] = float(a[0:4])

Ответить
@kangwei9429
@kangwei9429 - 28.07.2020 17:46

Hi sir, I am facing an issue that there is no signal in my plot even I had press the start button, the graph is empty. I have checked and there are no errors for the coding. May I know what is the problem?

Ответить
@rverm1000
@rverm1000 - 07.09.2020 07:47

best video ive seen so far.

Ответить
@rverm1000
@rverm1000 - 08.09.2020 05:47

i got the code to work in the previous video. but i cant seem this code to work

Ответить
@pikpik6078
@pikpik6078 - 29.09.2020 17:34

thank sir for tutorial i really appreciate
one question sir, how to make plot real time with distance sensor (HC-SR04) using guide matlab ?

Ответить
@robertstockmann4720
@robertstockmann4720 - 01.12.2020 13:36

Hello sir, your code works very well! Thank you first of all. But i am facing a little problem, when running the code again, i recieve an warning in the console:

invalid command name "2073612564416plot_data"
while executing
"2073612564416plot_data"
("after" script)

The GUI still works when i run it a second time, but i guess it has an old after.loop running in background which collides and throws the warning or something like that. Do you know how to solve this 'problem'?

Ответить
@nickst2797
@nickst2797 - 04.12.2020 04:38

Thank you very much! Could you make a video, not on how to plot, but how to display the serial text data, on a tkinter region? Maybe with a scrolling bar and autoscroll option? Thanks!

Ответить
@bennguyen1313
@bennguyen1313 - 24.12.2020 02:42

It seems the syntax for matplotlib and PyQt-Graph is not compatible. Any thoughts on when one may be better suited over the other?

I'm trying to plot real-time data coming in from the serial port ("5, 0x1234, 1.938\r\n") , but I start to lose data after a few seconds.. any suggestions on either using concurrency (queue/collections.deque, threading, asyncio, multiprocessing) or whether to use matplotlib-blit, or PyQtGraph-split... or PyQt vs tkinter.... or any approach that would maximize the throughput so that no data gets dropped from the serial during the GUI update?

I'm running on a PC, but I saw an example of a fast oscilloscope on a Raspberry Pi using OpenGL/freeglut , however, the use of the GPU looks intimidating and perhaps overkill for my needs!

Ответить
@Global_Info
@Global_Info - 29.12.2020 04:31

May I get the Arduino code for this project?

Ответить
@arbaazkhan5868
@arbaazkhan5868 - 24.02.2021 22:22

how should i fix this error
SerialException: could not open port 'COM3': PermissionError(13, 'Access is denied.', None, 5)

Ответить
@RohanHazara
@RohanHazara - 17.03.2021 12:29

Thank you so much.

Ответить
@boutheinahaddad6803
@boutheinahaddad6803 - 01.04.2021 11:58

thank you for this video it is very clear but can you do the video for saving the signal in the file in the real time

Ответить
@juansebastianforeroromero8023
@juansebastianforeroromero8023 - 01.04.2021 16:19

Dude, isn't it possible for you to provide Arduino code? I swear I've tried with default one but it is not working. I don't know if maybe if using a wrong one

Ответить
@kuchalaggyan2502
@kuchalaggyan2502 - 12.04.2021 15:20

Hi,
I want to show the 3d graph. can you help to do this. I am reading the value of the accelerometer. I want to show the line graph in Tkinter.

Ответить
@chathudilrukshi9609
@chathudilrukshi9609 - 12.04.2021 21:59

Very helpful video. Could you also please suggest a way to display real time data with another loop running background? Every time I try to do that, my window GUI freezes until the loop ends. Thank you

Ответить
@akaludi
@akaludi - 12.04.2021 23:57

Please provide the Arduino Code on website also - only Python code for PC is given - One side is not enough and is DISCARD by all of people and students - provide the code for Arduino and write and explain to students to feel satisfied

Ответить
@franciscomiranda3239
@franciscomiranda3239 - 14.04.2021 00:09

Source code direct link??

Ответить
@ExatasDistribuidas
@ExatasDistribuidas - 03.05.2021 18:28

Thank you! From Brazil

Ответить
@lydiaewande8813
@lydiaewande8813 - 18.05.2021 00:34

Thank you so much for this video. I have a question : How can i use this GUI program without working or opening Python? How can i save it on a computer so that i can use IT anytime without depending on Python? I need your answer please.

Ответить
@huseyinkucuktoka
@huseyinkucuktoka - 13.06.2021 16:20

Hello sir,
I want to make a project that live plot data from raspberry pi. I cant take serial data dallas sensor from raspberry pi. what should I do. Thanks.

Ответить
@pabloc.izaguirreartavia828
@pabloc.izaguirreartavia828 - 25.06.2021 05:35

Thanks from Costa Rica, !! I´m sure if I hadn´t come to your channel , i would never have learned this usefull code !!

Ответить
@somebody9887
@somebody9887 - 25.06.2021 14:41

There is Threading problem with this code

Ответить
@stefanjelic8704
@stefanjelic8704 - 26.06.2021 15:08

Can You post the code please? 😁

Ответить
@nisansalathenuwara1416
@nisansalathenuwara1416 - 03.07.2021 23:17

Sir, how to plot multiple real time data in the python?

Ответить
@NONAME_G_R_I_D_
@NONAME_G_R_I_D_ - 08.07.2021 15:29

brother pay attention that it is the Nazi flag!
Apart from that thank you

Ответить
@krmona95
@krmona95 - 22.07.2021 19:26

Hi, thanks for the video!
Do you know how to add the plot settings? Eg. Zoom, save, etc

Ответить
@robertovalenzuela8860
@robertovalenzuela8860 - 23.07.2021 02:18

When I press start the program crash and stop, also It doesn't show any graph signal, It Is only for Arduino? I'm using a Chatillon pull test connected via DB9 yo USB

Ответить
@nicolasbolivar7647
@nicolasbolivar7647 - 07.08.2021 05:05

i have a problem, the part of root.after(1, plot_data) isnt working, it doesnt do the loop to make it graph

Ответить
@tuyen3586
@tuyen3586 - 18.08.2021 12:12

Many thanks!

Ответить
@Kennerdoll
@Kennerdoll - 14.09.2021 13:27

Can the live plot graph be saved and how can the width of the plotting area be increased?

Ответить
@pantelapost8607
@pantelapost8607 - 06.10.2021 14:39

Sooo we gonna pretend that we don't see the swastika?

Ответить
@gerardoulisesperezrodrigue6560
@gerardoulisesperezrodrigue6560 - 11.10.2021 17:21

I have coded your example ant it works BUUT, if I let the program run it suddenly stops after a few minutes. My arduino and python program works perfectly good if I test it using only the terminal without the plot. Can you share me any suggestion to solve it?

Ответить
@virajitviru
@virajitviru - 22.10.2021 15:46

Why is there the Swastik symbol ? just curious

Ответить
@dimaskurniawan1924
@dimaskurniawan1924 - 18.12.2021 10:11

thank you, this is a great video, but sir can u help me to solve the delay, i have tried to change the baudrate but still have delay

Ответить
@anthonypeters1797
@anthonypeters1797 - 21.12.2021 09:59

whats up with the nazi sign

Ответить
@chitchatYT144
@chitchatYT144 - 28.12.2021 14:20

Hello sir.can u make a video on how to show real time data on screen through tkinter python!!!

Ответить
@AlexandreCes
@AlexandreCes - 04.02.2022 22:24

merci beaucoup, cela m'aide énormément .

Ответить
@dani_flyingdutchman5495
@dani_flyingdutchman5495 - 02.05.2022 10:35

Very helpful video prof! Thanks you

Ответить
@susilo5667
@susilo5667 - 07.06.2022 19:59

Is there tutorials plotting realtime data on web server?

Ответить
@modugulakavyasri1581
@modugulakavyasri1581 - 23.09.2022 05:01

Sir can we plot real data from gyrosensors on a website

Ответить
@dioutoroo
@dioutoroo - 07.11.2022 22:41

Hello Sir, thank you for your video! I have a question. Can I implement the same code for my Nidaq USB - 6009 instead of arduino? Appreciate your help!

Ответить
@ThingsMadeOfOtherThings
@ThingsMadeOfOtherThings - 20.11.2022 13:14

Dear Sir, thank you for sharing this guide. I am doing a similar project but using a raspberry pi and the INA260 sensor connected to gpio pins 2 and 3. Is there a simple way to modify your code to make it work? Thank you so much for any information.

Ответить
@Omgtired
@Omgtired - 15.12.2022 18:07

Thank you very much. Just what I was looking for. Great example project applicable for many real applications

Ответить
@nityanandadas5575
@nityanandadas5575 - 15.01.2023 09:26

Very nice and useful video.
Sir, can you please help me about how to change the program for plotting data of voltage output from a power supply which is installed and connected through?
Please.

Ответить
@vishwakchella
@vishwakchella - 07.02.2023 09:14

sir can you please make a video for plotting multiple data on the gui, having trouble parsing the data into 2 variables

Ответить
@darshanpanchal3046
@darshanpanchal3046 - 23.05.2023 12:42

Sir i am really stuck here, please give video doing same with threading 🙏 please 🙏

Ответить
@phamngocquapham5472
@phamngocquapham5472 - 22.12.2023 12:51

Great Video! Thank you very much.

Ответить
@kanhaconsciousness704
@kanhaconsciousness704 - 13.06.2024 06:05

what if instead of arduino I connect an oscilloscope , will the code have any changes or is this code compatible with that too? Someone please clear this doubt !!

Ответить
@anthonyv6962
@anthonyv6962 - 18.09.2024 06:09

Thank you this was very helpful.

Ответить