No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
bootrun.py
getdata.py
ready.py

README.md

lobstas

Code for collecting data with the Low-cost Benthic Sensing Trap-Attached System (LoBSTAS)

Installation

Intall picamera library (https://github.com/waveform80/picamera)

Install neopixel library if you are using the LED ring (https://github.com/jgarff/rpi_ws281x)

To enable bootrun.py on boot, add the following lines to /etc/rc.local before exit 0

exec 2>> /home/pi/bootlog.log       # add stderr from rc.local to a log file
exec 1>&2                           # add stdout to same file
sudo python /home/pi/bootrun.py &   # ensure file path is correct

exit 0

Sensor calibration and setup

This is for the Atlas Scientific Dissolved Oxygen sensor.

If the sensor is not a steady blue, it needs to be set to i2c mode:

  1. Disconnect all wires
  2. Connect PGND to TX
  3. Connect VCC and ground to board, and wait for LED to turn blue
  4. Disconnect power and reconnect all wires

To calibrate to atmospheric concentration:

from getdata import dosensor
dosensor().query("CAL")