You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository hosts the python library for communicating with the Pocket Science Lab open hardware platform (PSLab). This can be installed on a Linux or Windows system. Using this library you can communicate with the PSLab using simple Python code. The Python library is also used in the PSLab desktop application 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 frequency counter, a programmable voltage, current source and even a component to control robots with up to four servos. The website is at: https://pslab.io
11
+
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.
12
+
13
+
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.
14
+
15
+
For more information see [https://pslab.io](https://pslab.io).
12
16
13
17
## Buy
14
18
15
19
* You can get a Pocket Science Lab device from the [FOSSASIA Shop](https://fossasia.com).
16
20
* More resellers are listed on the [PSLab website](https://pslab.io/shop/).
17
21
18
-
## Communication
19
-
20
-
* The PSLab [chat channel is on Gitter](https://gitter.im/fossasia/pslab).
21
-
* Please also join us on the [PSLab Mailing List](https://groups.google.com/forum/#!forum/pslab-fossasia).
22
-
23
22
## Installation
24
23
25
24
pslab-python can be installed from PyPI:
26
25
27
26
$ pip install pslab
28
27
29
-
**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 from the installation directory to /etc/udev/rules.d/.
28
+
**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](https://github.com/fossasia/pslab-python/blob/development/99-pslab.rules) should be copied to /etc/udev/rules.d/.
30
29
31
30
**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](https://github.com/fossasia/pslab-desktop) and follow the instructions of the Readme in that repo.
32
31
33
32
34
-
####Validate installtion
33
+
## Validate installation
35
34
36
35
1. Plug in the PSLab device and check that both the LEDs light up.
37
-
2.Run the following piece of code in a Python interpreter:
36
+
2.The following piece of code should run without errors:
38
37
```
39
38
from PSL import sciencelab
40
39
I = sciencelab.connect()
41
40
capacitance = I.get_capacitance()
42
41
print(capacitance)
43
42
```
44
43
45
-
## How to Build the Documentation Website
44
+
## Communication
46
45
47
-
First install sphinx by running following command
46
+
* If you encounter any bugs, please file them in our [issue tracker](https://github.com/fossasia/pslab-python/issues).
47
+
* You can chat with the PSLab developers on [Gitter](https://gitter.im/fossasia/pslab).
48
+
* There is also a [mailing list](https://groups.google.com/forum/#!forum/pslab-fossasia).
48
49
49
-
pip install -U Sphinx
50
+
Wherever we interact, we strive to follow the [FOSSASIA Code of Conduct](https://fossasia.org/coc/).
50
51
51
-
Then go to pslab/docs and run the following command
52
+
## Contributing
52
53
53
-
$ make html
54
+
See [doc/development.rst](https://github.com/fossasia/pslab-python/blob/development/docs/development.rst) to get started.
54
55
55
56
## License
56
57
57
-
The library is free and open source software licensed under the [GPL v3](LICENSE). The copyright is owned by FOSSASIA.
58
+
This library is free and open source software licensed under the [GPL v3](https://www.gnu.org/licenses/gpl-3.0.en.html). The copyright is owned by FOSSASIA.
0 commit comments