This quick tutorial shows the simple operation of a DC motor using a Python GUI. To make Python to communicate with an Arduino board we will be using the pySerial package. pySerial is a Python library which provides support for serial connections over a variety of different devices.
NOTE: Make sure the same COM port number is used in the Python code.
References:
pySerial: https://pyserial.readthedocs.io/en/latest/shortintro.html
Tkinter: https://docs.python.org/3/library/tkinter.html#tkinter-modules