-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwokwi_sim_diagram.json
136 lines (136 loc) · 4.34 KB
/
wokwi_sim_diagram.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{
"version": 1,
"author": "HACKER3000",
"editor": "wokwi",
"parts": [
{ "type": "wokwi-arduino-uno", "id": "uno", "top": -35.16, "left": 175.25, "attrs": {} },
{
"type": "wokwi-slide-switch",
"id": "tank_full_sw",
"top": -131.68,
"left": 199.6,
"rotate": 270,
"attrs": { "value": "1" }
},
{
"type": "wokwi-slide-switch",
"id": "tank_empty_sw",
"top": -175.65,
"left": 200.65,
"rotate": 270,
"attrs": { "value": "" }
},
{
"type": "wokwi-led",
"id": "led1",
"top": -75.81,
"left": 184.88,
"rotate": 270,
"attrs": { "color": "cyan" }
},
{
"type": "wokwi-led",
"id": "led2",
"top": -103.69,
"left": 184.75,
"rotate": 270,
"attrs": { "color": "orange" }
},
{
"type": "wokwi-lcd1602",
"id": "lcd1",
"top": 218.65,
"left": 443.41,
"attrs": { "pins": "i2c" }
},
{ "type": "wokwi-ky-040", "id": "encoder1", "top": 115.58, "left": 460.9, "attrs": {} },
{
"type": "wokwi-ds1307",
"id": "rtc1",
"top": 263.3,
"left": 222.22,
"rotate": 180,
"attrs": {}
},
{
"type": "wokwi-slide-switch",
"id": "low_water_sw",
"top": -218.7,
"left": 201.2,
"rotate": 270,
"attrs": { "value": "1" }
},
{
"type": "wokwi-resistor",
"id": "r1",
"top": 390,
"left": 310.97,
"attrs": { "value": "15000" }
},
{
"type": "wokwi-resistor",
"id": "r2",
"top": 390,
"left": 383.16,
"attrs": { "value": "1200" }
},
{
"type": "wokwi-potentiometer",
"id": "fake_Vbat",
"top": 422.05,
"left": 374.08,
"rotate": 180,
"attrs": { "value": 1023 }
},
{
"type": "wokwi-slide-switch",
"id": "rain_detect",
"top": -268.71,
"left": 202.91,
"rotate": 270,
"attrs": { "value": "1" }
}
],
"connections": [
[ "led1:C", "uno:GND.2", "black", [ "h17.03", "v266.64", "h104.13" ] ],
[ "tank_full_sw:1", "tank_empty_sw:1", "black", [ "h10.51", "v-36.84" ] ],
[ "tank_full_sw:1", "led1:C", "black", [ "h10.51", "v54.8" ] ],
[ "uno:5V", "tank_full_sw:3", "red", [ "v26.2", "h-86.33", "v-333.39" ] ],
[ "tank_full_sw:3", "tank_empty_sw:3", "red", [ "h19.84", "v-49.47" ] ],
[ "uno:5V", "lcd1:VCC", "red", [ "v0" ] ],
[ "uno:GND.2", "lcd1:GND", "black", [ "v0" ] ],
[ "uno:A4", "lcd1:SDA", "green", [ "v0" ] ],
[ "uno:A5", "lcd1:SCL", "blue", [ "v0" ] ],
[ "led1:C", "led2:C", "black", [ "h17.1", "v-28.8" ] ],
[ "uno:GND.2", "rtc1:GND", "black", [ "v0" ] ],
[ "uno:5V", "rtc1:5V", "red", [ "v0" ] ],
[ "rtc1:SCL", "lcd1:SCL", "blue", [ "h65.12", "v-19.03" ] ],
[ "rtc1:SDA", "lcd1:SDA", "green", [ "h72.9", "v-6.49" ] ],
[ "tank_empty_sw:1", "low_water_sw:1", "black", [ "h9.2", "v-43.79" ] ],
[ "tank_empty_sw:3", "low_water_sw:3", "red", [ "h18.78", "v-1.12" ] ],
[ "r2:1", "r1:2", "gray", [ "v0" ] ],
[ "uno:GND.2", "r2:2", "black", [ "v191.42", "h96.43" ] ],
[ "uno:VIN", "r1:1", "orange", [ "v173.55", "h-52.78" ] ],
[ "rtc1:5V", "fake_Vbat:VCC", "red", [ "h-25.05", "v93.12" ] ],
[ "rtc1:GND", "fake_Vbat:GND", "black", [ "h-16.24", "v88.26", "h120.38" ] ],
[
"fake_Vbat:SIG",
"uno:A0",
"gray",
[ "v-47.02", "h-31.38", "v-66.06", "h23.49", "v-82.95", "h-19.82" ]
],
[ "led2:A", "uno:6", "violet", [ "h0" ] ],
[ "led1:A", "uno:7", "violet", [ "h0" ] ],
[ "uno:GND.2", "encoder1:GND", "black", [ "v32.5", "h243.43", "v-27.79" ] ],
[ "uno:5V", "encoder1:VCC", "red", [ "v42.51", "h265.71", "v-43.9" ] ],
[ "encoder1:SW", "uno:5", "white", [ "h16.46", "v-231.13", "h-215.65" ] ],
[ "encoder1:DT", "uno:4", "white", [ "h9.07", "v-211.85", "h-196.44" ] ],
[ "encoder1:CLK", "uno:3", "white", [ "h1.07", "v-194.34", "h-175.72" ] ],
[ "tank_full_sw:2", "uno:A3", "gold", [ "h297.36", "v217.58", "h-112.21" ] ],
[ "tank_empty_sw:2", "uno:A2", "gold", [ "h281.01", "v249.89", "h-103.47" ] ],
[ "low_water_sw:2", "uno:A1", "gold", [ "h265.15", "v282.01", "h-103.47" ] ],
[ "low_water_sw:3", "rain_detect:3", "red", [ "h19.15", "v-64.17" ] ],
[ "low_water_sw:1", "rain_detect:1", "black", [ "h10.08", "v-59.49" ] ],
[ "rain_detect:2", "uno:8", "gold", [ "h0" ] ]
]
}