This dashboard was developed with the aiming to create a more user-friendly interface to use pneumatron. Pneumatron is an apparatus develop by Pereira et al. 2020 to automatically generate xylem embolism vulnerability curve from pneumatic-method (Pereira et al. 2016). With this dashboard, you will be able to track currently running curves and analyze your experiments.
The user needs to have Arduino IDE, R and R Studio installed.
In order for your computer to read the ESP8266 through a communication port, it is necessary to install the ESP8266 board in the Arduino IDE. Here are the steps to do this:
- Open the Arduino IDE.
- Go to File > Preferences.
- In the "Additional Board Manager URLs" field, enter the following JSON link:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
. - Click OK to save your changes and return to the main screen.
- Now go to Tools > Board > Board Manager.
- Look for the option "esp8266 by ESP8266 Community" and click the Install button.
- After the installation, your computer will automatically create a communication port for ESP8266 boards.
- Clone/Download this repository to your local machine.
- Open the file pneumatron.Rproj, them you will be at R Studio interface.
- Within R Studio platform open the R Script Run.R.
- Execute line #1
source("scripts/required_libs.R")
to install all dependent libraries and to create sub folders.
- Open the file pneumatron.Rproj, them you will be at R Studio interface.
- Within R Studio platform open the R Script Run.R.
- Execute line #5
serial::listPorts()
to discover your Pneumatron/receiver COM port. Tip: first execute this line with your device unattached from USB port, then attached again and execute this line one more time. The port's name from your device appears only when it is connected. - In line #7 specify your device(s) COM port name. Ex:
c("COM1")
orc("COM1", "COM2")
. - Execute line #7.
- In line #8 specify your database file name. This is where your raw data will be saved. You can leave it as suggested or specify a name for each experiment.
- Execute line #8.
- Execute line #11.
Now your receiver is collecting data. When you turn on your Pneumatron, data will be automatically saved on a specified database file.
There is also a python3 script in scripts/00-py_read_pneumatron.py
that you could use to acquire your data.
- Execute line #14
- A message containing a web address will be displayed. Ex:
Listening on http://127.0.0.1:6098
. - Access the address displayed in that message in your preferred web browser. All next steps will be in your browser.
- In
Databases
tab, pressFile Select
to select your database file. This file name was specified in data acquisition step 4, and is saved insideraw_pneumatron
folder. - Go to
Running Experiments
tab to track your current data.