Skip to content

NorthernWidget-Skunkworks/Walrus_Library

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

Summary

Members Descriptions
class Walrus Class to interface with the Walrus submersible temperature and presure sensor.

class Walrus

Class to interface with the Walrus submersible temperature and presure sensor.

The Walrus is an encapsulated submersible pressure and temperature sensor intended for water-level or barometric monitoring.

DOI

Summary

Members Descriptions
public Walrus() Instantiate Walrus object.
public uint8_t begin(uint8_t Address_) Begin communications with the Walrus using a prescribed address.
public float getTemperature(uint8_t Location) Return calculated temperature from Walrus.
public float getTemperature() Return calculated temperature from sensor, using a predefined offset. WHAT DOES THIS OFFSET DO?
public float getPressure() Return calculated pressure from sensor.
public String getHeader() Return header.
public String getString() Return measurement data as a string.

Members

public Walrus()

Instantiate Walrus object.

public uint8_t begin(uint8_t Address_)

Begin communications with the Walrus using a prescribed address.

Parameters

  • Address_ I2C address of Walrus DOES NOT YET USE A VARIABLE ADDRESS! THIS DEFAULT ADDRESS CURRENTLY CLASHES WITH HAAR'S DEFAULT!

public float getTemperature(uint8_t Location)

Return calculated temperature from Walrus.

This calculated temperature can be from either the MS5803 sensor, which primarily measures pressure, or from the

Parameters

  • Location TEMP_REG_0: Read dedicated temperature sensor. TEMP_REG_1: Read temperature sensor withn the MS5803. APPEARS TO JUST WORK WIHT TEMP_REG_0 FOR NOW

public float getTemperature()

Return calculated temperature from sensor, using a predefined offset. WHAT DOES THIS OFFSET DO?

public float getPressure()

Return calculated pressure from sensor.

This is the MS5803 sensor, which can come in a variety of different pressure ranges and sensitivities.

public String getHeader()

Return header.

"Pressure [mBar],Temp DH [C],Temp DHt [C],"

public String getString()

Return measurement data as a string.

String(getPressure()) + "," + String(getTemperature(0))

  • "," + String(getTemperature(1)) + ",";

Generated by Moxygen

About

Library for interfacing with the Walrus temp and pressure sensor via an Arduino device

Resources

License

Stars

Watchers

Forks

Packages

No packages published