Coder Social home page Coder Social logo

ambientco2's Introduction

AmbientCO2

Arduino library for CozIR Ambient CO2 sensors

The CozIR Ambient family of sensors all provide CO2 measurements, at different ranges. Some are able to measure temperature and relative humidity as well. The sensors use serial UART and analog voltage output.

This library has been developed using a CozIR Ambient 0-5000 ppm CO2 (only) sensor and an Arduino UNO R3 board.

Development

Milestone Features Version Status
Beta Basic reading 0.x.x โœ”๏ธ
Launch Modes, settings 1.x.x
Sensors Range, CO2, relative humidity, temperature 2.x.x
Boards Arduino UNO, Due, MEGA 3.x.x

Library Documentation

Add the following line to use this libraray:

#include <AmbientCO2.h>

Functions

Name Parameters Returns Description
AmbientCO2() Stream &serial void Constructor
begin() none void Sensor setup
getCO2() none int Reads CO2 concentration in PPM

Limitations

From SoftwareSerial reference: If using multiple software serial ports, only one can receive data at a time.

Installation

Library Manager

  1. Open Tools -> Manage Libraries... in Arduino IDE
  2. Search for AmbientCO2
  3. Install latest version

Manual

  1. Download library zip file from GitHub, and extract it
  2. Rename resulting folder from AmbientCO2-master to AmbientCO2
  3. Move folder AmbientCO2 into the Arduino IDE libraries folder
  4. Restart Arduino IDE, if running

Usage

  1. Examples are available under File -> Examples -> AmbientCO2 in Arduino IDE
  2. Change rxPin and txPin in the sketch to match board setup
  3. Connect GND, 3.3V, rxPin and txPin between board and sensor (see User's Manual, page 7, for sensor pinout)
Board Sensor
GND Pin 1
3.3V Pin 3
rxPin Pin 7
txPin Pin 5
  1. Upload sketch
  2. Open Serial Monitor or Serial Plotter in Arduino IDE

Sensor Documentation

Inspiration

Arduino Libraries

Generic Arduino Libraries

ambientco2's People

Contributors

mjackdk avatar

Watchers

James Cloos avatar

ambientco2's Issues

begin() should run only once

Is your feature request related to a problem? Please describe.
Class function begin() should run only once.

Describe the solution you'd like
begin() should set private boolean variable to TRUE, and only execute if FALSE

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.