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.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Materials

Step 2: Python Installation

Download python from the official website:- https://www.python.org/downloads/

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

    Recommendations

    • Instrument Contest

      Instrument Contest
    • Make it Glow Contest

      Make it Glow Contest
    • STEM Contest

      STEM Contest

    Discussions

    0
    None
    endrirama7

    Question 15 days 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.