Skip to main content

Sugar CO2 Module

Parameter

Size24 x 24 x 16 mm
Weight5.1 g
Signali2c
Gas MeasuredCarbon Dioxide (CO2)

Features

It has a fully calibrated air quality output signal, mainly for detecting air quality, and can output values for carbon dioxide (CO2) and total volatile organic compounds (TVOC).

Using on the Future Board Lite

Wiring

Future Board Lite InterfaceWire Used


二氧化碳图片


方糖-二氧化碳模块


i2c
Black PH2.0-4Pin interface cable

Programming Bricks

No.Brick ImageBrick Function
1image-20240730105938973Read sensor to obtain air CO2 (ppm) and TVOC (ppb) values
2image-20240730105945555Read sensor to obtain temperature (℃) value
3image-20240730105952499Read sensor to obtain humidity (%) value

image-20240730105744669

image-20240730105806745

Program Writing

image-20240730112425637

Using on the micro:bit

Programming Platform

Microsoft MakeCode for micro:bit
Using the MakeCode programming platform.

Add Extensions

image-20240730092126024
image-20240730092333103


Search for 'sugar' in the extensions and click to add.

Wiring

image.png

RobotbitEDU InterfaceWire Used



方糖-二氧化碳模块


i2c
Black PH2.0-4Pin interface cable

Programming Bricks

No.Brick ImageBrick Function
1image-20240730103945583Read sensor to obtain air carbon dioxide (ppm) value
2image-20240730104000788Read sensor to obtain temperature (℃) value
3image-20240730104013373Read sensor to obtain humidity (%) value

Program Writing

The functionality implementation includes the following parts:

  • Display temperature when Button A is pressed
  • Display humidity when Button B is pressed
  • Display carbon dioxide concentration when Button A + Button B is pressed
    image-20240730104227917