Skip to content

CodersCafeTech/ENS160-Viam-Module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This module implements the rdk sensor API in a coderscafe:sensor:ens160 model. With this model, you can read VOCs (volatile organic compounds), eCO2 (equivalent carbon dioxide), and an Air Quality Index (AQI) from DFRobot Fermion: ENS160 Air Quality Sensor

Requirements

Please make sure that I2C communication is enabled on the device to which the sensor is connected.

Build and Run

To use this module, follow these instructions to add a module from the Viam Registry and select the coderscafe:sensor:ens160 module.

Configure your sensor

Note

Before configuring your sensor, you must create a machine.

  • Navigate to the Config tab of your robot’s page in the Viam app.
  • Click on the Components subtab and click on the sensor subtab.
  • Select the coderscafe:sensor:ens160 model.
  • Enter a name for your sensor and click Create.
  • Save and wait for the component to finish setup.

Note

For more information, see Configure a Robot.

Attributes

The following attributes are available for coderscafe:sensor:ens160 sensor:

Name Type Inclusion Description
temperature_compensation integer Optional Set Temperature Compensation
humidity_compensation integer Optional Set Humidity Compensation

Example Configuration

{
  "temperature_compensation":30,
  "humidity_compensation": 60
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published