{
"version": 1,
"author": "Alex",
"editor": "wokwi",
"parts": [
{ "type": "wokwi-arduino-mega", "id": "mega", "top": 211.8, "left": -349.2, "attrs": {} },
{
"type": "chip-L298N",
"id": "L298N_chip1",
"top": 317.82,
"left": 148.8,
"attrs": { "Vs": "5" }
},
{
"type": "chip-L298N",
"id": "L298N_chip2",
"top": 83.6,
"left": -190.78,
"rotate": 270,
"attrs": { "Vs": "5" }
},
{
"type": "chip-scope",
"id": "scope1",
"top": -8.58,
"left": 475.2,
"attrs": {
"sampleTimeUs": "100",
"sampleTimeMs": "0",
"triggerChannel": "0",
"triggerMode": "1",
"crtColor": "0",
"trace0Color": "14",
"trace1Color": "12",
"trace2Color": "10",
"trace3Color": "2"
}
},
{ "type": "wokwi-vcc", "id": "vcc1", "top": 202.36, "left": 393.6, "attrs": {} },
{ "type": "wokwi-gnd", "id": "gnd1", "top": 470.4, "left": 297, "attrs": {} },
{ "type": "wokwi-led", "id": "led1", "top": 15.6, "left": 320.6, "attrs": { "color": "red" } },
{
"type": "wokwi-led",
"id": "led2",
"top": -61.2,
"left": 253.4,
"attrs": { "color": "red" }
},
{
"type": "wokwi-led",
"id": "led3",
"top": -70.8,
"left": 32.6,
"attrs": { "color": "blue" }
},
{
"type": "wokwi-led",
"id": "led4",
"top": -51.6,
"left": -82.6,
"attrs": { "color": "red" }
}
],
"connections": [
[ "L298N_chip1:5V", "vcc1:VCC", "orange", [ "h0" ] ],
[ "L298N_chip1:GND", "gnd1:GND", "black", [ "h0" ] ],
[ "uno:5V", "L298N_chip1:EN A", "red", [ "h-37.21", "v166.19", "h259.2", "v-144" ] ],
[ "uno:GND.2", "gnd1:GND", "black", [ "h-27.61", "v147.09", "h384" ] ],
[ "L298N_chip1:IN4", "mega:50", "green", [ "h0" ] ],
[ "L298N_chip1:IN3", "mega:48", "green", [ "h0" ] ],
[ "L298N_chip1:IN2", "mega:46", "green", [ "h0" ] ],
[ "L298N_chip1:IN1", "mega:44", "green", [ "h0" ] ],
[ "mega:GND.3", "gnd1:GND", "black", [ "v74.1", "h472.65" ] ],
[
"L298N_chip2:5V",
"L298N_chip1:5V",
"orange",
[ "v-11.41", "h355.2", "v220.8", "h86.4", "v57.6" ]
],
[ "L298N_chip2:EN A", "mega:7", "blue", [ "v0" ] ],
[ "L298N_chip2:IN1", "mega:6", "green", [ "v0" ] ],
[ "L298N_chip2:IN2", "mega:5", "green", [ "v0" ] ],
[ "L298N_chip2:IN3", "mega:4", "green", [ "v0" ] ],
[ "L298N_chip2:IN4", "mega:3", "green", [ "v0" ] ],
[ "L298N_chip2:EN B", "mega:2", "#8f4814", [ "v0" ] ],
[ "L298N_chip1:EN A", "mega:42", "blue", [ "h0" ] ],
[ "L298N_chip1:EN B", "mega:52", "#8f4814", [ "h0" ] ],
[ "L298N_chip2:GND", "L298N_chip1:GND", "black", [ "v-21.01", "h412.8", "v374.4" ] ],
[ "L298N_chip2:OUT1", "led4:C", "green", [ "v-59.41", "h9.6" ] ],
[ "L298N_chip2:OUT2", "led4:A", "green", [ "v-49.81", "h76.8" ] ],
[ "L298N_chip2:OUT3", "led3:C", "green", [ "v-40.21", "h163.2" ] ],
[ "L298N_chip2:OUT4", "led3:A", "green", [ "v-30.61", "h172.8" ] ],
[ "L298N_chip1:OUT1", "led2:C", "green", [ "h11.41", "v-336" ] ],
[ "L298N_chip1:OUT2", "led2:A", "green", [ "h21.01" ] ],
[ "L298N_chip1:OUT3", "led1:C", "green", [ "h78.61", "v-9.6" ] ],
[ "L298N_chip1:OUT4", "led1:A", "green", [ "h88.21", "v-19.2" ] ],
[ "led4:C", "scope1:D0", "green", [ "v9.6", "h547.6" ] ],
[ "led3:C", "scope1:D1", "green", [ "v0" ] ],
[ "led2:C", "scope1:D2", "green", [ "v0" ] ],
[ "led1:C", "scope1:D3", "green", [ "v9.6", "h86.8", "v-38.4" ] ],
[ "L298N_chip1:5V", "mega:5V", "orange", [ "h145.81", "v115.2", "h-9.6" ] ]
],
"dependencies": { "chip-scope": "github:Dlloydev/[email protected]" }
}