Arduino Programing With Python

by electronicsmith in Circuits > Arduino

874 Views, 3 Favorites, 0 Comments

Arduino Programing With Python

electronic smith.gif

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.

Materials

Python Installation

Untitled.jpg
fbgs.jpg

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

also, check the path set.

jhvjvj.jpg

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.

sdaff.jpg

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

pip install pyserial

Arduino Programing

gfnrg.png

upload the following code in your aduino.

leave you Arduino connected and run the python code share bellow

cnbs.jpg

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

Connections

electronic smith.png

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

ss.jpg

for more amazing projects visit electronic smith