Skip to content

Commit

Permalink
Merge pull request #49 from Ritika8081/main
Browse files Browse the repository at this point in the history
software documentation for BioAmp Visualizer
  • Loading branch information
bhawnasehgal authored Aug 29, 2024
2 parents 70d0c8f + 8b43201 commit a0e55cf
Show file tree
Hide file tree
Showing 41 changed files with 440 additions and 2 deletions.
110 changes: 110 additions & 0 deletions guides/contribute/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
.. _upsidedownlabs_contribute:

Contribute to Documentation
#############################

This guide outlines the process for contributing to our documentation.

Prerequisites
=============

- .. raw:: html

<a href="https://www.python.org/downloads/" target="_blank">Python</a>
- .. raw:: html

<a href="https://git-scm.com/downloads" target="_blank">Git</a>

Setup Steps
==================

1. Clone the repository:

.. code-block:: bash
git clone https://github.com/upsidedownlabs/upsidedownlabs.github.io.git
2. Navigate to the cloned directory:

.. code-block:: bash
cd upsidedownlabs.github.io
3. Creating virtual environment

- Windows:

.. code-block:: bash
py -m venv myenv
myenv\Scripts\activate
- Linux:

.. code-block:: bash
python3 -m venv myenv
source myenv/bin/activate
4. Install dependencies:

.. code-block:: bash
pip install -r requirements.txt
For Windiows
======================

1. Install Python from the official website if not already installed.
2. Build the documentation:

.. code-block:: bash
sphinx-autobuild <source-dir> <output-dir>
.. warning::
The source directory and output directory must be different.

Example:

.. code-block:: bash
sphinx-autobuild . ../build/html
.. note::

Run this command if recent updates are not visible, this will clean the cache memory and rebuild the documentation.

.. code-block:: bash
.\make.bat clean
Linux-Specific Steps
====================

1. Ensure Python is installed.
2. Build the documentation:

.. code-block:: bash
make livehtml
Making Changes
==============

1. Locate the relevant ``.rst`` files in the repository.
2. Make your desired edits.
3. Save the files to see live changes on your local server.

.. note::

Run this command if recent updates are not visible, this will clean the cache memory and rebuild the documentation.

.. code-block:: bash
make clean
10 changes: 9 additions & 1 deletion guides/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ In this section, you'll find easy-to-follow guides that will help you while usin
.. toctree::
:hidden:
:maxdepth: 1
:caption: Hardware Guides

usage-guides/skin-preparation/index
usage-guides/using-bioamp-bands/index
usage-guides/using-gel-electrodes/index
usage-guides/using-gel-electrodes/index

.. toctree::
:hidden:
:maxdepth: 1
:caption: Contribution Guide

contribute/index
Binary file modified requirements.txt
Binary file not shown.
119 changes: 119 additions & 0 deletions software/bioamp-visualizer/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
.. _bioamp-visualizer:

Getting Started
###################

Overview
********

The `BioAmp Visualizer <https://docs.upsidedownlabs.tech/BioSignal-Recorder-Web/>`_ is a web application designed for real-time signal visualization, particularly tailored for bio-potential signals. This tool serves as an advanced alternative to the standard Arduino serial plotter, offering enhanced functionality for researchers and enthusiasts working with BioAmp hardware. The application provides a user-friendly interface for displaying time-series data streams, with features including multi-channel plotting, adjustable graph speed, the ability to pause, resume, record and save data in CSV format. By combining these capabilities, the BioAmp Visualizer aims to streamline the process of analyzing and interpreting bio-potential signals.

.. figure:: media/bioamp_visualizer_signals.*
:align: center
:alt: BioAmp Visualizer signal

Software Requirements
*********************

* Before using the BioAmp Visualizer, download the `Arduino IDE <https://www.arduino.cc/en/software>`_ to upload Arduino sketches to your development board.
* Any :ref:`bioamp-visualizer-browsers-compatibility`

Hardware Requirements
*********************

To use BioAmp Visualizer, you need:

* A USB cable (Type depends on board)
* Any board from the given table

Compatible Boards:

* Arduino Uno
* Arduino Nano
* Maker Uno

Signal Acquisition
******************

The image below shows a breif preview of connections to device and body, for detailed description we recommend to visit relevant `hardware documentation <https://docs.upsidedownlabs.tech/hardware/>`_.

.. figure:: media/bioamp_visualizer_signal_aquisition.*
:alt: Signal Acquisition
:align: center

Signal Acquisition

.. note::
For detailed information about signal acquisition hardware, refer to our `hardware documentation <https://docs.upsidedownlabs.tech/hardware/>`_.

How to Use BioAmp Visualizer
****************************

Uploading the Code
========================

To use BioAmp Visualizer:

1. Connect the Arduino Board to your laptop using the USB cable.
2. Copy and paste `Arduino Firmware <https://github.com/upsidedownlabs/BioSignal-Recorder-Web/blob/main/ArduinoFirmware/ArduinoFirmware.ino>`_ into the Arduino IDE.
3. Select your board under the ``Board`` > ``Arduino AVR`` option in the tools menu.
4. Choose the correct COM port in same tools menu (the one that disappears when you disconnect the board).
5. Upload the code and open the `BioAmp Visualizer <https://docs.upsidedownlabs.tech/BioSignal-Recorder-Web/>`_.

Using the Software
===================

1. Click the ``Connect`` button to establish a connection with the Arduino and start streaming.
2. You can click the ``Record`` button to start recording data into a CSV file.
3. To save the recorded data, click the ``Save`` button.

.. figure:: media/bioamp_visualizer_connection.*
:alt: Port selection
:align: center

Port selection

.. figure:: media/bioamp_visualizer_signals.*
:alt: BioAmp Visualizer Signals
:align: center

BioAmp Visualizer Signals

.. list-table::
:widths: 1 3
:header-rows: 1

* - Icons
- Description
* - .. figure:: media/bioamp_visualizer_connect.*
:alt: BioAmp Visualizer Connect
:align: left
- Connect
* - .. figure:: media/bioamp_visualizer_start.*
:alt: BioAmp Visualizer start
:align: left
- Start
* - .. figure:: media/bioamp_visualizer_stop.*
:alt: BioAmp Visualizer stop
:align: left
- Stop
* - .. figure:: media/bioamp_visualizer_record.*
:alt: BioAmp Visualizer record
:align: left
- Record
* - .. figure:: media/bioamp_visualizer_saving.*
:alt: BioAmp Visualizer save
:align: left
- Save

.. _bioamp-visualizer-browsers-compatibility:

Compatible Browsers
*******************

The web application is designed to ensure compatibility with the Web Serial API, which is essential for its functionality. The Web Serial API enables web applications to communicate with serial devices, such as microcontrollers and other hardware interfaces, directly from the browser.

Currently, the Web Serial API is supported by the of Google Chrome, Microsoft Edge and Opera. If the user's browser does not support this API, the application will display a message informing them of the incompatibility and suggesting the use of a supported browser.

For more detailed information on browser compatibility and implementation details, please refer to the `MDN Web Docs on the Web Serial API <https://developer.mozilla.org/en-US/docs/Web/API/Web_Serial_API>`_.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a0e55cf

Please sign in to comment.