{
"version": 1,
"author": "Uri Shaked",
"editor": "wokwi",
"parts": [
{ "type": "wokwi-vcc", "id": "vcc1", "top": -162.44, "left": -403.2, "attrs": {} },
{ "type": "wokwi-gnd", "id": "gnd1", "top": 297.6, "left": -67.8, "attrs": {} },
{
"type": "wokwi-buzzer",
"id": "bz1",
"top": -55.2,
"left": 136.2,
"attrs": { "volume": "1.0", "label": "KY-012" }
},
{
"type": "wokwi-led",
"id": "led2",
"top": -22.8,
"left": -44.2,
"attrs": { "color": "yellow" }
},
{ "type": "wokwi-led", "id": "led3", "top": -22.8, "left": 51.8, "attrs": { "color": "red" } },
{
"type": "wokwi-led",
"id": "led4",
"top": -22.8,
"left": 3.8,
"attrs": { "color": "limegreen" }
},
{ "type": "wokwi-gate-nand-2", "id": "nand1", "top": 211.2, "left": 48, "attrs": {} },
{
"type": "wokwi-gate-not",
"id": "not2",
"top": 163.4,
"left": 153.4,
"rotate": -90,
"attrs": {}
},
{
"type": "wokwi-pir-motion-sensor",
"id": "pir1",
"top": -24.8,
"left": -266.58,
"attrs": { "label": "HC-SR501" }
},
{
"type": "wokwi-flip-flop-d",
"id": "flop1",
"top": 153.6,
"left": -182.4,
"attrs": { "label": "HC-SR501" }
},
{
"type": "wokwi-pushbutton",
"id": "btn1",
"top": 150.2,
"left": -384,
"attrs": { "color": "grey", "bounce": "0" }
},
{
"type": "wokwi-resistor",
"id": "r1",
"top": 254.4,
"left": -422.95,
"rotate": 90,
"attrs": { "value": "1000" }
}
],
"connections": [
[ "bz1:1", "gnd1:GND", "blue", [ "v0" ] ],
[ "led2:C", "led4:C", "blue", [ "v28.8", "h48.4" ] ],
[ "led4:C", "led3:C", "blue", [ "v28.8", "h48.4" ] ],
[ "led3:C", "gnd1:GND", "blue", [ "v0" ] ],
[ "nand1:OUT", "not2:IN", "orange", [ "v0" ] ],
[ "not2:OUT", "bz1:2", "orange", [ "h0" ] ],
[ "pir1:VCC", "vcc1:VCC", "red", [ "h-163.2", "v-201.6" ] ],
[ "pir1:GND", "gnd1:GND", "blue", [ "v0" ] ],
[ "pir1:OUT", "nand1:B", "orange", [ "v0" ] ],
[ "flop1:D", "flop1:NOTQ", "green", [ "v-28.8", "h115.2", "v48" ] ],
[ "btn1:2.r", "flop1:CLK", "green", [ "v0.2", "h57.8", "v-19.2" ] ],
[ "r1:2", "pir1:GND", "blue", [ "h-0.55", "v8.4", "h87.21" ] ],
[ "led4:A", "flop1:Q", "orange", [ "v0" ] ],
[ "led3:A", "flop1:NOTQ", "orange", [ "v0" ] ],
[ "flop1:NOTQ", "nand1:A", "orange", [ "h19.2", "v38.4" ] ],
[ "btn1:2.l", "r1:1", "green", [ "h0" ] ],
[ "pir1:VCC", "btn1:1.r", "red", [ "v0" ] ],
[ "pir1:OUT", "led2:A", "orange", [ "v28.8", "h211.06" ] ]
],
"dependencies": {}
}
ERC Warnings
flop1:CLK: Clock driven by combinatorial logic