Skip to main content

Python library to interface basic embedded modules like RFID, GPS, GSM, LCD (16x2), DC Motor

Project description

pyembedded

Python library to interface basic embedded modules like RFID, GPS, GSM, LCD (16x2), DC Motor

Note that some of the hardware like RFID, GPS, GSM can directly be interfaced with Windows or Linux based machine but hardware like LCD and DC Motor will require Raspberry Pi or other simillar embedded devices.

PyPi: https://pypi.org/project/pyembedded/

Installation:

Package can be installed via pip:

$ pip3 install pyembedded

Verify if it is installed:

$ import pyembedded
$ pyembedded.__version__

RFID Usage:

Run below basic code to get the rfid id

Note: Use port as ‘COM1’, ‘COM2’ etc in case of windows machine. Use port as ‘/dev/ttyUSB0’ in case of linux based devices:

$ from pyembedded.rfid_module.rfid import RFID
$ rfid = RFID(port='COM3', baud_rate=9600)
$ print(rfid.get_id())

GPS Usage:

Run below code to get GPS related data

Note: Use port as ‘COM1’, ‘COM2’ etc in case of windows machine. Use port as ‘/dev/ttyUSB0’ in case of linux based devices:

$ from pyembedded.gps_module.gps import GPS
$ gps = GPS(port='COM3', baud_rate=9600)
$ print(gps.get_lat_long())

Other methods available:

$ get_lat_long()
$ get_time()
$ get_quality_indicator()
$ get_no_of_satellites()
$ get_raw_data()

Change Log

1.0 (12/6/2020)

  • First Release

1.14 (12/6/2020)

  • Added RFID module

2.1 (12/6/2020)

  • Added GPS module

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

pyembedded-2.1.tar.gz (3.9 kB view hashes)

Uploaded Source

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