Giter VIP home page Giter VIP logo

h2noselib's Introduction

H2NoseLib

A simple library made to help the development of the electronic nose project using MQ type sensors

Quick example on how to use

Nose class

Nose nose(int pin1, int pin2, bool isPPB, float b, float m, float rsr0, bool isMG811, String gastype, float rl, bool comm);

"nose" will be the name of the sensor (or in the case of the H2Nose project, the device name and gas type(ex:MQ2_H2))

pin1 and pin2 will take 2 analog inputs and averages them out

setting isPPB will multiply the output by 1000 to turn it from PPM(parts per million) to PPB(parts per billion)

float b and m is used for the values to count the exponential regression and determine the concentration of any gasses

rsr0 is the ratio between the resistance in clean air and the R0 resistance of the sensor

the MG811 is a different type of sensor and uses a different algorithm which is why it should be set to true if you are using the MG811

gastype will determine the name of the variable for the dictionary in the jetson side of the code

rl is the load resistence of the sensor

comm is just used to add a comma in front of the values so the python code in the jetson can separate it

nose.getOutput()

outputs the PPM value

nose.printOutput()

self explanatory

Thermocouple class

Thermocouple thermocouple(SCLK, CS, DO)

"thermocouple" name it as you wish then input the SCLK, CS, and DO pins

to get the temperature in degrees celsius simply "thermocouple.readTemps();" to get the data

h2noselib's People

Contributors

ivanaprianto avatar yuanarib 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.