Arduino sketches for CoZIR CO₂, humidity and temperature sensors
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Calibrate
LogToCSV
LogToSD
LogToSerial
SetDigiFilter
SetToPolling
SetToStreaming
.gitignore
LICENSE.md
readme.md

readme.md

This is a set of Arduino sketches to make use of the CoZIR gas sensors. These sensors can measure temperature, humidity and CO₂. They are sold by Gas Sensing Solutions. The code is based on and partly copied from a thread on the Arduino forum, where users DirtGambit and robtillaart did great work making it possible for Arduino users to use these sensors.

#Tools# ###Calibrate### Commands the sensor to calibrate itself. To be used when the sensor is surrounded by fresh air. ###LogToCSV### Polls the sensor and logs average and extreme measurements at fixed intervals. Via the serial monitor (USB) the log can be requested as CSV, that can be copied to a spreadsheet. About nine logs can be made before the memory is full. As soon as I have a datalogger shield, I will make sketch for creating bigger logs. ###LogToSerial### Gets the sensor's measurements and sends these to the serial port. ###SetDigiFilter### The digital filter can be adjusted to filter out noise in the measurements ###SetToPolling### Polling is the preferred mode as it potentially uses less energy. The tools require polling mode. ###SetToStreaming### Streaming is the factory default.

#Setup#

  • Use the wiring schematic from C02meter.com (see below). The tools use digital pins 3 and 2 instead of the ones shown in that manual. Connect pin 3 to the sensor's Rx pin and pin 2 to the sensor's Tx pin.
  • Install the dependencies.

#Documentation#

#Dependencies#

To install libraries, download it to your Arduino/library folder and restart the Arduino IDE.