![]() |
VOOZH | about |
dotnet add package nanoFramework.Iot.Device.Ags01db --version 1.2.952
NuGet\Install-Package nanoFramework.Iot.Device.Ags01db -Version 1.2.952
<PackageReference Include="nanoFramework.Iot.Device.Ags01db" Version="1.2.952" />
<PackageVersion Include="nanoFramework.Iot.Device.Ags01db" Version="1.2.952" />Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Ags01db" />Project file
paket add nanoFramework.Iot.Device.Ags01db --version 1.2.952
#r "nuget: nanoFramework.Iot.Device.Ags01db, 1.2.952"
#:package nanoFramework.Iot.Device.Ags01db@1.2.952
#addin nuget:?package=nanoFramework.Iot.Device.Ags01db&version=1.2.952Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Ags01db&version=1.2.952Install as a Cake Tool
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
Important: make sure you properly setup the I2C pins especially for ESP32 before creating the I2cDevice, make sure you install the nanoFramework.Hardware.ESP32 nuget:
//////////////////////////////////////////////////////////////////////
// when connecting to an ESP32 device, need to configure the I2C GPIOs
// used for the bus
Configuration.SetPinFunction(21, DeviceFunction.I2C1_DATA);
Configuration.SetPinFunction(22, DeviceFunction.I2C1_CLOCK);
For other devices like STM32, please make sure you're using the preset pins for the I2C bus you want to use.
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;
}
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
Debug.WriteLine($"Version: {sensor.Version}");
Debug.WriteLine();
while (true)
{
// read concentration
Debug.WriteLine($"VOC Gas Concentration: {sensor.Concentration}ppm");
Debug.WriteLine();
Thread.Sleep(3000);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net net is compatible. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-preview.85 | 53 | 6/1/2026 |
| 2.0.0-preview.80 | 54 | 5/27/2026 |
| 2.0.0-preview.73 | 53 | 5/20/2026 |
| 2.0.0-preview.69 | 53 | 5/18/2026 |
| 2.0.0-preview.62 | 54 | 5/13/2026 |
| 2.0.0-preview.49 | 49 | 5/4/2026 |
| 2.0.0-preview.45 | 62 | 4/29/2026 |
| 2.0.0-preview.32 | 66 | 4/20/2026 |
| 2.0.0-preview.16 | 69 | 3/10/2026 |
| 1.2.952 | 139 | 3/4/2026 |
| 1.2.931 | 323 | 11/10/2025 |
| 1.2.907 | 283 | 10/2/2025 |
| 1.2.889 | 273 | 7/28/2025 |
| 1.2.869 | 331 | 4/2/2025 |
| 1.2.864 | 319 | 4/2/2025 |
| 1.2.852 | 337 | 3/11/2025 |
| 1.2.846 | 352 | 3/10/2025 |
| 1.2.822 | 272 | 2/26/2025 |
| 1.2.775 | 283 | 2/4/2025 |
| 1.2.772 | 285 | 2/4/2025 |