Note
The CO2 Bricklet is discontinued and is no longer sold. The CO2 Bricklet 2.0 is the recommended replacement.
The CO2 Bricklet can be used to extend the features of Bricks with the capability to measure CO2 concentration in the air. The measured CO2 concentration can be read out in ppm. With configurable events it is possible to react on changing CO2 concentration without polling.
Typical applications are automated ventilation and environmental data logging.
Property | Value |
---|---|
Sensor | SenseAir K30 |
Current Consumption | 200mW (40mA at 5V, idle)
1750mW (350mA at 5V, measuring)
|
Measurement Range | 0ppm to 10000ppm |
Accuracy | ±30ppm (full-scale), ±3% (of reading) |
Dimensions (W x D x H) | 60 x 65 x 15mm (2.36 x 2.56 x 0.59") |
Weight | 29g |
To test a CO2 Bricklet you need to have Brick Daemon and Brick Viewer installed. Brick Daemon acts as a proxy between the USB interface of the Bricks and the API bindings. Brick Viewer connects to Brick Daemon. It helps to figure out basic information about the connected Bricks and Bricklets and allows to test them.
Connect the CO2 Bricklet to a Brick with a Bricklet Cable.
If you connect the Brick to the PC over USB, you should see a new tab named "CO2 Bricklet" in the Brick Viewer after a moment. Select this tab. If everything went as expected the Brick Viewer should look as depicted below.
After this test you can go on with writing your own application. See the Programming Interface section for the API of the CO2 Bricklet and examples in different programming languages.
See Programming Interface for a detailed description.
Language | API | Examples | Installation |
---|---|---|---|
C/C++ | API | Examples | Installation |
C# | API | Examples | Installation |
Delphi/Lazarus | API | Examples | Installation |
Go | API | Examples | Installation |
Java | API | Examples | Installation |
JavaScript | API | Examples | Installation |
LabVIEW | API | Examples | Installation |
Mathematica | API | Examples | Installation |
MATLAB/Octave | API | Examples | Installation |
MQTT | API | Examples | Installation |
openHAB | API | Examples | Installation |
Perl | API | Examples | Installation |
PHP | API | Examples | Installation |
Python | API | Examples | Installation |
Ruby | API | Examples | Installation |
Rust | API | Examples | Installation |
Shell | API | Examples | Installation |
Visual Basic .NET | API | Examples | Installation |
TCP/IP | API | ||
Modbus | API |