Component: Colour Sensor V3 (Grove 101021133) (101021133) (Light)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | Light |
Contents
Colour Sensor V3 (Grove 101021133) component
Based on the color sensor VEML6040 with digital output I2C. senses red, green, blue, and white light and incorporates photodiodes, amplifiers, and analog / digital circuits into a single chip. Provides a spectrum matching real human eye responses.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
CalculateLux
![]() |
CalculateLux |
Uses the RGB values stored in RAM from the last Sample to calculate the luminance in lux. | |
![]() |
Return |
CalculateTemp
![]() |
CalculateTemp |
Uses the RGB values stored in RAM from the last Sample to calculate the colour temperature in degrees Kelvin. | |
![]() |
Return |
DisableSensor
![]() |
DisableSensor |
Powers down the device to save power. | |
![]() |
Return |
EnableSensor
![]() |
EnableSensor |
Powers up the device ready for taking colour readings. | |
![]() |
Return |
Initialise
ReadDataChannel
SampleSensor
![]() |
SampleSensor |
Reads the raw colour channels from the sensor and stores the readings into RAM to be collected by the ReadDataChannel macro. | |
![]() |
Return |
SetIntegrationTime
![]() |
SetIntegrationTime |
Controls the integration time. 0 = 40mS / 1 = 80mS / 2 = 160mS / 3 = 320mS / 4 = 640mS / 5 = 1280mS | |
![]() |
Setting |
Range: 0 to 5 | |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Colour_Sensor_V3_I2C_Grove.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Colour_Sensor_V3_I2C_Grove.fcfx