Skip to content

dean-lab-group/HaySense2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HaySense

A Particle library for interfacing with our haybale environmental sensor feather.

This library depends on FreqPeriodCounter (follow link to clone)

Usage

Connect your hardware, add the HaySense library to your project and follow this simple example:

#include "HaySense.h"
HaySense haySense;

void setup() {
  haySense.begin();
}

void loop() {
  haySense.process();
}

Ensure that FreqPeriodCounter is also in your build path.

See the examples folder for more details on using this library.

Documentation

The sensors output pretty noisy data so its best to take a moving average of several samples.

Contributing

Here's how you can make changes to this library and eventually contribute those changes back.

To get started, clone the library from GitHub to your local machine.

Change the name of the library in library.properties to something different. You can add your name at then end.

Modify the sources in and with the new behavior.

To compile an example, use particle compile examples/usage command in Particle CLI or use our Desktop IDE.

After your changes are done you can upload them with particle library upload or Upload command in the IDE. This will create a private (only visible by you) library that you can use in other projects. Do particle library add HaySense_myname to add the library to a project on your machine or add the HaySense_myname library to a project on the Web IDE or Desktop IDE.

At this point, you can create a GitHub pull request with your changes to the original library.

If you wish to make your library public, use particle library publish or Publish command.

LICENSE

See LICENSE.md for details.

Releases

No releases published

Packages

No packages published