Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xanthium-enterprises/crossplatform-serial-port-programming-using-python-and-pyserial
Cross Platform Serial programming on Linux and Windows Systems using Python and PySerial
https://github.com/xanthium-enterprises/crossplatform-serial-port-programming-using-python-and-pyserial
arduino comport-datareceived linux linux-serialport pyserial pyserial-asyncio pyserial-library python python3 serial serialport serialport-interface windows-10
Last synced: about 2 months ago
JSON representation
Cross Platform Serial programming on Linux and Windows Systems using Python and PySerial
- Host: GitHub
- URL: https://github.com/xanthium-enterprises/crossplatform-serial-port-programming-using-python-and-pyserial
- Owner: xanthium-enterprises
- License: mit
- Created: 2016-07-26T05:32:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-15T20:18:40.000Z (about 2 years ago)
- Last Synced: 2023-03-05T04:28:15.234Z (almost 2 years ago)
- Topics: arduino, comport-datareceived, linux, linux-serialport, pyserial, pyserial-asyncio, pyserial-library, python, python3, serial, serialport, serialport-interface, windows-10
- Language: Makefile
- Homepage: https://www.xanthium.in/Cross-Platform-serial-communication-using-Python-and-PySerial
- Size: 3.78 MB
- Stars: 12
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cross Platform Serial programming using Python and PySerial
![Python serial programmming using pyserial tutorial](https://www.xanthium.in/sites/default/files/site-images/serial-prog-python/serial-port-programming-python-pyserial.jpg)
-----------------------------------------------------------------------------------------------------------------------------------------A short introduction into serial port programming using Python and PySerial Library on **Windows** and **Linux** Systems.
- Python 3.8.x language
- Pyserial 3.4 LibraryThe Python code running on the **x86/x64** PC communicates with an microcontroller through serial link (TX,RX and Ground).
- Runs on Both Linux and Windows
- supports only Python 3.x.x Versions
- Added Arduino codes
- Microcontroller used is MSP430G2553 on Launchpad
- MSP430 Codes written in C and Compiled using IAR Embedded WorkBench
- ATmega328P Codes written in Embedded C (WinAVR)---------------------------------------------------------------------------------------------------------------------------------------
## Youtube Tutorials![](https://www.xanthium.in/sites/all/modules/socialmedia/icons/levelten/glossy/32x32/youtube.png)
- [Serial Port Communication between PC and Arduino using Python and PySerial Module for Beginners Pt-1](https://www.youtube.com/watch?v=tbrOlIoyRh4)
- [Serial Port Communication between **Linux (ubuntu)** and Arduino using Python and PySerial Module Pt-2](https://www.youtube.com/watch?v=aV14zGqkLN0)
- [Learn to Handle PySerial Exceptions in Python Serial Communication with Arduino](https://www.youtube.com/watch?v=RB-t55DTSoE)---------------------------------------------------------------------------------------------------------------------------------------
## Pyserial on Linux![Python serial programmming using pyserial on linux tutorial](https://www.xanthium.in/sites/default/files/site-images/serial-prog-python/python-serial-programming-tutorial-banner.jpg)
- Linux Specific parts of using Pyserial and avoiding access to serial port denied can be found below
- [Python Serial Communication using PySerial on **Linux platform** {*Linux specific parts*}](https://www.xanthium.in/linux-serial-port-programming-using-python-pyserial-and-arduino-avr-pic-microcontroller)
- Codes tested on **Ubuntu 20.04 LTS** and **Rocky Linux 8 (Centos/RHEL Family)**
- Change permissions using **chmod** command before running on Linux.
- Run the codes like *[user@loclahost]$ python3 _Number_PythonCode_repo.py*
- If you are experiencing **permission to /dev/ttyUSB0 denied errors** check the above tutorial
---------------------------------------------------------------------------------------------------------------------------------------## Codes in Repo
- **_1_Python3_Codes**
- **_2_Arduino_Uno_Codes**
- **_3_MSP430G2553_Codes**
- **_4_ATmega328P_Embedded_C_Codes**--------------------------------------------------------------------------------------------------------------------------------------
## Online Tutorial
- [Python Serial Communication program for embedded development using PySerial library](https://www.xanthium.in/Cross-Platform-serial-communication-using-Python-and-PySerial)
- [Python Serial Communication using PySerial on **Linux platform** {*Linux specific parts*}](https://www.xanthium.in/linux-serial-port-programming-using-python-pyserial-and-arduino-avr-pic-microcontroller)---------------------------------------------------------------------------------------------------------------------------------------
## Circuit
- Available in the original Tutorial
-------------------------------------------------------------------------------------------------------------------------------------
## Hardware used
- [USB to Serial/RS485 Converter](https://www.xanthium.in/USB-to-Serial-RS232-RS485-Converter)
-