Skip to content

2. Installation

Janata Lab edited this page Nov 15, 2023 · 4 revisions

Arduino IDE and Libraries

  1. Download the Arduino IDE from https://www.arduino.cc/en/software.
  2. Create an Arduino directory that will contain the libraries directory.
  3. Launch Arduino
  4. Tools->Manage Libraries...
    1. Install the EnableInterrupt library
    2. Install WaveHC and its dependencies (NOTE: WaveHC 1.0.3 does not work. The maximum compatible version of WaveHC is 1.0.1)

GEM git repo

  1. Clone the git repo into a desired location: git clone [email protected]:janatalab/GEM.git. If you are unfamiliar with the process of cloning, visit our cloning GEM for beginners page, then return back here.
  2. If necessary, install Python3.
  3. Create a virtualenv: `python3 -m venv <path_to_virtualenv>
  4. Activate the virtualenv: source <path_to_virtualenv>/bin/activate or source <path_to_virtualenv>/bin/activate.csh
  5. Navigate to the GUI folder in the git repo, e.g. cd git/GEM/GUI
  6. Install the Python requirements: pip install -r requirements.txt

Link to GEM libraries

  1. From within the Arduino/libraries directory, create a symbolic link (alias) to the GEM library, e.g. ln -s ~/git/GEM/GEM

Proceed to the Compiling, Loading, and Running Sketches page.

Julia (for reading the data files)

  1. Download Julia from https://julialang.org/downloads/
  2. Invoke Julia in one of several ways, as described here: https://en.wikibooks.org/wiki/Introducing_Julia/Getting_started
  3. Install the required JSON package: import Pkg; Pkg.add("JSON")

NOTE: The original version of Julia was 0.6. As of Julia 1.0, the file reading function read() appears to have changed, necessitating some changes to GEMDataReader.jl