Python Tutorial - How to Display Serial (Arduino) Data on a Scrollable Tkinter GUI

preview_player
Показать описание


-------------------------------------------------------------------------------------------------------------------------

These tutorials assume some basic understanding of Python syntax. If you are a beginner, there are plenty of resources available to quickly learn enough syntax to follow along.

Рекомендации по теме
Комментарии
Автор

Thank you my man, it's a really impressive tutorial, quickly, easy, healpful and directly to the point.
Thank you so much

alejandrocastano
Автор

Thank you for making serial comm videos, they're very helpful. Would love to see more serial, uart, rs232 stuff.

khunden
Автор

Thanks for this tutorial, very well explained :)

omarbrokeit
Автор

can you plot the graph with that Temp data?

Kennerdoll
Автор

how create a button to refresh the port?

robsonsab
Автор

pleasse how to copy the text in frame or i get the value of fram ?

mohamedhm
Автор

on the arduino you just use serial.print to write the data into the gui??

brunofernandes
Автор

Hi. Fascinating video. Tq!

Update.... No. It was all fine, and not because I'm using /dev/ttyUSB ports.
It was because I didn't have any device plugged in! lol.
The button with the label "/dev/ttyUSB0 - USB2.0-Serial" appeared :):):)
when I ran the script after plugging in an arduino.
- Just in case other amateurs like me have the same problem.

At 5:43 I get the empty grey screen but no buttons are displayed.
I'm running linux and python 3.8.10
I;m guessing it's because ports in linux are named /dev/ttyUSBx instead of "COMx" in windows,
but my programming skills are very weak so I don't know how to make it work in Linux.
Do you (ar anyone else) have any idea?

P.S. I'm using geany text/code editor, and it wouldn't compile initially.
I had to do this to get geany to compile it...
Build > Set Build Commands.
In the "Python commands" category, clicking on the visually empty 'Command' field,
this instantly pops up... python -m py_compile "%f"
Change python -m py_compile "%f" to this... python3 "%f"

kychemclass
Автор

hi, may I ask why I follow urs cooding exactly the same I get AttributeError: 'list' object has no attribute 'idex'

yongyzj
Автор

Hi! Thanks so much for the video! Helped me understand a lot but for some reason I can’t seem to get the serial output to the window using your exact code. The code figured out the comm port and the baudrate (i.e., print on the command line shows it’s all good), and the Arduino serial monitor also works fine, but nothing is printing in the TPK window…

Any help would be much appreciated!

edmondk
Автор

hello sir, can you please guide us how to save these data in text file?

researchgate
Автор

Hi sir, may I get ur code for firmware and the tkinter gui cause I am now doing the project I may need ur help tq

yongyzj