Skip to content

bluerobotics/BlueRobotics_TSYS01_Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlueRobotics TSYS01 Temperature Sensor Library

Arduino library for the TSYS01 temperature sensor. The TSYS01 is a high-accuracy, fast-response subsea temperature sensor from Measurement Specialties.

Documentation

Please see the examples for normal operation. Below are the available functions used in the library.

/** Construct an instance of the sensor manager, with defined I2C bus connection details.
 *  Uses the default Wire bus if left unspecified.
 *  (e.g. "TSYS01 mySensor;" is equivilent to "TSYS01 mySensor(&Wire);")
 */
TSYS01(TwoWire *wire = &Wire);

/** Initialize the sensor connection - return false if not detected.
 */
bool init();

/** The read from I2C takes up for 40 ms, so use sparingly is possible.
 */
void read();

/** This function loads the datasheet test case values to verify that
 *  calculations are working correctly. 
 */
void readTestCase();

/** Temperature returned in deg C.
 */
float temperature();

Versions

  • 1.0.2 - added support for different I2C busses
  • 1.0.1 - added initialization validation
  • 1.0.0 - initial release
  • 0.0 - Under development

Reference

You can find the TSYS01 datasheet here.

About

Arduino library for the TSYS01 temperature sensor.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages