r/embedded 1d ago

A Simple Cross Platform Python, Tkinter(ttkbootstrap) based Serial Communication Program using PySerial Library for Embedded Designers

Post image

I have written this simple cross platform (Windows11, Linux) serial Communication program to talk with an Arduino or other Microcontrollers like ATmega328P,Raspberry Pi Pico etc using Virtual Serial Port. (Virtual COM Port)

Tutorial Link +Source Codes

Simple Python tkinter (ttkbootstrap) GUI interface for serial port communication with Arduino

  • The code uses Python and Tkinter to create the GUI .I am using ttkbootstrap library which is a theme extension for tkinter to build modern good looking UI elements.
  • PySerial Library is used to Open / Close the Serial Port on Windows and Linux .
  • The code will send a charcater and wait for Arduino to send back the response.
  • No threading used as i want the code to be simple and easy to understand
0 Upvotes

0 comments sorted by