Arduino Programing With Python

Introduction: Arduino Programing With Python

In this article, we are going to control Arduino with GUI python.

working with python is very easy. I am going to share every step in detail from beginning.

Step 1: Materials

Step 2: Python Installation

Download python from the official website:-

also, check the path set.

Step 3:

After successful installation of python, we have to install pyserial library.

If you are using python 3 Tkinter preinstalled in it. For installation of the library go to command prompt to open it simply press window key + r run window pop up in front of you and type cmd press enter. A black window pops out front of your screen.

Step 4:

To install pyserial library type following command on your command prompt.

pip install pyserial

Step 5: Arduino Programing

upload the following code in your aduino.

leave you Arduino connected and run the python code share bellow

Step 6:

Replace "com13" port with your own Arduino port. you will find it on tools>port in Arduino ide.

Step 7: Connections

Connect positive of led to arduino pin number 9 and negative with arduino ground

Step 8:

Be the First to Share


    • Explore Science Challenge

      Explore Science Challenge
    • Furniture Contest

      Furniture Contest
    • Barbecue Speed Challenge

      Barbecue Speed Challenge



    Question 1 year ago

    Can you give me some help?
    I would like to use python to program an Arduino nano and control the Adafruit vibration mini motor disc, connected with Adafruit driver DRV2605l.
    Following your instructions, I am able to connect with Arduino by using python library serial, however, as I am new at python, I face difficulty to go further with the code.