Skip to main content
  • Buy cheap DIN rail mountable Isolated USB to Serial (TTL) /RS232/RS485 converter from India Bangalore(Bengaluru)

    ISO-USB2SERIAL V2.1 is a industrial grade isolated USB to Serial (TTL) /RS232/RS485 converter with ESD protected serial interfaces. Ideal for protecting the sensitive USB inputs of the PC/Laptop from industrial high voltage transients that may couple into the RS485 /RS232 lines.

    Get Started
  • buy industrial grade Ft232 usb to serial rs232 rs485 converter in India with FT232 breakout Board with Screw terminals

    USB2SERIAL V3.0 is a FT232 based protocol converter which can be used as USB to Serial(5V/3.3V)/RS232/RS485 converter

    Get Started
slider image

Simple Python tkinter(ttkbootstrap) serialport communication with Arduino

In this tutorial ,We will learn to build a simple crossplatform GUI based serial port communication with Arduino using Python and tkinter (ttkbootstrap).To make the interface look nice we will use the theme extension for tkinter called ttkbootstrap which provides modern flat style themes.

Here we will use pySerial Library to communicate with the serial port and use the tkinter(ttkbootstrap) library to build a cross platform GUI for ease of use.

Running Periodic background tasks in tkinter (ttkbootstrap) using .after() method

When you are building a GUI with tkinter/ttkbootstrap ,you may want to check the status of certain variable or functions continuously at regular interval and update those variables on the tkinter GUI.

Here, we are using ttkbootstrap theme extension along with tkinter and Python. 

A Short introduction to Python GUI design using ttkbootstrap and tkinter

As an embedded designer, your task often involves crafting nimble programs to facilitate seamless communication with an array of devices, including data loggers ,data acquisition modules, Serial port monitors etc. Python emerges as the go-to language for engineers operating within the embedded domain, enabling the creation of such programs with ease. 

Data Logging Arduino Serial Port data to MySQL database using Python

Logging Arduino serial port data to a MySQL database using Python involves reading data from the Arduino via serial communication and storing it in a MySQL database using Python. Below is a general outline of the process:

Hardware Components
Arduino Board: This is the hardware device that collects data and sends it over the serial port to the computer.
Software Components
Arduino Sketch: Write an Arduino sketch to collect data from sensors or other sources and send it over the serial port to the computer.