Wokwi ESP32 diagram.json

{
  "version": 1,
  "author": "Richard Kaiser, www.rkaiser.de, Embedded C++ books and trainings",
  "editor": "wokwi",
  "parts": [
    { "type": "wokwi-esp32-devkit-v1", "id": "esp", "top": -4.9, "left": -149, "attrs": {} },
    {
      "type": "wokwi-led",
      "id": "led1",
      "top": 82.8,
      "left": 52.2,
      "attrs": { "color": "limegreen", "flip": "1" }
    },
    {
      "type": "wokwi-led",
      "id": "led2",
      "top": 44.4,
      "left": 52.2,
      "attrs": { "color": "yellow", "flip": "1" }
    },
    {
      "type": "wokwi-led",
      "id": "led3",
      "top": 6,
      "left": 52.2,
      "attrs": { "color": "red", "flip": "1" }
    },
    {
      "type": "wokwi-resistor",
      "id": "r1",
      "top": 129.05,
      "left": -20.6,
      "rotate": 180,
      "attrs": { "value": "1000" }
    },
    {
      "type": "wokwi-resistor",
      "id": "r2",
      "top": 100.25,
      "left": -20.6,
      "rotate": 180,
      "attrs": { "value": "1000" }
    },
    {
      "type": "wokwi-resistor",
      "id": "r3",
      "top": 71.45,
      "left": -20.6,
      "rotate": 180,
      "attrs": { "value": "1000" }
    },
    {
      "type": "wokwi-pushbutton",
      "id": "btn1",
      "top": 102.2,
      "left": -345.6,
      "attrs": { "color": "green", "bounce": "0" }
    },
    {
      "type": "wokwi-hc-sr04",
      "id": "ultrasonic1",
      "top": -104.1,
      "left": -340.1,
      "attrs": { "distance": "87" }
    },
    { "type": "wokwi-potentiometer", "id": "pot1", "top": -135.7, "left": -134.6, "attrs": {} }
  ],
  "connections": [
    [ "esp:TX0", "$serialMonitor:RX", "", [] ],
    [ "esp:RX0", "$serialMonitor:TX", "", [] ],
    [ "led3:A", "r3:1", "red", [ "h-9.6", "v19.2" ] ],
    [ "led2:A", "r2:1", "yellow", [ "h-19.2", "v19.2" ] ],
    [ "led1:A", "r1:1", "green", [ "h-19.2", "v9.6", "h-9.6" ] ],
    [ "led1:C", "esp:GND.1", "black", [ "v19.2", "h-96.4", "v0.1" ] ],
    [ "led2:C", "esp:GND.1", "black", [ "h18.8", "v67.2", "h-105.6", "v-9.5" ] ],
    [ "led3:C", "esp:GND.1", "black", [ "h28.4", "v115.2", "h-124.8", "v-19.1" ] ],
    [ "esp:GND.2", "btn1:2.l", "black", [ "h-38.4", "v19.1", "h-172.8", "v-29" ] ],
    [ "esp:D2", "r1:2", "green", [ "h9.3", "v8.9" ] ],
    [ "esp:D4", "r2:2", "yellow", [ "h9.3", "v-9.5" ] ],
    [ "esp:D5", "r3:2", "red", [ "h9.3", "v-9.6" ] ],
    [ "esp:D14", "btn1:1.r", "blue", [ "h-28.8", "v19.3" ] ],
    [ "ultrasonic1:VCC", "esp:VIN", "red", [ "v163.2", "h124.8" ] ],
    [ "ultrasonic1:GND", "esp:GND.2", "black", [ "v153.6", "h46.8", "v0.1" ] ],
    [ "ultrasonic1:TRIG", "esp:D13", "orange", [ "v144", "h114.8" ] ],
    [ "ultrasonic1:ECHO", "esp:D12", "gold", [ "v134.4", "h104.8" ] ],
    [ "pot1:GND", "esp:GND.2", "black", [ "v38.4", "h-57.6", "v172.9" ] ],
    [ "pot1:VCC", "esp:VIN", "red", [ "v57.6", "h-87.2", "v163.2" ] ],
    [ "pot1:SIG", "esp:VP", "green", [ "v48", "h-58", "v48.3" ] ]
  ],
  "dependencies": {}
}