{
  "metadata": {
    "id": "HCSR04-Ultrasonic-Sensor",
    "name": "HC-SR04 Ultrasonic Sonar Distance Sensor + 2 x 10K resistors",
    "type": "sensor",
    "description": "Ultrasonic Sensor, 4-pin, 2-wire with a 10kOhm resistor divider on the echo pin to lower the echo pin voltage to 2.5V",
    "manufacturer": "Adafruit",
    "part_number": "HCSR04",
    "datasheet_url": "https://cdn.sparkfun.com/datasheets/Sensors/Proximity/HCSR04.pdf",
    "tags": [
      "ultrasonic_sensor",
      "sensor",
      "ultrasonic",
      "sonar",
      "distance",
      "sensor",
      "adafruit",
      "breakout"
    ],
    "schema_version": "1.4.0",
    "version": "0.1.0",
    "taxonomy": [
      "sensor.distance"
    ]
  },
  "domains": [
    {
      "domain": "electrical",
      "power_domains": [
        {
          "id": "vcc",
          "name": "VCC",
          "nominal_voltage_V": 5,
          "isolation_type": "non_isolated",
          "ground_reference": "common",
          "description": "Main power supply must not exceed 5.0V."
        },
        {
          "id": "trig",
          "name": "Trig",
          "nominal_voltage_V": [
            3,
            5
          ],
          "isolation_type": "non_isolated",
          "ground_reference": "common",
          "description": "trigger pin, works with 3V-5V inputs"
        },
        {
          "id": "echo",
          "name": "Echo",
          "nominal_voltage_V": 3,
          "isolation_type": "non_isolated",
          "ground_reference": "common",
          "description": "Echo pin outputs a 5V pulse, however this is lowered to 3V by the 10kOhm resistor divider for ONLY this device"
        }
      ],
      "resources": [
        {
          "id": "trig",
          "name": "Trig",
          "description": "trigger pin, works with 3V-5V inputs",
          "functions": [
            {
              "name": "Trig",
              "signal_class": "control"
            }
          ],
          "power_domain_id": "trig"
        },
        {
          "id": "echo",
          "name": "Echo",
          "description": "Echo pin outputs a 5V pulse, however this is lowered to 3V by the 10kOhm resistor divider for ONLY this device",
          "functions": [
            {
              "name": "Echo",
              "signal_class": "data"
            }
          ],
          "power_domain_id": "echo"
        },
        {
          "id": "vcc",
          "name": "VCC",
          "description": "Main power supply must not exceed 5.0V.",
          "functions": [
            {
              "name": "VCC",
              "signal_class": "power"
            }
          ],
          "power_domain_id": "vcc"
        },
        {
          "id": "gnd",
          "name": "GND",
          "description": "Ground pin",
          "functions": [
            {
              "name": "GND",
              "signal_class": "ground"
            }
          ]
        }
      ],
      "interfaces": [
        {
          "id": "ultrasonic_sensor",
          "name": "Ultrasonic Sensor",
          "protocol": {
            "type": "ultrasonic_sensor",
            "role": "sensor"
          },
          "requires": [
            {
              "function": "VCC",
              "count": 1
            },
            {
              "function": "GND",
              "count": 1
            },
            {
              "function": "Trig",
              "count": 1
            },
            {
              "function": "Echo",
              "count": 1
            }
          ]
        }
      ]
    }
  ]
}