GithubHelp home page GithubHelp logo

rrajnidhi / honeywelltrustabilityspi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huilab/honeywelltrustabilityspi

0.0 1.0 0.0 2.58 MB

Arduino library for communicating with Honeywell TruStability HSC or SSC digital pressure sensors over SPI

Home Page: https://huilab.github.io/HoneywellTruStabilitySPI/

License: MIT License

C++ 100.00%

honeywelltrustabilityspi's Introduction

Honeywell TruStability SPI Build Status

An Arduino library for communicating with Honeywell TruStability HSC or SSC digital pressure sensors over SPI.

Based on the Honeywell technical note at: https://sensing.honeywell.com/spi-comms-digital-ouptu-pressure-sensors-tn-008202-3-en-final-30may12.pdf. There is also a copy of the note in this repository.

View the data sheet at: https://sensing.honeywell.com/honeywell-sensing-trustability-hsc-series-high-accuracy-board-mount-pressure-sensors-50099148-a-en.pdf. There is also a copy of the datasheet in this repository.

View the documentation

https://huilab.github.io/HoneywellTruStabilitySPI/

Install the library

To download, click the Download Zip button. In the Arduino IDE go to Sketch -> Include Library -> Add .ZIP Library.

Or, you may install this library with the Arduino Library Manager.

For details on installing libraries, see Arduino's guide at: https://www.arduino.cc/en/Guide/Libraries#toc3

Use

Include the library and declare a sensor:

#include <HoneywellTruStabilitySPI.h>
// construct a +/- 15 PSI sensor using the default SPI slave select pin (SS)
TruStabilityPressureSensor sensor( SS, -15.0, 15.0 );

Initialize the sensor in void setup() :

SPI.begin(); // start SPI communication
sensor.begin(); // run sensor initialization

Read values in void loop() :

// the sensor returns 0 if new data is ready
if( sensor.readSensor() == 0 ) {
  float t = sensor.temperature();
  float p = sensor.pressure();
}

For more details, see the handy example sketch.

honeywelltrustabilityspi's People

Contributors

erikmwerner avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.