GithubHelp home page GithubHelp logo

chrschultz / ndir Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sandboxelectronics/ndir

0.0 1.0 0.0 42 KB

Arduino Library for Sandbox Electronics NDIR CO2 Sensor with UART/I2C Interface

License: MIT License

C++ 49.61% Python 9.13% C# 41.26%

ndir's Introduction

This repository contains Arduino Libraries for Sandbox Electronics NDIR CO2 Sensor with UART/I2C Interface: http://sandboxelectronics.com/?product=mh-z16-ndir-co2-sensor-with-i2cuart-5v3-3v-interface-for-arduinoraspeberry-pi

It contains two libraries. Normally only one is needed.

  • NDIR_I2C: for communication with the sensor via I2C.
  • NDIR_SoftwareSerial: for communication with the sensor via UART (SoftwareSerial).

Note: The dip switch on the adaptor should be set to I2C or UART accordingly to select I2C or UART mode communication.

Installling the library (the automatic way)

  1. Click "Download ZIP" button in the top right cornor of this github page and uncompress it.
  2. From the Arduino IDE, Click Sketch->Include Library->Add .ZIP Library..., a file explorer window should popup.
  3. In the popup windows, navigate to the folder what was just uncompressed.
  4. Select one of the following folders: - NDIR_I2C (which contains NDIR_I2C.cpp and NDIR_I2C.h) - NDIR_SoftwareSerial (which contains NDIR_SoftwareSerial.cpp and NDIR_SoftwareSerial.h)
  5. Click Open.
  6. Restart the Arduino IDE. The library should now be ready for use.

Installling the library (the manual way)

  1. Click "Download ZIP" button in the top right cornor of this github page and uncompress it.
  2. From the uncompressed folder, copy one of the following folders to the /libraries/ folder. You may need to create the libraries subfolder if it does not already exist. - NDIR_I2C (which contains NDIR_I2C.cpp and NDIR_I2C.h) - NDIR_SoftwareSerial (which contains NDIR_SoftwareSerial.cpp and NDIR_SoftwareSerial.h)
  3. Restart the Arduino IDE. The library should now be ready for use.

It is recommended to use the automatic way because it automatically places the libraries to the correct path. For manual installation, the path of folder can be found by clicking File->Preferences in the Arduino IDE. The Sketchbook location is on the top of the Preferences page.

  • On Windows, libraries folder is normally located at "My Documents\Arduino\libraries"
  • On Mac, libraries folder is normally located at "Documents/Arduino/libraries"
  • On Linux, libraries folder is normally located at "/home//sketchbook/libraries"

ndir's People

Contributors

wei-peng 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.