{
  "app": {
    "name": "MikroBit - Pembina Litar",
    "version": "v1.0.0",
    "devMode": true,
    "gridSize": 0.5,
    "canvasSize": 40
  },
  "wireColors": [
    {
      "id": "red",
      "name": "Merah",
      "hex": "#E53935"
    },
    {
      "id": "green",
      "name": "Hijau",
      "hex": "#43A047"
    },
    {
      "id": "blue",
      "name": "Biru",
      "hex": "#1E88E5"
    },
    {
      "id": "black",
      "name": "Hitam",
      "hex": "#333333"
    },
    {
      "id": "white",
      "name": "Putih",
      "hex": "#EEEEEE"
    },
    {
      "id": "yellow",
      "name": "Kuning",
      "hex": "#FDD835"
    },
    {
      "id": "orange",
      "name": "Oren",
      "hex": "#FB8C00"
    }
  ],
  "components": {
    "arduino": {
      "name": "Arduino Uno",
      "category": "mikropengawal",
      "width": 5,
      "depth": 3.5,
      "color": "#0066AA",
      "colorDark": "#004477",
      "icon": "🧠",
      "required": true,
      "maxCount": 1,
      "pins": [
        {
          "id": "5V",
          "x": -1.73,
          "z": 3.29,
          "type": "power",
          "label": "5V",
          "y": 1.15
        },
        {
          "id": "3V3",
          "x": -1.15,
          "z": 3.29,
          "type": "power",
          "label": "3.3V",
          "y": 1.15
        },
        {
          "id": "GND1",
          "x": -0.66,
          "z": 3.27,
          "type": "ground",
          "label": "GND",
          "y": 1.15
        },
        {
          "id": "GND2",
          "x": -0.16,
          "z": 3.29,
          "type": "ground",
          "label": "GND",
          "y": 1.15
        },
        {
          "id": "VIN",
          "x": 0.21,
          "z": 3.29,
          "type": "power",
          "label": "VIN",
          "y": 1.13
        },
        {
          "id": "D0",
          "x": 2.67,
          "z": -3.18,
          "type": "digital",
          "label": "D0",
          "y": 1.15
        },
        {
          "id": "D1",
          "x": 2.27,
          "z": -3.18,
          "type": "digital",
          "label": "D1",
          "y": 1.15
        },
        {
          "id": "D2",
          "x": 1.9,
          "z": -3.18,
          "type": "digital",
          "label": "D2",
          "y": 1.15
        },
        {
          "id": "D3",
          "x": 1.52,
          "z": -3.18,
          "type": "digital",
          "label": "D3",
          "pwm": true,
          "y": 1.15
        },
        {
          "id": "D4",
          "x": 1.18,
          "z": -3.18,
          "type": "digital",
          "label": "D4",
          "y": 1.15
        },
        {
          "id": "D5",
          "x": 0.84,
          "z": -3.18,
          "type": "digital",
          "label": "D5",
          "pwm": true,
          "y": 1.15
        },
        {
          "id": "D6",
          "x": 0.45,
          "z": -3.18,
          "type": "digital",
          "label": "D6",
          "pwm": true,
          "y": 1.15
        },
        {
          "id": "D7",
          "x": 0.12,
          "z": -3.18,
          "type": "digital",
          "label": "D7",
          "y": 1.15
        },
        {
          "id": "D8",
          "x": -0.28,
          "z": -3.18,
          "type": "digital",
          "label": "D8",
          "y": 1.15
        },
        {
          "id": "D9",
          "x": -0.64,
          "z": -3.18,
          "type": "digital",
          "label": "D9",
          "pwm": true,
          "y": 1.15
        },
        {
          "id": "D10",
          "x": -1.03,
          "z": -3.18,
          "type": "digital",
          "label": "D10",
          "pwm": true,
          "y": 1.15
        },
        {
          "id": "D11",
          "x": -1.34,
          "z": -3.18,
          "type": "digital",
          "label": "D11",
          "pwm": true,
          "y": 1.15
        },
        {
          "id": "D12",
          "x": -1.69,
          "z": -3.18,
          "type": "digital",
          "label": "D12",
          "y": 1.15
        },
        {
          "id": "D13",
          "x": -2.09,
          "z": -3.18,
          "type": "digital",
          "label": "D13",
          "y": 1.15
        },
        {
          "id": "A0",
          "x": 0.79,
          "z": 3.29,
          "type": "analog",
          "label": "A0",
          "y": 1.15
        },
        {
          "id": "A1",
          "x": 1.12,
          "z": 3.29,
          "type": "analog",
          "label": "A1",
          "y": 1.15
        },
        {
          "id": "A2",
          "x": 1.49,
          "z": 3.29,
          "type": "analog",
          "label": "A2",
          "y": 1.15
        },
        {
          "id": "A3",
          "x": 1.88,
          "z": 3.29,
          "type": "analog",
          "label": "A3",
          "y": 1.15
        },
        {
          "id": "A4",
          "x": 2.2,
          "z": 3.29,
          "type": "analog",
          "label": "A4",
          "y": 1.15
        },
        {
          "id": "A5",
          "x": 2.64,
          "z": 3.29,
          "type": "analog",
          "label": "A5",
          "y": 1.15
        }
      ],
      "model": "./models/components/arduino.glb",
      "modelScale": 3
    },
    "breadboard": {
      "name": "Papan Roti",
      "category": "litar",
      "width": 6,
      "depth": 2.5,
      "color": "#F5F5E8",
      "colorDark": "#E8E8D0",
      "icon": "🍞",
      "required": true,
      "maxCount": 2,
      "pins": [
        {
          "id": "PWR+1",
          "x": -2.74,
          "z": -2.47,
          "type": "powerRail",
          "label": "+",
          "y": 0.5
        },
        {
          "id": "PWR+2",
          "x": -1.21,
          "z": 2.49,
          "type": "powerRail",
          "label": "+",
          "y": 0.5
        },
        {
          "id": "PWR+3",
          "x": 0.19,
          "z": -2.47,
          "type": "powerRail",
          "label": "+",
          "y": 0.5
        },
        {
          "id": "PWR+4",
          "x": 1.7,
          "z": 2.49,
          "type": "powerRail",
          "label": "+",
          "y": 0.5
        },
        {
          "id": "PWR+5",
          "x": 3.22,
          "z": -2.47,
          "type": "powerRail",
          "label": "+",
          "y": 0.5
        },
        {
          "id": "GND-1",
          "x": -2.74,
          "z": -2.2,
          "type": "groundRail",
          "label": "-",
          "y": 0.5
        },
        {
          "id": "GND-2",
          "x": -1.2,
          "z": 2.25,
          "type": "groundRail",
          "label": "-",
          "y": 0.5
        },
        {
          "id": "GND-3",
          "x": 0.19,
          "z": -2.16,
          "type": "groundRail",
          "label": "-",
          "y": 0.5
        },
        {
          "id": "GND-4",
          "x": 1.7,
          "z": 2.24,
          "type": "groundRail",
          "label": "-",
          "y": 0.5
        },
        {
          "id": "GND-5",
          "x": 3.22,
          "z": -2.21,
          "type": "groundRail",
          "label": "-",
          "y": 0.5
        },
        {
          "id": "A1",
          "x": -2.7,
          "z": -1.39,
          "type": "row",
          "label": "a1",
          "y": 0.5
        },
        {
          "id": "A5",
          "x": -0.75,
          "z": -1.37,
          "type": "row",
          "label": "a5",
          "y": 0.5
        },
        {
          "id": "A10",
          "x": 0.19,
          "z": -1.38,
          "type": "row",
          "label": "a10",
          "y": 0.5
        },
        {
          "id": "A15",
          "x": 2.23,
          "z": -1.4,
          "type": "row",
          "label": "a15",
          "y": 0.5
        },
        {
          "id": "A20",
          "x": 3.15,
          "z": -1.38,
          "type": "row",
          "label": "a20",
          "y": 0.5
        },
        {
          "id": "E1",
          "x": -2.27,
          "z": -0.38,
          "type": "row",
          "label": "e1",
          "y": 0.5
        },
        {
          "id": "E5",
          "x": -1.2,
          "z": -0.41,
          "type": "row",
          "label": "e5",
          "y": 0.5
        },
        {
          "id": "E10",
          "x": 0.69,
          "z": -0.42,
          "type": "row",
          "label": "e10",
          "y": 0.5
        },
        {
          "id": "E15",
          "x": 1.73,
          "z": -0.42,
          "type": "row",
          "label": "e15",
          "y": 0.5
        },
        {
          "id": "E20",
          "x": 3.69,
          "z": -0.41,
          "type": "row",
          "label": "e20",
          "y": 0.5
        },
        {
          "id": "F1",
          "x": -2.72,
          "z": 0.41,
          "type": "row",
          "label": "f1",
          "y": 0.5
        },
        {
          "id": "F5",
          "x": -0.75,
          "z": 0.45,
          "type": "row",
          "label": "f5",
          "y": 0.5
        },
        {
          "id": "F10",
          "x": 0.19,
          "z": 0.42,
          "type": "row",
          "label": "f10",
          "y": 0.5
        },
        {
          "id": "F15",
          "x": 2.2,
          "z": 0.44,
          "type": "row",
          "label": "f15",
          "y": 0.5
        },
        {
          "id": "F20",
          "x": 3.17,
          "z": 0.44,
          "type": "row",
          "label": "f20",
          "y": 0.5
        },
        {
          "id": "J1",
          "x": -2.25,
          "z": 1.41,
          "type": "row",
          "label": "j1",
          "y": 0.5
        },
        {
          "id": "J5",
          "x": -1.21,
          "z": 1.48,
          "type": "row",
          "label": "j5",
          "y": 0.5
        },
        {
          "id": "J10",
          "x": 0.72,
          "z": 1.39,
          "type": "row",
          "label": "j10",
          "y": 0.5
        },
        {
          "id": "J15",
          "x": 1.71,
          "z": 1.43,
          "type": "row",
          "label": "j15",
          "y": 0.5
        },
        {
          "id": "J20",
          "x": 3.71,
          "z": 1.38,
          "type": "row",
          "label": "j20",
          "y": 0.5
        }
      ],
      "model": "./models/components/breadboard.glb",
      "modelScale": 3
    },
    "led": {
      "name": "LED",
      "category": "output",
      "width": 0.8,
      "depth": 0.8,
      "color": "#FF1744",
      "colorDark": "#D50000",
      "icon": "💡",
      "maxCount": 8,
      "pins": [
        {
          "id": "anode",
          "x": 0.2,
          "z": -0.03,
          "type": "anode",
          "label": "+",
          "y": 0.85
        },
        {
          "id": "cathode",
          "x": -0.16,
          "z": 0,
          "type": "cathode",
          "label": "-",
          "y": 0.6
        }
      ],
      "model": "./models/components/led.glb",
      "modelY": 3
    },
    "resistor": {
      "name": "Perintang",
      "category": "litar",
      "width": 1.5,
      "depth": 0.5,
      "color": "#D4A574",
      "colorDark": "#B8885A",
      "icon": "⚡",
      "maxCount": 8,
      "pins": [
        {
          "id": "pin1",
          "x": -1.27,
          "z": -0.01,
          "type": "passive",
          "label": "1",
          "y": 1
        },
        {
          "id": "pin2",
          "x": 1.1,
          "z": 0,
          "type": "passive",
          "label": "2",
          "y": 1
        }
      ],
      "model": "./models/components/resistor.glb",
      "modelScale": 2.64,
      "modelY": 1
    },
    "pushbutton": {
      "name": "Butang Tekan",
      "category": "suis",
      "width": 1,
      "depth": 1,
      "color": "#424242",
      "colorDark": "#212121",
      "icon": "🔘",
      "maxCount": 4,
      "pins": [
        {
          "id": "pin1a",
          "x": 0.01,
          "z": 0,
          "type": "switch",
          "label": "1a",
          "y": 0.64
        },
        {
          "id": "pin1b",
          "x": 0.62,
          "z": -0.05,
          "type": "switch",
          "label": "1b",
          "y": 0.6
        }
      ],
      "model": "./models/components/pushbutton.glb",
      "modelScale": 1.75,
      "modelY": 0.31
    },
    "buzzer": {
      "name": "Buzzer",
      "category": "output",
      "width": 1,
      "depth": 1,
      "color": "#1A1A1A",
      "colorDark": "#000000",
      "icon": "🔔",
      "maxCount": 2,
      "pins": [
        {
          "id": "positive",
          "x": -0.49,
          "z": 0.04,
          "type": "anode",
          "label": "+",
          "y": 0.75
        },
        {
          "id": "negative",
          "x": 0.48,
          "z": -0.01,
          "type": "cathode",
          "label": "-",
          "y": 0.97
        }
      ],
      "model": "./models/components/buzzer.glb",
      "modelScale": 1.67,
      "modelY": 1.83
    },
    "potentiometer": {
      "name": "Potensiometer",
      "category": "input",
      "width": 1.2,
      "depth": 1.2,
      "color": "#3366AA",
      "colorDark": "#224488",
      "icon": "🎛️",
      "maxCount": 2,
      "pins": [
        {
          "id": "vcc",
          "x": -0.68,
          "z": -1.05,
          "type": "power",
          "label": "VCC",
          "y": 0.9
        },
        {
          "id": "signal",
          "x": 0.03,
          "z": 0.74,
          "type": "analog",
          "label": "SIG",
          "y": 0.9
        },
        {
          "id": "gnd",
          "x": 0.69,
          "z": -1.04,
          "type": "ground",
          "label": "GND",
          "y": 0.9
        }
      ],
      "model": "./models/components/potentiometer.glb",
      "modelScale": 1.95,
      "modelY": 1.75
    },
    "battery": {
      "name": "Bekalan Kuasa",
      "category": "kuasa",
      "width": 2,
      "depth": 1.5,
      "color": "#2E7D32",
      "colorDark": "#1B5E20",
      "icon": "🔋",
      "maxCount": 1,
      "pins": [
        {
          "id": "positive",
          "x": -0.5,
          "z": 0.65,
          "type": "power",
          "label": "+ 9V",
          "y": 1.06
        },
        {
          "id": "negative",
          "x": 0.5,
          "z": 0.65,
          "type": "ground",
          "label": "- GND",
          "y": 1.06
        }
      ],
      "model": "./models/components/battery.glb",
      "modelScale": 1.92
    }
  },
  "circuits": [
    {
      "placed": [
        {
          "id": "1771138607556_arduino",
          "typeId": "arduino",
          "x": 0,
          "z": 3,
          "rotY": 0,
          "modelScale": 3,
          "modelY": 0
        },
        {
          "id": "1771138612843_breadboard",
          "typeId": "breadboard",
          "x": 2,
          "z": -4.5,
          "rotY": 0,
          "modelScale": 3,
          "modelY": 0
        },
        {
          "id": "1771138620424_battery",
          "typeId": "battery",
          "x": -4,
          "z": 9.5,
          "rotY": 0,
          "modelScale": 1.92,
          "modelY": 0
        }
      ],
      "wires": [
        {
          "startComp": "1771138620424_battery",
          "startPin": "positive",
          "endComp": "1771138607556_arduino",
          "endPin": "VIN",
          "color": "#E53935"
        },
        {
          "startComp": "1771138620424_battery",
          "startPin": "negative",
          "endComp": "1771138607556_arduino",
          "endPin": "GND2",
          "color": "#333333"
        }
      ]
    }
  ]
}