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 either install a udev rule by running 'pslab install' as root, or be part of the 'dialout' group in order for pslab-python to be able to communicate with the PSLab device.

Note: Windows users who use the PSLab v6 device must download and install the CP210x Windows Drivers from the Silicon Labs website in order for pslab-python to be able to communicate with the PSLab device.

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 pslab import ScienceLab
psl = ScienceLab()
capacitance = psl.multimeter.measure_capacitance()
print(capacitance)

Communication

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

Contributing

See CONTRIBUTING.md to get started.

License

Copyright (C) 2014-2021 FOSSASIA

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

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-4.0.1.tar.gz (126.9 kB view details)

Uploaded Source

Built Distribution

pslab-4.0.1-py3-none-any.whl (122.9 kB view details)

Uploaded Python 3

File details

Details for the file pslab-4.0.1.tar.gz.

File metadata

  • Download URL: pslab-4.0.1.tar.gz
  • Upload date:
  • Size: 126.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pslab-4.0.1.tar.gz
Algorithm Hash digest
SHA256 8a4d6834ba1b7af5481f5f17eb5ce6f2f87e3cecda3babb85dcd4f06ded167b1
MD5 14436348f3b17c78055e9c169eed8983
BLAKE2b-256 4180cc02ad8b5f89d8585ed202074dacb26d95c95ea6fbea20909cade535b5b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pslab-4.0.1.tar.gz:

Publisher: publish.yml on fossasia/pslab-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pslab-4.0.1-py3-none-any.whl.

File metadata

  • Download URL: pslab-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 122.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pslab-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0694ca286a93c3bba38ed9dcd7ed24ddabc9f005b886164934a9b26c54855e07
MD5 fc87ec5663b52fb02bdc56676072f178
BLAKE2b-256 f88e7010e8ed3cf76e7686332dc3d20ca3136e7fd99a84c96ed69469160728d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pslab-4.0.1-py3-none-any.whl:

Publisher: publish.yml on fossasia/pslab-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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