Python is a very versatile programming language that is used to run embedded software on Linux devices such as the Raspberry Pi or to write scripts to automate test. Python can also be used to create GUI on a computer. There are various software packages out there that includes all the Python GUI library.
Python Read Serial From Arduino

We however found to be the most simple of them all. In this post, we are going to show you how to write a very simple GUI in Python to control a servo connected to an Arduino.The Python GUI presented in this post sends commands over serial which is then interpreted by the firmware running on the Arduino.
Arduino Serial Communication


Use the Arduino Serial Monitor to turn the Arduino LED on and off. In the Arduino IDE Window that contains the PhysicalPixel.ino sketch, open the Arduino Serial Monitor by going to Tools → Serial Monitor. In the Arduino Serial Monitor type: H and click Send (or press ENTER). Then type: L and click Send (or press ENTER). Using Arduino with Python – Controlling Arduino’s LED with Python. One such application is the Internet – of – things or IoT, which requires features like Communication Interfaces like Serial, graphical user interfaces, web interfaces, data storage and many other. Python has a huge collection of libraries that are open source and easy to use.