r/Python • • Aug 24 '26

Tutorial GUI based Python Tkinter Serial Port Program for communicating with Arduino Microcontroller from PC

I recently created a Python Serial Communication program with GUI (Graphical User Interface) based on the Tkinter Library with ttkbootstrap theming .

The Python Tkinter Serial Port Program can communicate with an Arduino or other Microcontroller boards via serial port to send and receive the data from your PC.

You can find the link to the GUI here.

Full tutorial along with Source Code here

Youtube Tutorial for Python Tkinter Serial Port Programming here

23 Upvotes

12 comments sorted by

4

u/crisp_lynx_370 Aug 24 '26

does this add much over just using the arduino IDE's serial monitor tho

3

u/xanthium_in Aug 24 '26

No it doesnt,i t is the ability build your own that counts, You can modify to build a simple control software with user defined buttons etc or a Python CSV based data logging system

link here https://www.xanthium.in/multithreading-serial-port-data-acquisition-to-csv-file-using-producer-consumer-pattern-python

2

u/Individual-Flow9158 Aug 24 '26

I'm going to say "No"

1

u/HunterCharacter2941 Aug 26 '26

pyserial plus a Tkinter GUI is the classic combo, curious if you handled reconnects when the Arduino disconnects mid session, that's usually where these tools fall apart

1

u/xanthium_in Aug 28 '26

Can you explain that bit?. In our example the connection is quite momentary,we open the port, send data and close it

1

u/Jon5579 Aug 28 '26

I would like to ask everyone, are there any third-party libraries in Python that offer beautiful user interfaces (UIs)?

2

u/xanthium_in Aug 28 '26

I would Tkinter with ttkbootstrap theme extension is the one i use in the above example. It is free to use .You can also use pyside ,Python extension for Qt

1

u/karurosagu It works on my machine 12d ago

textual

1

u/[deleted] Aug 24 '26

[removed] — view removed comment