{
  "metadata": {
    "id": "rev-31-1557",
    "name": "REV Color Sensor V3",
    "description": "Color Sensor V3 with RGB color sensing, built-in IR proximity, and a switchable white LED. Communicates over I²C.",
    "manufacturer": "REV Robotics",
    "part_number": "REV-31-1557",
    "datasheet_url": "https://www.revrobotics.com/rev-31-1557/",
    "tags": [
      "color_sensor",
      "I2C",
      "proximity",
      "RGB"
    ],
    "schema_version": "1.4.0",
    "version": "1.2",
    "taxonomy": [
      "sensor.color",
      "robotics.ftc"
    ]
  },
  "domains": [
    {
      "domain": "electrical",
      "resources": [
        {
          "id": "jst_ph_i2c",
          "name": "JST PH I²C Connector",
          "description": "4-pin JST PH connector for I²C communication.",
          "functions": [
            {
              "name": "JST I²C CONNECTOR",
              "direction": "bidirectional",
              "signal_class": "data"
            }
          ],
          "connector_type": "jst_ph_4"
        }
      ],
      "interfaces": [
        {
          "id": "i2c-sensor-interface",
          "name": "I²C Sensor Interface",
          "protocol": {
            "type": "i2c",
            "role": "device"
          },
          "requires": [
            {
              "function": "JST I²C CONNECTOR",
              "count": 1
            }
          ],
          "constraints": {
            "max_connections": 1,
            "requires_connector_type": "jst_ph_4"
          },
          "description": "I²C interface for a combined color and proximity sensor."
        }
      ],
      "metadata": {
        "operating_voltage_V": 3.3,
        "supports_i2c": true
      }
    }
  ],
  "usage_notes": "Connect to a hub’s I²C bus using a 4-pin JST PH cable. Supports both standard (100 kHz) and high speed (400 kHz) I²C. Includes a white LED for illumination and measures RGB and proximity data. Ensure distinct I²C addresses when connecting multiple I²C devices. 3.3 V logic level. :contentReference[oaicite:1]{index=1}",
  "application_examples": [
    "Color detection in robotics autonomies",
    "Proximity measurement",
    "Object recognition and sorting"
  ],
  "warnings": [
    "Passive I²C device — must be used on an I²C bus with a host controller (Control Hub or Expansion Hub).",
    "I²C sensors on the same bus must have unique addresses to operate correctly. :contentReference[oaicite:2]{index=2}"
  ]
}