dischinator / co20

co20 air quality usb stick access via usb hid api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access function to read sensor values from the co20 air sensor

The co20 air sensor sold by conrad as co20 Luftqualitätssensor or by Velux as Raumluftfühler features a chipset by AppliedSensor. It measures the general air quality. This package uses the USB HID abstraction layer to access the co20 stick. The co20 is automatically detected as HID device by OSX and Windows and can probably also be detected as HID device under Linux, tho I have not tried this yet.

Requirements

To build you need to have HID API installed.

OSX

On OSX you can for example install it using homebrew by doing:

brew install hidapi

Windows

On Windows just download the current archive and extract it. For Windows you need to modify Makefile.mingw and set the path where you extracted HID API. Also you need mingw to compile on Windows.

Building

OSX

Just run

make

Windows

Run mingw32-make

This will build the example application air_csv wich periodically reads the air value and writes it to air.csv

Extra gimmick

I added a gnuplot file to create graphs based upon the created csv files. Just run air.p to generate them.

About

co20 air quality usb stick access via usb hid api

License:MIT License


Languages

Language:C 73.5%Language:Gnuplot 21.7%Language:Makefile 4.8%