Skip to main content

Pocket Science Lab by FOSSASIA

Project description

PSLab Python Library

The Python library for the Pocket Science Lab from FOSSASIA.

Build Status Gitter Codacy Badge Mailing List Twitter Follow

This repository hosts the Python library for communicating with the Pocket Science Lab open hardware platform (PSLab). Using this library you can communicate with the PSLab using simple Python code. The Python library is also used by the PSLab GUI as a backend component.

The goal of PSLab is to create an Open Source hardware device (open on all layers) and software applications that can be used for experiments by teachers, students and scientists. Our tiny pocket lab provides an array of instruments for doing science and engineering experiments. It provides functions of numerous measurement tools including an oscilloscope, a waveform generator, a logic analyzer, a programmable voltage and current source, and even a component to control robots with up to four servos.

For more information see https://pslab.io.

Buy

Installation

pslab-python can be installed from PyPI:

$ pip install pslab

Note: Linux users must additionally install a udev rules file for pslab-python to be able to communicate with the PSLab device. The file 99-pslab.rules should be copied to /etc/udev/rules.d/.

Note: If you are only interested in using PSLab as an acquisition device without a display/GUI, only pslab-python needs to be installed. If you would like a GUI, install the pslab-desktop app and follow the instructions of the Readme in that repo.

Validate installation

  1. Plug in the PSLab device and check that both the LEDs light up.
  2. The following piece of code should run without errors:
from PSL import sciencelab
I = sciencelab.connect()
capacitance = I.multimeter.measure_capacitance()
print(capacitance)

Communication

Wherever we interact, we strive to follow the FOSSASIA Code of Conduct.

Contributing

See doc/development.rst to get started.

License

This library is free and open source software licensed under the GPL v3. The copyright is owned by FOSSASIA.

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

pslab-2.0.0.dev1.tar.gz (78.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pslab-2.0.0.dev1-py3-none-any.whl (103.2 kB view details)

Uploaded Python 3

File details

Details for the file pslab-2.0.0.dev1.tar.gz.

File metadata

  • Download URL: pslab-2.0.0.dev1.tar.gz
  • Upload date:
  • Size: 78.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

File hashes

Hashes for pslab-2.0.0.dev1.tar.gz
Algorithm Hash digest
SHA256 6ffab6fb087c8db02a68e1400667e572ffab9d33940167359c406cea6f24b302
MD5 169863f689ffc1bb81248438d333c7e7
BLAKE2b-256 8999b96f98e15ba3519f65ef0fea72ec6842a2fda65f2fb1a3f7b60a50e573f0

See more details on using hashes here.

File details

Details for the file pslab-2.0.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: pslab-2.0.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 103.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

File hashes

Hashes for pslab-2.0.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 366580aab9572590fdba40498a1b4079a50d7b1554d1f326d62919fb3acab393
MD5 70724d407dd50150634238888277ce2e
BLAKE2b-256 d5a5579636bca37908be8c6166e10d4c00037602c72f3b18ed1ef21d284772c3

See more details on using hashes here.

Supported by

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