AGS01DB is a MEMS VOC gas sensor with calibrated digital signal output. It uses special digital module acquisition technology and gas sensing technology to ensure that the product has high reliability and excellent long-term stability.
Products page in English
Datasheet in Chinese
I2cConnectionSettings settings = new I2cConnectionSettings(1, Ags01db.DefaultI2cAddress);
I2cDevice device = I2cDevice.Create(settings);
using (Ags01db sensor = new Ags01db(device))
{
// read AGS01DB version
byte version = sensor.Version;
// read VOC concentration
double concentration = sensor.Concentration;
}
- AGS01DB
- 4.7kΩ resistance × 2
- Male/Female Jumper Wires
- SCL - SCL
- SDA - SDA
- VCC - 5V
- GND - GND
SDA, SCL need pull-up resistance.
I2cConnectionSettings settings = new I2cConnectionSettings(1, Ags01db.DefaultI2cAddress);
I2cDevice device = I2cDevice.Create(settings);
using (Ags01db sensor = new Ags01db(device))
{
// read AGS01DB version
Console.WriteLine($"Version: {sensor.Version}");
Console.WriteLine();
while (true)
{
// read concentration
Console.WriteLine($"VOC Gas Concentration: {sensor.Concentration}ppm");
Console.WriteLine();
Thread.Sleep(3000);
}
}