Raspberry Pi Wokwi diagram.json

{
  "version": 1,
  "author": "Richard Kaiser, www.rkaiser.de, Embedded C++ books and trainings",
  "editor": "wokwi",
  "parts": [
    { "type": "wokwi-pi-pico", "id": "pico", "top": -99.15, "left": 3.6, "attrs": {} },
    {
      "type": "wokwi-led",
      "id": "led1",
      "top": -118.8,
      "left": -140.2,
      "attrs": { "color": "red" }
    },
    {
      "type": "wokwi-led",
      "id": "led2",
      "top": -70.8,
      "left": -130.6,
      "attrs": { "color": "yellow" }
    },
    {
      "type": "wokwi-led",
      "id": "led3",
      "top": -13.2,
      "left": -140.2,
      "attrs": { "color": "limegreen" }
    },
    {
      "type": "wokwi-resistor",
      "id": "r1",
      "top": 3.95,
      "left": -86.4,
      "attrs": { "value": "1000" }
    },
    {
      "type": "wokwi-resistor",
      "id": "r2",
      "top": -44.05,
      "left": -86.4,
      "attrs": { "value": "1000" }
    },
    {
      "type": "wokwi-resistor",
      "id": "r3",
      "top": -82.45,
      "left": -86.4,
      "attrs": { "value": "1000" }
    },
    {
      "type": "wokwi-hc-sr04",
      "id": "ultrasonic1",
      "top": -248.1,
      "left": -90.5,
      "attrs": { "distance": "273" }
    },
    {
      "type": "wokwi-pushbutton",
      "id": "btn1",
      "top": 83,
      "left": -96,
      "attrs": { "color": "green" }
    },
    { "type": "wokwi-potentiometer", "id": "pot1", "top": -174.1, "left": 124.6, "attrs": {} }
  ],
  "connections": [
    [ "pico:GP0", "$serialMonitor:RX", "", [] ],
    [ "pico:GP1", "$serialMonitor:TX", "", [] ],
    [ "led1:A", "r3:1", "red", [ "v9.6", "h28.8" ] ],
    [ "pico:GP2", "r3:2", "red", [ "h-28.8", "v-48" ] ],
    [ "r2:1", "led2:A", "yellow", [ "h-9.6", "v9.6" ] ],
    [ "r1:1", "led3:A", "green", [ "h-9.6", "v19.2" ] ],
    [ "pico:GP4", "r2:2", "yellow", [ "h-19.2", "v9.6" ] ],
    [ "pico:GP5", "r1:2", "green", [ "h-28.8", "v38.4" ] ],
    [ "led1:C", "pico:GND.2", "black", [ "v67.2", "h96.4", "v-9.6" ] ],
    [ "led2:C", "pico:GND.2", "black", [ "v9.6", "h125.2" ] ],
    [ "led3:C", "pico:GND.2", "black", [ "v9.6", "h125.2", "v-57.6" ] ],
    [ "pico:GND.8", "ultrasonic1:GND", "black", [ "h30", "v-48", "h-94.8" ] ],
    [ "ultrasonic1:ECHO", "pico:GP12", "gold", [ "v28.8", "h-135.2", "v182.4" ] ],
    [ "ultrasonic1:TRIG", "pico:GP13", "orange", [ "v19.2", "h-134.8", "v201.6" ] ],
    [ "ultrasonic1:VCC", "pico:VSYS", "red", [ "v48", "h115.2", "v28.8" ] ],
    [ "pico:GND.4", "btn1:1.r", "black", [ "h-28.8", "v19.2" ] ],
    [ "pico:GP14", "btn1:2.l", "green", [ "h-19.2", "v48", "h-96", "v-19.4" ] ],
    [ "pot1:GND", "pico:GND.8", "black", [ "v38.4", "h-38.4", "v19.2" ] ],
    [ "pico:3V3", "pot1:VCC", "red", [ "h97.2", "v-57.6" ] ],
    [ "pico:GP26", "pot1:SIG", "cyan", [ "h87.6", "v-105.6" ] ]
  ],
  "dependencies": {}
}