Skip to content

Commit d0e5af7

Browse files
authored
Update README.md
1 parent d362413 commit d0e5af7

File tree

1 file changed

+21
-34
lines changed

1 file changed

+21
-34
lines changed

README.md

Lines changed: 21 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
# PSLab-python
1+
# PSLab Python Library
22

3-
The Pocket Science Lab from FOSSASIA <https://pslab.io>
3+
The Python library for the [Pocket Science Lab](https://pslab.io) from FOSSASIA.
44

55
[![Build Status](https://travis-ci.org/fossasia/pslab-python.svg?branch=development)](https://travis-ci.org/fossasia/pslab-python)
66
[![Gitter](https://badges.gitter.im/fossasia/pslab.svg)](https://gitter.im/fossasia/pslab?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
77
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ce4af216571846308f66da4b7f26efc7)](https://www.codacy.com/app/mb/pslab-python?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=fossasia/pslab&amp;utm_campaign=Badge_Grade)
88
[![Mailing List](https://img.shields.io/badge/Mailing%20List-FOSSASIA-blue.svg)](https://groups.google.com/forum/#!forum/pslab-fossasia)
99
[![Twitter Follow](https://img.shields.io/twitter/follow/pslabio.svg?style=social&label=Follow&maxAge=2592000?style=flat-square)](https://twitter.com/pslabio)
1010

11-
This repository hosts the python library for communicating with PSLab. This can be installed on a linux pc/raspberry pi. With this, one can communicate with the hardware using simple python code.
11+
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
1212

13-
The goal of PSLab is to create an Open Source hardware device (open on all layers) that can be used for experiments by teachers, students and citizen scientists. Our tiny pocket lab provides an array of sensors for doing science and engineering experiments. It provides functions of numerous measurement devices including an oscilloscope, a waveform generator, a frequency counter, a programmable voltage, current source and as a data logger. Our website is at: https://pslab.io
14-
15-
### Communication
13+
## Communication
1614

1715
Please join us on the following channels:
1816
* [Pocket Science Channel](https://gitter.im/fossasia/pslab)
1917
* [Mailing List](https://groups.google.com/forum/#!forum/pslab-fossasia)
2018

21-
### Installation
19+
## Installation
2220

2321
To install PSLab on Debian based GNU/Linux system, the following dependencies must be installed.
2422

25-
#### Dependencies
23+
### Dependencies
2624

2725
* Python 3.4 or higher [Link to Official download page](https://www.python.org/downloads/windows/)
2826
* Pip &nbsp; **Support package installer**
@@ -33,29 +31,27 @@ To install PSLab on Debian based GNU/Linux system, the following dependencies mu
3331
**Note**
3432
*If user is only interested in using PSLab as an acquisition device without a display/GUI, only one repository [pslab-python](https://github.com/fossasia/pslab-python) needs to be installed. If you like a GUI, try installing [pslab-desktop](https://github.com/fossasia/pslab-desktop) following the instructions provided in that repository Readme file*
3533

34+
### How To Install on Linux
3635

37-
##### To install, cd into the directories
36+
cd into the directories
3837

3938
$ cd <SOURCE_DIR>
4039

4140
and run the following
4241

4342
$ sudo make clean
44-
43+
4544
$ sudo make
46-
45+
4746
$ sudo make install
4847

4948
Now you are ready with the PSLab software on your machine :)
5049

50+
### How to Install on Windows
5151

52-
#### Windows
53-
54-
##### Instructions
55-
56-
Step 1: Install the latest Python version on your computer and configure `PATH` variable to have both Python installation directory and the Scripts directory to access `pip` tools.
52+
**Step 1**: Install the latest Python version on your computer and configure `PATH` variable to have both Python installation directory and the Scripts directory to access `pip` tools.
5753

58-
> In windows, Python is installed in `C:` drive by default. We can set `$PATH` by opening the **Environment variables** dialog box by following the steps below;
54+
> In Windows, Python is installed in `C:` drive by default. We can set `$PATH` by opening the **Environment variables** dialog box by following the steps below;
5955
>
6056
> 1. [Right click on My Computer]
6157
> 2. Select "Properties"
@@ -65,38 +61,32 @@ Step 1: Install the latest Python version on your computer and configure `PATH`
6561
> 6. Look for "**_PATH_**" in "System Variables" section and click on it and press "Edit" button
6662
> 7. To the end of "Variable value" text box, append "`C:\Python34\;C:\Python34\Scripts\;`" (without quotes and `34` may differ depending on the python version installed. It could be 35, 37 ...)
6763
> 8. Click "OK" twice to save and move out from path windows
68-
>
69-
70-
Step 2: Open up command prompt and execute the following commands to install the required dependencies.
7164
65+
**Step 2**: Open up command prompt and execute the following commands to install the required dependencies.
7266

7367
$ pip install pyserial
7468

7569
$ pip install numpy
7670

77-
##### Validate
71+
#### Validate
7872

7973
1. Download the PSLab-Python library from this repository and extract it to a directory.
8074
2. Browse in to that directory and create a new file named `test-pslab-libs.py`
8175
3. Paste the following code into that file and save it.
82-
8376
```
8477
from PSL import sciencelab
8578
I = sciencelab.connect()
8679
capacitance = I.get_capacitance()
8780
print(capacitance)
8881
```
89-
9082
4. Plug in the PSLab device and check if both the LEDs are turned on.
9183
5. Now run this file by typing `python test-pslab-libs.py` on a command prompt and observe a numerical value printed on the screen along with PSLab device version and the port it is connected to.
9284

93-
-----------------------
94-
95-
#### Development Environment
85+
### How to Setup the Development Environment
9686

97-
To set up the development environment, install the packages mentioned in dependencies. For building GUI's Qt Designer is used.
87+
To set up the development environment, install the packages mentioned in dependencies. For building GUI's you can use Qt Designer or create a frontend using any other compatible technology. The PSLab desktop app is using Electron for example.
9888

99-
## Steps to build documentation
89+
## How to Build the Documentation Website
10090

10191
First install sphinx by running following command
10292

@@ -106,9 +96,6 @@ Then go to pslab/docs and run the following command
10696

10797
$ sudo make html
10898

109-
### Blog posts related to PSLab on FOSSASIA blog
110-
* [Installation of PSLab](http://blog.fossasia.org/pslab-code-repository-and-installation/)
111-
* [Communicating with PSLab](http://blog.fossasia.org/communicating-with-pocket-science-lab-via-usb-and-capturing-and-plotting-sine-waves/)
112-
* [Features and Controls of PSLab](http://blog.fossasia.org/features-and-controls-of-pocket-science-lab/)
113-
* [Design your own Experiments](http://blog.fossasia.org/design-your-own-experiments-with-pslab/)
114-
* [New Tools and Sensors for Fossasia PSLab and ExpEYES](http://blog.fossasia.org/new-tools-and-sensors-fossasia-pslab-and-expeyes/)
99+
## License
100+
101+
The library is free and open source software licensed under the [GPL v3](LICENSE). The copyright is owned by FOSSASIA.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy