{
"version": 1,
"author": "Alfi Syukri",
"editor": "wokwi",
"parts": [
{
"type": "board-st-nucleo-c031c6",
"id": "nucleo",
"top": -13.33,
"left": 296.67,
"attrs": {}
},
{ "type": "wokwi-vcc", "id": "vcc1", "top": -56.84, "left": 249.6, "attrs": {} },
{
"type": "wokwi-pushbutton",
"id": "btn1",
"top": -13,
"left": 153.6,
"attrs": { "color": "green", "xray": "1" }
},
{ "type": "wokwi-slide-switch", "id": "sw1", "top": 42.8, "left": 175.9, "attrs": {} },
{
"type": "wokwi-resistor",
"id": "r1",
"top": 91.2,
"left": 210.65,
"rotate": 90,
"attrs": { "value": "1000" }
},
{
"type": "wokwi-resistor",
"id": "r2",
"top": 81.6,
"left": 95.45,
"rotate": 90,
"attrs": { "value": "1000" }
},
{ "type": "wokwi-gnd", "id": "gnd1", "top": 268.8, "left": 181.8, "attrs": {} },
{
"type": "wokwi-rgb-led",
"id": "rgb1",
"top": 330.4,
"left": 289.1,
"attrs": { "common": "cathode" }
},
{
"type": "wokwi-buzzer",
"id": "bz1",
"top": 328.8,
"left": 405,
"attrs": { "volume": "0.1" }
},
{
"type": "wokwi-text",
"id": "text1",
"top": -67.2,
"left": 86.4,
"attrs": { "text": "INFRARED SENSOR" }
},
{
"type": "wokwi-text",
"id": "text2",
"top": -105.6,
"left": 19.2,
"attrs": {
"text": "Kondisi ketika Infrared sensor tidak mendeteksi benda dan switch on, maka LED menyala hijau"
}
}
],
"connections": [
[ "$serialMonitor:TX", "nucleo:PA3", "", [] ],
[ "$serialMonitor:RX", "nucleo:PA2", "", [] ],
[ "vcc1:VCC", "nucleo:5V.1", "red", [ "v0" ] ],
[ "sw1:3", "r1:2", "yellow", [ "v0" ] ],
[ "r1:1", "vcc1:VCC", "red", [ "h0" ] ],
[ "btn1:2.r", "vcc1:VCC", "red", [ "h0" ] ],
[ "btn1:1.r", "r2:1", "magenta", [ "v-38.4", "h-28.6" ] ],
[ "r1:2", "nucleo:PA0", "yellow", [ "h0", "v85.2" ] ],
[ "sw1:2", "nucleo:GND.3", "black", [ "v0" ] ],
[ "nucleo:GND.3", "gnd1:GND", "black", [ "h0" ] ],
[ "r2:1", "nucleo:PA1", "magenta", [ "h28.8", "v96" ] ],
[ "r2:2", "gnd1:GND", "black", [ "h0", "v123.6" ] ],
[ "bz1:2", "nucleo:PB2", "gold", [ "h153.2", "v-225.36" ] ],
[ "bz1:1", "rgb1:COM", "black", [ "h-124.9" ] ],
[ "rgb1:G", "nucleo:PB0.1", "green", [ "v19.2", "h68.5", "v-76.8", "h192", "v-52.56" ] ],
[ "rgb1:R", "nucleo:PB1", "red", [ "v19.2", "h-38.4", "v-76.8", "h57.65" ] ],
[ "rgb1:COM", "gnd1:GND", "black", [ "v28.4", "h-76.7", "v-86.4" ] ]
],
"dependencies": {}
}Loading
st-nucleo-c031c6
st-nucleo-c031c6
INFRARED SENSOR
Kondisi ketika Infrared sensor tidak mendeteksi benda dan switch on, maka LED menyala hijau