

Python provides an easy way to do cross platform serial communication using pySerial module.

and Linux serialPort programming using Native API's.here Win32 Serial Port Programming using Native APi's.For each operating system (Windows/Linux) you have to write custom codes using the native API's as we have done One problem with developing code that uses serial port is portability, you can't use the same code in both Windows and Linux. Once the necessary drivers are installed you can interact over VCP by reading and writing into it. One of the many advantages of Python is the sheer number of contributed modules for performing a wide variety of tasks.It is widely used for building scripts/program to interact with real world objects like USB relays,USB data acquisition devices,USB data loggers and other embedded systems.Įasiest way to interact with serial port devices is over a Virtual Com Port using a USB to Serial Converter IC like Python is an open source, cross platform ,interpreted language that is easy to learn for beginners. This tutorial will concentrate on Python 3.x.x language and will use Pyserial 3.4 Library.įirst section deals with Arduino and Second section deals with bare microcontrollers like AVR,Microchip and Last section deals with Linux specific details. and communicating with it using Python and PySerial library. Tutorial on connecting an Arduino or Microcontroller (AVR ATmega328P,MSP430 ,PIC ) with a Linux/Windows PC using serial port (VCP).
