{
"version": 1,
"author": "Uri Shaked",
"editor": "wokwi",
"parts": [
{
"type": "board-st-nucleo-c031c6",
"id": "nucleo",
"top": -47.17,
"left": -202.58,
"attrs": {}
},
{
"type": "wokwi-pushbutton",
"id": "btn1",
"top": 140.6,
"left": -566.4,
"attrs": { "color": "green", "xray": "1" }
},
{
"type": "wokwi-pushbutton",
"id": "btn2",
"top": 140.6,
"left": -460.8,
"attrs": { "color": "blue", "xray": "1" }
},
{ "type": "wokwi-vcc", "id": "vcc1", "top": -85.64, "left": -508.8, "attrs": {} },
{ "type": "wokwi-gnd", "id": "gnd1", "top": 230.4, "left": -509.4, "attrs": {} },
{ "type": "wokwi-vcc", "id": "vcc2", "top": -85.64, "left": -432, "attrs": {} },
{ "type": "wokwi-gnd", "id": "gnd2", "top": 230.4, "left": -403.8, "attrs": {} },
{ "type": "wokwi-junction", "id": "j1", "top": -100.8, "left": -600, "attrs": {} },
{
"type": "wokwi-relay-module",
"id": "relay1",
"top": -35.4,
"left": 243.6,
"rotate": 270,
"attrs": {}
},
{
"type": "wokwi-relay-module",
"id": "relay2",
"top": -35.4,
"left": 176.4,
"rotate": 270,
"attrs": {}
},
{ "type": "wokwi-vcc", "id": "vcc3", "top": -8.84, "left": 355.2, "attrs": {} },
{ "type": "wokwi-gnd", "id": "gnd3", "top": 86.4, "left": 354.6, "attrs": {} },
{
"type": "wokwi-text",
"id": "text1",
"top": -249.6,
"left": 230.4,
"attrs": { "text": "正转 反转" }
},
{ "type": "wokwi-text", "id": "text2", "top": 182.4, "left": -576, "attrs": { "text": "正转" } },
{ "type": "wokwi-text", "id": "text3", "top": 192, "left": -451.2, "attrs": { "text": "反转" } },
{
"type": "wokwi-led",
"id": "led1",
"top": -234,
"left": 195.8,
"attrs": { "color": "orange", "flip": "" }
},
{
"type": "wokwi-led",
"id": "led2",
"top": -234,
"left": 301.8,
"attrs": { "color": "green", "flip": "1" }
},
{ "type": "wokwi-vcc", "id": "vcc4", "top": -124.04, "left": 268.8, "attrs": {} },
{ "type": "wokwi-gnd", "id": "gnd4", "top": -115.2, "left": 181.8, "attrs": {} },
{
"type": "wokwi-resistor",
"id": "r3",
"top": -139.2,
"left": 210.65,
"rotate": 90,
"attrs": { "value": "1000" }
},
{
"type": "wokwi-resistor",
"id": "r4",
"top": -139.2,
"left": 287.45,
"rotate": 90,
"attrs": { "value": "1000" }
},
{
"type": "wokwi-led",
"id": "led3",
"top": -99.6,
"left": 618.2,
"attrs": { "color": "red" }
},
{ "type": "wokwi-gnd", "id": "gnd5", "top": -124.8, "left": 345, "attrs": {} },
{
"type": "wokwi-resistor",
"id": "r2",
"top": -14.4,
"left": -528.55,
"rotate": 90,
"attrs": { "value": "1000" }
},
{
"type": "wokwi-resistor",
"id": "r1",
"top": -14.4,
"left": -451.75,
"rotate": 90,
"attrs": { "value": "1000" }
}
],
"connections": [
[ "$serialMonitor:TX", "nucleo:PA3", "", [] ],
[ "$serialMonitor:RX", "nucleo:PA2", "", [] ],
[ "btn1:2.r", "gnd1:GND", "green", [ "h0" ] ],
[ "btn2:2.r", "gnd2:GND", "green", [ "h0" ] ],
[ "relay2:VCC", "relay1:VCC", "red", [ "v57.6", "h67.2" ] ],
[ "relay2:GND", "relay1:GND", "black", [ "v67.2", "h66.8" ] ],
[ "relay1:GND", "gnd3:GND", "black", [ "v0" ] ],
[ "vcc3:VCC", "relay1:VCC", "red", [ "v48", "h-19.2" ] ],
[ "nucleo:PA5", "relay2:IN", "green", [ "h0" ] ],
[ "nucleo:PA6", "relay1:IN", "green", [ "h0" ] ],
[ "r3:1", "led1:A", "green", [ "h0", "v-19.2" ] ],
[ "led1:C", "gnd4:GND", "green", [ "v0" ] ],
[ "vcc4:VCC", "relay2:NO", "red", [ "v9.6", "h-28.8" ] ],
[ "r3:2", "relay2:COM", "green", [ "h0" ] ],
[ "relay1:COM", "vcc4:VCC", "green", [ "v-30", "h-39.8" ] ],
[ "relay1:NO", "r4:2", "green", [ "v0" ] ],
[ "r4:1", "led2:A", "green", [ "h0" ] ],
[ "led2:C", "gnd5:GND", "green", [ "v9.6", "h18.8" ] ],
[ "r2:1", "vcc1:VCC", "green", [ "h0" ] ],
[ "r1:1", "vcc2:VCC", "green", [ "h0" ] ],
[ "r2:2", "btn1:1.r", "green", [ "h0" ] ],
[ "btn2:1.r", "r1:2", "green", [ "v-96", "h-28.6" ] ],
[ "r2:2", "nucleo:PD0", "green", [ "h19.2", "v46.8", "h240" ] ],
[ "r1:2", "nucleo:PD1", "green", [ "h19.2", "v27.6", "h201.6" ] ]
],
"dependencies": {}
}正转 反转
正转
反转