M5Stack Color Sensor RGB Unit (TCS3472) (Grove)

From Visuino
Jump to navigation Jump to search

File:TArduinoM5StackColorSensor.png

Summary

Measures RGB and clear light intensity and outputs both analog and color data.

Description

The **M5Stack Color Sensor RGB Unit (TCS3472) (Grove)** component reads the intensity of red, green, blue, and clear light channels. It supports configurable gain and integration time, threshold detection, and optional wait periods for controlled sampling. Outputs include individual analog channels for each color, as well as a combined color output. This sensor is ideal for color detection, sorting, and color-based control in embedded and IoT projects.

Diagram:

Categories

Properties

  • Address – I2C device address.
  • Enabled – Enables or disables the sensor.
  • Gain – Sensor gain setting.
  • Integration Time (mS) – Integration period for light measurement.
  • Powered Up – Turns the sensor on or off.
  • Threshold Clear – Enables threshold detection with High/Low settings and persistence (in samples).
  • Wait – Optional wait period between readings (enabled, Period in ms).

Pins

Input Pins

  • Clock – Triggers a measurement cycle.

Analog Output Pins

  • Red – Analog output for red light intensity.
  • Green – Analog output for green light intensity.
  • Blue – Analog output for blue light intensity.
  • Clear – Analog output for clear (total) light intensity.

Control Pins

  • Control – I2C control connection.

Other Output Pins

  • Threshold Clear – Boolean signal indicating threshold was reached.
  • Color Out – Combined RGB color output.