This tutorial assumes that you are familiar with Arduino and have experience in uploading projects to Arduino.
If you get any errors post them on the comment section and we will try resolving it. If the library was successfully installed then you should not get any error messages as shown in the picture below. To do this, open Python Shell again and type in Now, let us check if PySerial is installed properly. Leave it to the default directory and default settings. Do not change any setting while installing. The resulting download will be a exe file which can be directly installed. PySerial is a Python API module which is used to read and write serial data to Arduino or any other Microcontroller.Ĭlick on Pyserial Windows to download PySerial.
You should see the result getting printed as shown below. To do so, simply type “ print (1+1)” and press enter. We will later get into the details of creating a python program, for now let us check if python is working. You can directly code in here and get the output on the same screen or create a new file and write the program there and verify the program here. This window is called the Python Shell and we will refer to it as “ Python shell” from now. When opened you should get the following screen. You can verify it by searching for “Python IDLE” in Windows search box and opening it. That is it!, python is successfully installed on our computer.
Click on 32-bit Python-2.7.9 and this will install the 32-bit Python IDLE on your Computer.
The installation procedure for MAC and Linux is different. The steps mentioned below are applicable only for windows users running either 32-bit or 64-bit OS. Obviously the first step in this tutorial would be installing Python on our computer.