Skip to content

CodersCafeTech/TEMT6000-Viam-Module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This module implements the rdk sensor API in a coderscafe:sensor:temt6000 model. With this model, you can read the Light Intensity and Illuminance from TEMT6000 sensor.

Requirements

Please make sure that I2C communication is enabled on the device to which the sensor is connected. If you're unsure about the connection get more details from here.

Build and Run

To use this module, follow these instructions to add a module from the Viam Registry and select the coderscafe:sensor:temt6000 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 the sensor subtab.
  • Select the coderscafe:sensor:temt6000 model.
  • Enter a name for your sensor and click Create.
  • On the new component panel, copy and paste the following attribute template into your sensor’s Attributes box:
{
  "channel": channel-on-ADC-to-which-S-pin-is-connected
}
  • 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:temt6000 sensor:

Name Type Inclusion Description
channel integer Required Channel on ADS1115 ADC to which the S pin of TEMT6000 is connected

Example Configuration

{
  "channel":0
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published