{
"version": 1,
"author": "Rafael Ruiz",
"editor": "wokwi",
"parts": [
{
"type": "board-esp32-devkit-c-v4",
"id": "esp",
"top": -38.4,
"left": -43.16,
"attrs": { "env": "micropython-20231005-v1.21.0" }
},
{ "type": "wokwi-led", "id": "led1", "top": -99.6, "left": 119, "attrs": { "color": "red" } },
{
"type": "wokwi-resistor",
"id": "r1",
"top": 4.8,
"left": 114.65,
"rotate": 90,
"attrs": { "value": "1000" }
},
{
"type": "wokwi-hc-sr04",
"id": "ultrasonic1",
"top": -104.1,
"left": -263.3,
"attrs": { "distance": "31" }
},
{
"type": "wokwi-led",
"id": "led2",
"top": -61.2,
"left": -341.8,
"attrs": { "color": "red" }
},
{
"type": "wokwi-led",
"id": "led3",
"top": -61.2,
"left": -389.8,
"attrs": { "color": "yellow" }
},
{
"type": "wokwi-led",
"id": "led4",
"top": -61.2,
"left": -437.8,
"attrs": { "color": "green" }
},
{
"type": "wokwi-resistor",
"id": "r2",
"top": 24,
"left": -346.15,
"rotate": 90,
"attrs": { "value": "1000" }
},
{
"type": "wokwi-resistor",
"id": "r3",
"top": 14.4,
"left": -394.15,
"rotate": 90,
"attrs": { "value": "1000" }
},
{
"type": "wokwi-resistor",
"id": "r4",
"top": 14.4,
"left": -442.15,
"rotate": 90,
"attrs": { "value": "1000" }
},
{
"type": "wokwi-buzzer",
"id": "bz1",
"top": -55.2,
"left": -507,
"attrs": { "volume": "0.1" }
}
],
"connections": [
[ "esp:TX", "$serialMonitor:RX", "", [] ],
[ "esp:RX", "$serialMonitor:TX", "", [] ],
[ "led1:A", "r1:1", "green", [ "v0" ] ],
[ "r1:2", "esp:17", "green", [ "h0", "v46.8" ] ],
[ "esp:GND.2", "led1:C", "black", [ "v-38.4" ] ],
[ "ultrasonic1:GND", "esp:GND.1", "black", [ "v0" ] ],
[ "ultrasonic1:VCC", "esp:5V", "red", [ "v182.4", "h28.8" ] ],
[ "ultrasonic1:TRIG", "esp:12", "green", [ "v0" ] ],
[ "ultrasonic1:ECHO", "esp:14", "green", [ "v0" ] ],
[ "esp:27", "r2:2", "green", [ "h0" ] ],
[ "r2:1", "led2:A", "green", [ "h0" ] ],
[ "esp:26", "r3:2", "green", [ "h0" ] ],
[ "esp:25", "r4:2", "green", [ "v0", "h-374.25" ] ],
[ "r3:1", "led3:A", "green", [ "h0" ] ],
[ "r4:1", "led4:A", "green", [ "h0" ] ],
[ "esp:GND.1", "led4:C", "black", [ "h-383.85", "v-134.4" ] ],
[ "led4:C", "led3:C", "green", [ "v0", "h-9.2", "v-48", "h48", "v48" ] ],
[ "led2:C", "led4:C", "green", [ "v0", "h-9.2", "v-48", "h-96", "v48" ] ],
[ "esp:GND.1", "bz1:1", "black", [ "h0" ] ],
[ "esp:13", "bz1:2", "green", [ "h-431.85", "v-96" ] ]
],
"dependencies": {}
}