{"id":18636781,"url":"https://github.com/xanthium-enterprises/crossplatform-serial-port-programming-using-python-and-pyserial","last_synced_at":"2025-04-11T09:31:09.948Z","repository":{"id":37484357,"uuid":"64192730","full_name":"xanthium-enterprises/CrossPlatform-Serial-Port-Programming-using-Python-and-PySerial","owner":"xanthium-enterprises","description":"Cross Platform Serial programming on Linux and Windows Systems using Python and PySerial","archived":false,"fork":false,"pushed_at":"2022-10-15T20:18:40.000Z","size":3962,"stargazers_count":22,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T12:03:59.194Z","etag":null,"topics":["arduino","comport-datareceived","linux","linux-serialport","pyserial","pyserial-asyncio","pyserial-library","python","python3","serial","serialport","serialport-interface","windows-10"],"latest_commit_sha":null,"homepage":"https://www.xanthium.in/Cross-Platform-serial-communication-using-Python-and-PySerial","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xanthium-enterprises.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-26T05:32:07.000Z","updated_at":"2025-03-07T15:11:17.000Z","dependencies_parsed_at":"2022-08-24T13:10:39.524Z","dependency_job_id":null,"html_url":"https://github.com/xanthium-enterprises/CrossPlatform-Serial-Port-Programming-using-Python-and-PySerial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanthium-enterprises%2FCrossPlatform-Serial-Port-Programming-using-Python-and-PySerial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanthium-enterprises%2FCrossPlatform-Serial-Port-Programming-using-Python-and-PySerial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanthium-enterprises%2FCrossPlatform-Serial-Port-Programming-using-Python-and-PySerial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xanthium-enterprises%2FCrossPlatform-Serial-Port-Programming-using-Python-and-PySerial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xanthium-enterprises","download_url":"https://codeload.github.com/xanthium-enterprises/CrossPlatform-Serial-Port-Programming-using-Python-and-PySerial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248368207,"owners_count":21092317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","comport-datareceived","linux","linux-serialport","pyserial","pyserial-asyncio","pyserial-library","python","python3","serial","serialport","serialport-interface","windows-10"],"created_at":"2024-11-07T05:32:17.867Z","updated_at":"2025-04-11T09:31:09.451Z","avatar_url":"https://github.com/xanthium-enterprises.png","language":"Makefile","readme":"# Cross Platform Serial programming using Python and PySerial\n\n\n![Python serial programmming using pyserial tutorial](https://www.xanthium.in/sites/default/files/site-images/serial-prog-python/serial-port-programming-python-pyserial.jpg)\n-----------------------------------------------------------------------------------------------------------------------------------------\n\nA short introduction into serial port programming using Python and PySerial Library on **Windows** and **Linux** Systems.\n\n- Python 3.8.x language \n- Pyserial 3.4 Library\n\nThe Python code running on the **x86/x64** PC communicates with an microcontroller through serial link (TX,RX and Ground). \n\n- Runs on Both Linux and Windows\n- supports only Python 3.x.x Versions\n- Added Arduino codes\n- Microcontroller used is MSP430G2553 on Launchpad\n- MSP430 Codes written in C and Compiled using IAR Embedded WorkBench\n- ATmega328P Codes written in Embedded C (WinAVR)\n\n---------------------------------------------------------------------------------------------------------------------------------------\n## Youtube Tutorials\n\n![](https://www.xanthium.in/sites/all/modules/socialmedia/icons/levelten/glossy/32x32/youtube.png)\n\n- [Serial Port Communication between PC and Arduino using Python and PySerial Module for Beginners Pt-1](https://www.youtube.com/watch?v=tbrOlIoyRh4)\n- [Serial Port Communication between **Linux (ubuntu)** and Arduino using Python and PySerial Module Pt-2](https://www.youtube.com/watch?v=aV14zGqkLN0)\n- [Learn to Handle PySerial Exceptions in Python Serial Communication with Arduino](https://www.youtube.com/watch?v=RB-t55DTSoE)\n\n---------------------------------------------------------------------------------------------------------------------------------------\n## Pyserial on Linux\n\n![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)\n\n- Linux Specific parts of using Pyserial and avoiding access to serial port denied can be found below\n- [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)\n- Codes tested on **Ubuntu 20.04 LTS** and **Rocky Linux 8 (Centos/RHEL Family)**\n- Change permissions using **chmod** command before running on Linux.\n- Run the codes like *[user@loclahost]$ python3 _Number_PythonCode_repo.py*\n- If you are experiencing **permission to /dev/ttyUSB0 denied errors** check the above tutorial\n---------------------------------------------------------------------------------------------------------------------------------------\n\n## Codes in Repo \n\n- **_1_Python3_Codes** \n- **_2_Arduino_Uno_Codes**\n- **_3_MSP430G2553_Codes**\n- **_4_ATmega328P_Embedded_C_Codes**\n\n--------------------------------------------------------------------------------------------------------------------------------------\n\n## Online Tutorial\n\n- [Python Serial Communication program for embedded development using PySerial library](https://www.xanthium.in/Cross-Platform-serial-communication-using-Python-and-PySerial)\n- [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)\n\n---------------------------------------------------------------------------------------------------------------------------------------\n\n## Circuit \n\n- \u003ca href =\"http://www.xanthium.in/Cross-Platform-serial-communication-using-Python-and-PySerial\"\u003eAvailable  in the original Tutorial\u003c/a\u003e\n\n-------------------------------------------------------------------------------------------------------------------------------------\n\n## Hardware used \n\n\n- [USB to Serial/RS485 Converter](https://www.xanthium.in/USB-to-Serial-RS232-RS485-Converter)\n\n- \u003cimg src =\"https://www.xanthium.in/sites/default/files/site-images/usb2serial-converter/USB-to-serial-rs232-rs485-converter-data-sheet.png\"/\u003e\n  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxanthium-enterprises%2Fcrossplatform-serial-port-programming-using-python-and-pyserial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxanthium-enterprises%2Fcrossplatform-serial-port-programming-using-python-and-pyserial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxanthium-enterprises%2Fcrossplatform-serial-port-programming-using-python-and-pyserial/lists"}