Ocean Sense

Summary

Ocean Sense is an ocean-sensing platform which can be placed on a buoy or other ocean science apparatus and sent out to sea for about one week at a time. Many ocean science experiments are run off of buoys or other devices that stand alone in the field for an extended period of time. This board serves as a packaged sensor set that measures and logs three local conditions during the experiments: temperature, humidity, and acceleration. The board sits ontop of a buoy or equivalent flotation device for the duration of an experiment and then is retrieved. To travel into the depths of the ocean, an appropriate case will need to be engineered.

Motivation

During the summer of 2020, I was a Summer Student Fellow at Woods Hole Oceanographic Institution (WHOI). While working on a project to automatically detect dispersive signals as a member of the Ocean Acoustics & Signals Lab, I got to learn about the wide variety of science and engineering that pushes the development of ocean-centered technology. When it came time to begin my project during the fall 2020 academic semester in the Olin College class Microcontrollers for the Real World, I decided to create a platform to acompany the various ocean science experiments I learned about over the summer and measure the environmental conditions present throughout.

Project Description

Above is a labeled diagram of the Ocean Sense platform. The system is powered by two 18650 lithium-ion batteries in parellel whose nominal voltage of 3.6 V is regulated to 3 V. After the board is connected to power, the white LED will hold solid as the system turns on and will then blink every two seconds as the system in taking data.

Every five minutes, the system will log both temperature and humidity data which is written to the micro SD card every hour. Every hour the system logs accelerometer data for a burst of five seconds and then logs the data immediatly. After the system has been recollected simply remove the batteries and read the micro SD card using a computer to reveal the files LOGA.CSV, which contains a timestamp and the X, Y, Z components of acceleration and LOGTH.CSV, which contains a timestamp and temperature and humidity data.

There is also a CONFIG.TXT file which allows the user to set the date and time on the real-time clock breakout. There is a flag in the file which tells the system whether to apply it or not. A sample configuration file content can be seen below:

DATE=Jul 31 2020 
TIME=20:22:39
APPLY=0

This example configuration file prepared the system to set the clock to July 31st 2020 at the time 20:22:39, but does not apply these settings because the APPLY flag is set to 0 rather than 1.

Lastly, for developers who wish to customize the board, there is an option to connect an additional I2C sensor. All the code and KiCad files are available in the GitHub repository to build off, and a bill of materials (BOM) can be found below.


Part Value Part Number Vendor Cost Quantity
Ceramic Capacitor 0.1uF BC1084CT-ND DigiKey $ 0.04256 4
Tantalum Capacitor 10uF 399-3548-ND DigiKey $ 1.41 1
LED -- 1516-QBL7IW60D-WW-ND DigiKey $ 0.59 1
18650 Battery Socket -- 36-1049-ND DigiKey $ 5.65 1
4-Pin Connector -- WM4202-ND DigiKey $ 0.27 1
Resistor 4.7kΩ CF18JT4K70CT-ND DigiKey $ 0.00589 1
Pro Micro - 3.3V/8MHz -- -- SparkFun $ 17.95 1
SparkFun Humidity and Temperature Sensor Breakout - Si7021 -- -- SparkFun $ 7.95 1
SparkFun Triple Axis Accelerometer Breakout - MMA8452Q -- -- SparkFun $ 10.49 1
SparkFun microSD Transflash Breakout -- -- SparkFun $ 4.50 1
SparkFun Buck-Boost Converter -- -- SparkFun $ 9.95 1
Adafruit DS3231 Precision RTC Breakout -- -- Adafruit $ 13.95 1
Murata VTC5A 18650 2600 mAh 25 A -- -- Sony $ 6.99 2
12-Pin Socket -- PPPC121LFBN-RC DigiKey $ 0.81 2
PCB -- -- JLCPCB $ 7.80 1
Total Cost: $ 96.23

Because one of the requirements of the Ocean Sense system is to take data for a week at a time, I carried out power consumption calculations during the design phase to ensure that the system would be capable of doing so. Considering the worst case scenario for each component of the board, according to the datasheet of each integrated circuit (IC), the current draw of each are as follows:

Summed, and assuming that the current spikes from data collection are brief and intermittent, the total approximate current draw is 15.08 mA. Given that the system is run off of two 2600 mAh batteries, this provides a run time of approximately 14 days. I measured a current flow of 14.80 mA through the trace from the batteries to the voltage regulator, verifying the approximate calculations that I did based on the datasheets.

Sample Data

Below is an example of temperature and humidity data collected from the Ocean Sense board at room temperature, then moved into a poorly cooled fridge, and then moved back to room temperature.


Below is an example of acceleration data collected during one of its five second bursts. The board was sitting still at this moment which it measures 0 g of accleration in the X and Y directions and 1 g of acceleration along the Z axis.

The CSV files with the original data included in the above plots can be found in LOGA.CSV and LOGTH.CSV.

Schematic

PCB Layout

Source: MarkG98 / Ocean_Sense