Pocket Science Labs Documentation

Introduction

PSLab Gitter PSLab Mailing List PSLab Twitter

Here you find step by step instructions for Pocket Science Lab (PSLab) using the PSLab hardware and Android app. Please help by building up this website.

What’s PSLab

Hardware description

The Android APP

How to use the Android APP

  • To use any feature of the PSLab Android application first follow these 2 steps:
    1. Connect PSLab board with your Android smartphone using OTG cable
    2. Open PSLab Android application

Overview of the Android app

Save Configs in the Android app wave generator

How to use Robotic Arm controller in the Android app

Desktop APP

How to use the desktop APP

  • To use any feature of the PSLab Desktop application first follow these 2 steps:
    1. Connect PSLab board with your Desktop using USB cable
    2. Open <a href=”https://github.com/fossasia/pslab-desktop”>PSLab Desktop application</a>

You will be presented with a home screen like this.

PSLab Desk Home screen

Click on the instrument you would like to use.

PSLab Python Library

Intro to the Python Library

How to install the Python Library

How to use the library: examples

Power Source

What’s a Power Source

Experiment: power your LED with PSLab

Using the Multimeter

What’s a Multimiter

How to use it

  1. To measure volatage, connect PV1, PV2, PV3 to CH1, CH2, CH3 pins on PSLab board respectively and turn knob to either of the channel labels in the Multimeter instrument in PSLab Android application to see the volatage at corresponding PV pins.
  2. To measure resistance, connect desired resistor between RES and GND pin on PSLab board and then turn the knob to resistance symbol in PSLab Android application Multimeter instrument.
  3. To measure capacitance, connect desired capacitor between CAP and GND pin on PSLab board and then turn the knob to resistance symbol in PSLab Android application Multimeter instrument.
  4. Frequency and count pulse can be measured by connecting any desired element between ID (or LA) and GND pins on PSLab board and turning knob to respective label in PSLab Android application Multimeter instrument.

Experiment: Measuring Voltage (check your battery)

Experiment: Measuring Resistance

Experiment: Measuring Capacitance

Using the Oscilloscope

What is an oscilloscope

An instrument used to measure voltage changes over a period of time in real time.

How to use it

  1. Connect SI1 and SI2 pins on PSLab board to CH1 and CH2 pins respectively for Analog mode or connect SQ1,SQ2,SQ3 pins to CH1, CH2, CH3 pins respectively for Digital mode.
  2. Go to Wave Generator instrument in the PSLab Android application.
  3. Select either Digital or Analog mode.
  4. Set desired frequency, phase and duty(in case of Digital mode) values for Wave1 and Wave2 (Analog mode) or SQ1,SQ2,SQ3 (Digital mode).
  5. Exit from Wave Generator instrument and got to Oscilloscope instrument in PSLab Android application.
  6. Select either or all from the CH1, CH2, CH3 checkbox to see waves generated at each channel.
  7. Change timebase of the waves from the Trigger and Timebase section on the left control panel.
  8. Plot waves against each other from the XY-Plot section on the left control panel.
  9. View results of Fourier transform or curve fitting from the Data Analysis section on the left control panel.
  10. Use in built microphone of the smartphone as input select IN-BUILT MIC option on the bottom panel on the main screen.
  11. Use record button to record currently generated waves and store the data in a CSV file and play it back at will.

In the desktop app you will see something like this:

PSLab Desk Oscilloscope
  1. Options used to select the active channels and the range of measurement.
  2. Timebase adjustments and trigger options.
  3. Fourier analysis and sin/squre fitting options.
  4. XY plotting settings.
  5. Graph area.
  6. Record button.

Experiment: Measure Sound

Wave Generator

Introduction to Waves

How to use the Wave Generator

  1. Connect SI1 and SI2 pins on PSLab board to CH1 and CH2 pins respectively for Analog mode or connect SQ1,SQ2,SQ3 pins to CH1, CH2, CH3 pins respectively for Digital mode.
  2. Go to Wave Generator instrument in the PSLab Android application.
  3. Select either Digital or Analog mode.
  4. Set desired frequency, phase and duty(in case of Digital mode) values for Wave1 and Wave2 (Analog mode) or SQ1,SQ2,SQ3 (Digital mode).
  5. Select either sine or triangular wave shape for SI1 and SI2 in analog mode.
  6. Use Play button to directly view set waves in Oscilloscope or Logical Analyzer
  7. Use Save button to save the set wave configs and use these configs later.

Experiment: Generate Sounds with Waves

Experiment: Blinking LEDs with the wave generator

Digital Sensors

What are Digital Sensors

Experiment: Lux sensors, Measure Light Intensity

Experiment: Temperature and Humidity

Experiment: Barometer

Analog Sensors

What are Analog Sensors

Experiment: Motion Sensor, turn on music

Experiment: Dust Sensor

Logic Analyzer

What’s a Logic Analyzer

Experiment: Digital Circuit Analysis

Experiment: Analyse signals received by an i2c sensor

  1. Measure four signals at the same time

Servos

Introduction to motors

Servos

Experiment: How to move servos with PSLab

Experiment: The Robot Arm Kit

Collaborate with PSLab!

Pocket Science Lab Experiments

The PSLab repository allow contributors from anyone. This is how to create experiments for Pocket Science Lab..

Instructions

  1. Fork the repo

2. Go to the ` notex <https://www.notex.ch>`_, an `open-source

Template for expermients

<Title / Question of Experiment>

Learning Objective

  1. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  2. Cras porttitor tortor pharetra, faucibus diam a, elementum velit.
  3. Vivamus id est tristique, mattis nisl nec, porttitor ligula.
  4. Morbi non justo dignissim, ultrices dui nec, ultrices ex.

Required Components

Picture of Components

Picture of Components

  Component Name Amount Needed
1 Lorem 1
2 Ipsum 5
3 Dolor 10
4 Sit 15
5 Amet 20

Required Instruments

Oscilloscope, Multimeter, Logic Analyzer

Schematics

Circuit Diagram
Circuit Diagram

Circuit Diagram

Breadboard Diagram
Breadboard Diagram

Breadboard Diagram

Step-By-Step Tutorial

Step Instruction Picture Instruction
1 Ut convallis nec libero ut tempor. Step X
2 Ut convallis nec libero ut tempor. Step X
3 Ut convallis nec libero ut tempor. Step X

Expected Result

|Expected\_Result.gif| ### What to observe - Curabitur eu felis interdum metus finibus auctor. - Quisque et nunc nec ligula dictum porttitor vitae ut magna. - Duis hendrerit neque quis sollicitudin pellentesque. - Maecenas in erat ac justo sollicitudin volutpat. - Sed lacinia ipsum eu quam dignissim, a tristique neque molestie.

Videos

PSLab - http://pslab.io

Troubleshoot

Suspendisse cursus sem vitae risus mollis laoreet.
  1. Nulla condimentum mi eu ullamcorper lobortis.
  2. In nec urna tristique, efficitur justo non, pellentesque velit.
  3. Aenean sit amet odio volutpat velit pharetra elementum non ut tortor.
  4. Duis a velit a leo vestibulum faucibus.
  5. Morbi quis nibh at nibh pharetra ultricies sagittis vitae libero. ###### Back to troubleshoot
Morbi a quam et ex pretium lobortis.
  1. Nulla condimentum mi eu ullamcorper lobortis.
  2. In nec urna tristique, efficitur justo non, pellentesque velit.
  3. Aenean sit amet odio volutpat velit pharetra elementum non ut tortor.
  4. Duis a velit a leo vestibulum faucibus.
  5. Morbi quis nibh at nibh pharetra ultricies sagittis vitae libero. ###### Back to troubleshoot
Mauris lacinia neque nec interdum feugiat.
  1. Nulla condimentum mi eu ullamcorper lobortis.
  2. In nec urna tristique, efficitur justo non, pellentesque velit.
  3. Aenean sit amet odio volutpat velit pharetra elementum non ut tortor.
  4. Duis a velit a leo vestibulum faucibus.
  5. Morbi quis nibh at nibh pharetra ultricies sagittis vitae libero. ###### Back to troubleshoot

Integrated Project Ideas

  • Create Flying bird link

Inertial Measurement Unit (IMU)

What’s an IMU

Experiment: Get the data out of an IMU

Universal Asynchronous Receiver-Transmitter (UART)

What’s UART

Experiment: Using UART based sensors, GPS


Communications

How to add WiFi to PSLab

How to add Bluetooth to PSLab

Programming PSLab

Customize the Firmware

Create your own embedded rules

  1. If/Else example with sensor light