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.
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.
To use this module, follow these instructions to add a module from the Viam Registry and select the coderscafe:sensor:temt6000 module.
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
sensorsubtab. - Select the
coderscafe:sensor:temt6000model. - 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.
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 |
{
"channel":0
}