Skip to main content

Microcontroller and python interface

Project description

Pymewc ( Python Microcontroller Interface)

Making your microcontroller connect with python

version:0.1.6 Beta

Build Status PyPI - License PyPI PyPI PyPI downloads Contributions

  • Pymewc is a new and innovative python library that can be used for connecting python with the microcontroller world.
  • Pymewc is a lightweight package that aims simplicity yet performing complex tasks with ease.

Features

  • Read data from each pin of the microcontroller
  • Read data printed on the serial monitor window
  • Scoping Using Analog Pin 0 with a accuracy of upto 100 Hz
  • Writing program to the microcontroller(Development Stage)
  • Sending data to the local cloud service / running a apache server(Development Stage)

Installation

Pymewc requires Python v3.6+ to run. But extensively tested and recomends using python version > 3.7

Install the dependencies and packages and thats it.

For windows

pip install pymewc

For linux and unix based Operating systems

Downloading pip on linux based operating systems

Debian and Debian Based distros(Ubuntu, Mint etc)

sudo apt install python3-pip

For Arch and Arch Based distros(Manjaro, Endevour etc)

sudo  pacman -S python-pip

Installing package using pip

pip3 install pymewc

How to use the package

To check whether the python package is working and responding perfectly

import pymewc
pymewc.hello()

To make the LED blink with time delay

import pymewc
pymewc.blink()

For printing what the serial monitor prints:

import pymewc
pymewc.serial() 

For printing what the serial monitor prints without infinity loop condition specify no. of data to be displayed:

import pymewc
pymewc.serial_discrete() 

For scoping using analog pin A0 (Currently default value is A0 other analog pin values are under development) :

import pymewc
pymewc.scope()

Adding few other features which are digitalRead and digitalWrite functionalites(In development will be live soon)

Development Going on

  • Working on autodetect port name
  • Digital read and write functionalities for microcontrollers
  • Arduino scoping for other analog pins
  • Multiple scoping at the same time

Want to help??

Want to contribute? Great!

I will always welcome everyone contributers to contribute to the project which will be live soon. Hope it hits the market hard

Screenshot of the outputs

The Scope Image

The scope image output in the matplotlib output window (Scoping Image output)

License

MIT

Free Software, Hell Yeah!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymewc-0.1.6.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

pymewc-0.1.6-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pymewc-0.1.6.tar.gz.

File metadata

  • Download URL: pymewc-0.1.6.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.26.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for pymewc-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4facf306da60d159704cdb74b45361604aa9fa883e17af059a41a419a1315128
MD5 7b8efceaba5559ba990299e6ca94f6f8
BLAKE2b-256 7b41043434a05fcc1a0712e57369ba78080b0495965fd66624c44561706ba451

See more details on using hashes here.

File details

Details for the file pymewc-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pymewc-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.26.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for pymewc-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 92194a46346c43440ceb67751c5ffd70bab97ccad1f0f8ffed42f4a82e58cec0
MD5 e0b56ebcff1a617256286dc78b53c8eb
BLAKE2b-256 21c329197900bfcda1103024e396c45ca8a314ff6980cf3d2131228164ba32ac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page