eunzee commited on
Commit
8e53a3e
·
verified ·
1 Parent(s): 74a40f1

upload Arduino Uno and ESP32 project files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. arduino/level1/7_segment_display_basic/description.md +30 -0
  2. arduino/level1/7_segment_display_basic/description_no_pin.md +30 -0
  3. arduino/level1/7_segment_display_basic/diagram.json +242 -0
  4. arduino/level1/7_segment_display_basic/diagram_breadboard.json +399 -0
  5. arduino/level1/7_segment_display_basic/diagram_breadboard_shdf.json +214 -0
  6. arduino/level1/7_segment_display_basic/diagram_shdf.json +138 -0
  7. arduino/level1/7_segment_display_basic/platformio.ini +20 -0
  8. arduino/level1/7_segment_display_basic/scenario.yaml +37 -0
  9. arduino/level1/7_segment_display_basic/src/main.ino +36 -0
  10. arduino/level1/7_segment_display_basic/wokwi.toml +4 -0
  11. arduino/level1/LCD_display_basic/description.md +25 -0
  12. arduino/level1/LCD_display_basic/description_no_pin.md +25 -0
  13. arduino/level1/LCD_display_basic/diagram.json +90 -0
  14. arduino/level1/LCD_display_basic/diagram_breadboard.json +191 -0
  15. arduino/level1/LCD_display_basic/platformio.ini +21 -0
  16. arduino/level1/LCD_display_basic/scenario.yaml +9 -0
  17. arduino/level1/LCD_display_basic/screenshots/0.png +3 -0
  18. arduino/level1/LCD_display_basic/src/main.ino +28 -0
  19. arduino/level1/LCD_display_basic/wokwi.toml +4 -0
  20. arduino/level1/RTC_module_basic/description.md +34 -0
  21. arduino/level1/RTC_module_basic/description_no_pin.md +34 -0
  22. arduino/level1/RTC_module_basic/diagram.json +67 -0
  23. arduino/level1/RTC_module_basic/diagram_breadboard.json +126 -0
  24. arduino/level1/RTC_module_basic/diagram_breadboard_shdf.json +62 -0
  25. arduino/level1/RTC_module_basic/diagram_shdf.json +30 -0
  26. arduino/level1/RTC_module_basic/platformio.ini +21 -0
  27. arduino/level1/RTC_module_basic/scenario.yaml +11 -0
  28. arduino/level1/RTC_module_basic/src/main.ino +41 -0
  29. arduino/level1/RTC_module_basic/wokwi.toml +4 -0
  30. arduino/level1/bar_led_basic/description.md +32 -0
  31. arduino/level1/bar_led_basic/description_no_pin.md +32 -0
  32. arduino/level1/bar_led_basic/diagram.json +400 -0
  33. arduino/level1/bar_led_basic/diagram_breadboard.json +608 -0
  34. arduino/level1/bar_led_basic/diagram_breadboard_shdf.json +319 -0
  35. arduino/level1/bar_led_basic/diagram_shdf.json +207 -0
  36. arduino/level1/bar_led_basic/platformio.ini +20 -0
  37. arduino/level1/bar_led_basic/scenario.yaml +86 -0
  38. arduino/level1/bar_led_basic/src/main.ino +25 -0
  39. arduino/level1/bar_led_basic/wokwi.toml +4 -0
  40. arduino/level1/buzzer_basic/description.md +26 -0
  41. arduino/level1/buzzer_basic/description_no_pin.md +26 -0
  42. arduino/level1/buzzer_basic/diagram.json +42 -0
  43. arduino/level1/buzzer_basic/diagram_breadboard.json +1 -0
  44. arduino/level1/buzzer_basic/diagram_breadboard_shdf.json +34 -0
  45. arduino/level1/buzzer_basic/diagram_shdf.json +22 -0
  46. arduino/level1/buzzer_basic/platformio.ini +20 -0
  47. arduino/level1/buzzer_basic/scenario.yaml +12 -0
  48. arduino/level1/buzzer_basic/src/main.ino +15 -0
  49. arduino/level1/buzzer_basic/wokwi.toml +4 -0
  50. arduino/level1/distance_sensor_basic/description.md +27 -0
arduino/level1/7_segment_display_basic/description.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # One Digit 7-segment Display
2
+
3
+ ## Project Description
4
+ This is an Arduino project that show number 5 with digit 7-segment display.
5
+
6
+ ## Hardware Components
7
+ - Arduino Uno
8
+ - 330Ω resistor * 8
9
+ - 7-segment display
10
+
11
+ ## Circuit Description
12
+ Circuit is designed to use a 7-segment display. The 7-segment display is a common anode type, so the common pin is connected to 5V. The A to G and DP pins are connected to Arduino digital pins 2 to 9 through 330-ohm resistors.
13
+
14
+ ## Expected Behavior
15
+ When the Arduino powers up, it should:
16
+ 1. Set 2~9 pin as an output.
17
+ 2. Taking into account that the display is common anode, set the corresponding pins to HIGH or LOW so that the number 5 appears on the 7-segment display.
18
+
19
+ ## Success Criteria
20
+ The test is successful when:
21
+ 1. The number 5 appears on the 7-segment display.
22
+
23
+ ## Notes for Implementation
24
+ - The 7-segment display is a common anode type.
25
+
26
+ ## Variants
27
+ This project may have different variants with the segment pins connected to the different pins.
28
+
29
+ ## Attributes
30
+ - To use 330Ω resistor, set the property name "value" to "330 ohm".
arduino/level1/7_segment_display_basic/description_no_pin.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # One Digit 7-segment Display
2
+
3
+ ## Project Description
4
+ This is an Arduino project that show number 5 with digit 7-segment display.
5
+
6
+ ## Hardware Components
7
+ - Arduino Uno
8
+ - 330Ω resistor * 8
9
+ - 7-segment display
10
+
11
+ ## Circuit Description
12
+ Circuit is designed to use a 7-segment display. The 7-segment display is a common anode type. The A to G and DP pins are connected to Arduino through 330-ohm resistors.
13
+
14
+ ## Expected Behavior
15
+ When the Arduino powers up, it should:
16
+ 1. Set segment pins as an output.
17
+ 2. Taking into account that the display is common anode, set the corresponding pins to HIGH or LOW so that the number 5 appears on the 7-segment display.
18
+
19
+ ## Success Criteria
20
+ The test is successful when:
21
+ 1. The number 5 appears on the 7-segment display.
22
+
23
+ ## Notes for Implementation
24
+ - The 7-segment display is a common anode type.
25
+
26
+ ## Variants
27
+ This project may have different variants with the segment pins connected to the different pins.
28
+
29
+ ## Attributes
30
+ - To use 330Ω resistor, set the property name "value" to "330 ohm".
arduino/level1/7_segment_display_basic/diagram.json ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1,
3
+ "author": "Blind Author",
4
+ "description": "Use one digit 7-segment display",
5
+ "parts": [
6
+ {
7
+ "type": "wokwi-arduino-uno",
8
+ "id": "arduino uno1",
9
+ "top": 0,
10
+ "left": 0,
11
+ "attrs": {}
12
+ },
13
+ {
14
+ "type": "wokwi-7segment",
15
+ "id": "7-segment display1",
16
+ "top": 24.18,
17
+ "left": 408.28,
18
+ "attrs": {}
19
+ },
20
+ {
21
+ "type": "wokwi-resistor",
22
+ "id": "resistor1",
23
+ "top": 128.75,
24
+ "left": 451.2,
25
+ "attrs": {
26
+ "value": "330"
27
+ }
28
+ },
29
+ {
30
+ "type": "wokwi-resistor",
31
+ "id": "resistor2",
32
+ "top": -15.25,
33
+ "left": 451.2,
34
+ "attrs": {
35
+ "value": "330"
36
+ }
37
+ },
38
+ {
39
+ "type": "wokwi-resistor",
40
+ "id": "resistor3",
41
+ "top": 109.55,
42
+ "left": 441.6,
43
+ "attrs": {
44
+ "value": "330"
45
+ }
46
+ },
47
+ {
48
+ "type": "wokwi-resistor",
49
+ "id": "resistor4",
50
+ "top": 128.75,
51
+ "left": 355.2,
52
+ "attrs": {
53
+ "value": "330"
54
+ }
55
+ },
56
+ {
57
+ "type": "wokwi-resistor",
58
+ "id": "resistor5",
59
+ "top": 109.55,
60
+ "left": 364.8,
61
+ "attrs": {
62
+ "value": "330"
63
+ }
64
+ },
65
+ {
66
+ "type": "wokwi-resistor",
67
+ "id": "resistor6",
68
+ "top": -15.25,
69
+ "left": 345.6,
70
+ "attrs": {
71
+ "value": "330"
72
+ }
73
+ },
74
+ {
75
+ "type": "wokwi-resistor",
76
+ "id": "resistor7",
77
+ "top": 3.95,
78
+ "left": 364.8,
79
+ "attrs": {
80
+ "value": "330"
81
+ }
82
+ },
83
+ {
84
+ "type": "wokwi-resistor",
85
+ "id": "resistor8",
86
+ "top": 3.95,
87
+ "left": 441.6,
88
+ "attrs": {
89
+ "value": "330"
90
+ }
91
+ }
92
+ ],
93
+ "connections": [
94
+ [
95
+ "7-segment display1:F",
96
+ "resistor7:2",
97
+ "green",
98
+ [
99
+ "v0"
100
+ ]
101
+ ],
102
+ [
103
+ "7-segment display1:A",
104
+ "resistor8:1",
105
+ "green",
106
+ [
107
+ "v0"
108
+ ]
109
+ ],
110
+ [
111
+ "7-segment display1:G",
112
+ "resistor6:2",
113
+ "green",
114
+ [
115
+ "v0"
116
+ ]
117
+ ],
118
+ [
119
+ "7-segment display1:B",
120
+ "resistor2:1",
121
+ "green",
122
+ [
123
+ "v0"
124
+ ]
125
+ ],
126
+ [
127
+ "resistor5:2",
128
+ "7-segment display1:D",
129
+ "green",
130
+ [
131
+ "v0"
132
+ ]
133
+ ],
134
+ [
135
+ "7-segment display1:C",
136
+ "resistor3:1",
137
+ "green",
138
+ [
139
+ "v0"
140
+ ]
141
+ ],
142
+ [
143
+ "7-segment display1:E",
144
+ "resistor4:2",
145
+ "green",
146
+ [
147
+ "v0"
148
+ ]
149
+ ],
150
+ [
151
+ "7-segment display1:DP",
152
+ "resistor1:1",
153
+ "green",
154
+ [
155
+ "v0"
156
+ ]
157
+ ],
158
+ [
159
+ "7-segment display1:COM.1",
160
+ "arduino uno1:5V",
161
+ "green",
162
+ [
163
+ "h0",
164
+ "v124.8"
165
+ ]
166
+ ],
167
+ [
168
+ "resistor8:2",
169
+ "arduino uno1:2",
170
+ "green",
171
+ [
172
+ "v-19.2",
173
+ "h-260.4"
174
+ ]
175
+ ],
176
+ [
177
+ "resistor2:2",
178
+ "arduino uno1:3",
179
+ "green",
180
+ [
181
+ "v-9.6",
182
+ "h-279.6"
183
+ ]
184
+ ],
185
+ [
186
+ "resistor3:2",
187
+ "arduino uno1:4",
188
+ "green",
189
+ [
190
+ "v0",
191
+ "h27.6",
192
+ "v-144",
193
+ "h-307.2"
194
+ ]
195
+ ],
196
+ [
197
+ "resistor5:1",
198
+ "arduino uno1:5",
199
+ "green",
200
+ [
201
+ "v-153.6",
202
+ "h-153.6"
203
+ ]
204
+ ],
205
+ [
206
+ "resistor4:1",
207
+ "arduino uno1:6",
208
+ "green",
209
+ [
210
+ "v-182.4",
211
+ "h-153.6"
212
+ ]
213
+ ],
214
+ [
215
+ "resistor7:1",
216
+ "arduino uno1:7",
217
+ "green",
218
+ [
219
+ "v-67.2",
220
+ "h-172.8"
221
+ ]
222
+ ],
223
+ [
224
+ "resistor6:1",
225
+ "arduino uno1:8",
226
+ "green",
227
+ [
228
+ "v-57.6",
229
+ "h-172.8"
230
+ ]
231
+ ],
232
+ [
233
+ "resistor1:2",
234
+ "arduino uno1:9",
235
+ "green",
236
+ [
237
+ "v-211.2",
238
+ "h-346.8"
239
+ ]
240
+ ]
241
+ ]
242
+ }
arduino/level1/7_segment_display_basic/diagram_breadboard.json ADDED
@@ -0,0 +1,399 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1,
3
+ "author": "Blind Author",
4
+ "description": "Use one digit 7-segment display",
5
+ "config": {
6
+ "button_pin": 4,
7
+ "gnd_pin": "GND.3"
8
+ },
9
+ "parts": [
10
+ {
11
+ "type": "wokwi-breadboard",
12
+ "id": "breadboard1",
13
+ "top": -127.8,
14
+ "left": 338.8,
15
+ "attrs": {}
16
+ },
17
+ {
18
+ "type": "wokwi-arduino-uno",
19
+ "id": "arduino uno1",
20
+ "top": 115.8,
21
+ "left": 527.4,
22
+ "attrs": {}
23
+ },
24
+ {
25
+ "type": "wokwi-7segment",
26
+ "id": "7-segment display1",
27
+ "top": -62.22,
28
+ "left": 629.08,
29
+ "attrs": {}
30
+ },
31
+ {
32
+ "type": "wokwi-resistor",
33
+ "id": "resistor1",
34
+ "top": 23.15,
35
+ "left": 672,
36
+ "attrs": {
37
+ "value": "330"
38
+ }
39
+ },
40
+ {
41
+ "type": "wokwi-resistor",
42
+ "id": "resistor2",
43
+ "top": -72.85,
44
+ "left": 662.4,
45
+ "attrs": {
46
+ "value": "330"
47
+ }
48
+ },
49
+ {
50
+ "type": "wokwi-resistor",
51
+ "id": "resistor3",
52
+ "top": 13.55,
53
+ "left": 662.4,
54
+ "attrs": {
55
+ "value": "330"
56
+ }
57
+ },
58
+ {
59
+ "type": "wokwi-resistor",
60
+ "id": "resistor4",
61
+ "top": 23.15,
62
+ "left": 576,
63
+ "attrs": {
64
+ "value": "330"
65
+ }
66
+ },
67
+ {
68
+ "type": "wokwi-resistor",
69
+ "id": "resistor5",
70
+ "top": 13.55,
71
+ "left": 585.6,
72
+ "attrs": {
73
+ "value": "330"
74
+ }
75
+ },
76
+ {
77
+ "type": "wokwi-resistor",
78
+ "id": "resistor6",
79
+ "top": -82.45,
80
+ "left": 576,
81
+ "attrs": {
82
+ "value": "330"
83
+ }
84
+ },
85
+ {
86
+ "type": "wokwi-resistor",
87
+ "id": "resistor7",
88
+ "top": -72.85,
89
+ "left": 585.6,
90
+ "attrs": {
91
+ "value": "330"
92
+ }
93
+ },
94
+ {
95
+ "type": "wokwi-resistor",
96
+ "id": "resistor8",
97
+ "top": -82.45,
98
+ "left": 672,
99
+ "attrs": {
100
+ "value": "330"
101
+ }
102
+ }
103
+ ],
104
+ "connections": [
105
+ [
106
+ "7-segment display1:COM.1",
107
+ "breadboard1:31b.h",
108
+ "",
109
+ [
110
+ "$bb"
111
+ ]
112
+ ],
113
+ [
114
+ "7-segment display1:COM.2",
115
+ "breadboard1:31t.c",
116
+ "",
117
+ [
118
+ "$bb"
119
+ ]
120
+ ],
121
+ [
122
+ "7-segment display1:A",
123
+ "breadboard1:32t.c",
124
+ "",
125
+ [
126
+ "$bb"
127
+ ]
128
+ ],
129
+ [
130
+ "7-segment display1:B",
131
+ "breadboard1:33t.c",
132
+ "",
133
+ [
134
+ "$bb"
135
+ ]
136
+ ],
137
+ [
138
+ "7-segment display1:C",
139
+ "breadboard1:32b.h",
140
+ "",
141
+ [
142
+ "$bb"
143
+ ]
144
+ ],
145
+ [
146
+ "7-segment display1:D",
147
+ "breadboard1:30b.h",
148
+ "",
149
+ [
150
+ "$bb"
151
+ ]
152
+ ],
153
+ [
154
+ "7-segment display1:E",
155
+ "breadboard1:29b.h",
156
+ "",
157
+ [
158
+ "$bb"
159
+ ]
160
+ ],
161
+ [
162
+ "7-segment display1:F",
163
+ "breadboard1:30t.c",
164
+ "",
165
+ [
166
+ "$bb"
167
+ ]
168
+ ],
169
+ [
170
+ "7-segment display1:G",
171
+ "breadboard1:29t.c",
172
+ "",
173
+ [
174
+ "$bb"
175
+ ]
176
+ ],
177
+ [
178
+ "7-segment display1:DP",
179
+ "breadboard1:33b.h",
180
+ "",
181
+ [
182
+ "$bb"
183
+ ]
184
+ ],
185
+ [
186
+ "resistor1:1",
187
+ "breadboard1:33b.j",
188
+ "",
189
+ [
190
+ "$bb"
191
+ ]
192
+ ],
193
+ [
194
+ "resistor1:2",
195
+ "breadboard1:39b.j",
196
+ "",
197
+ [
198
+ "$bb"
199
+ ]
200
+ ],
201
+ [
202
+ "resistor2:1",
203
+ "breadboard1:32t.b",
204
+ "",
205
+ [
206
+ "$bb"
207
+ ]
208
+ ],
209
+ [
210
+ "resistor2:2",
211
+ "breadboard1:38t.b",
212
+ "",
213
+ [
214
+ "$bb"
215
+ ]
216
+ ],
217
+ [
218
+ "resistor3:1",
219
+ "breadboard1:32b.i",
220
+ "",
221
+ [
222
+ "$bb"
223
+ ]
224
+ ],
225
+ [
226
+ "resistor3:2",
227
+ "breadboard1:38b.i",
228
+ "",
229
+ [
230
+ "$bb"
231
+ ]
232
+ ],
233
+ [
234
+ "resistor4:1",
235
+ "breadboard1:23b.j",
236
+ "",
237
+ [
238
+ "$bb"
239
+ ]
240
+ ],
241
+ [
242
+ "resistor4:2",
243
+ "breadboard1:29b.j",
244
+ "",
245
+ [
246
+ "$bb"
247
+ ]
248
+ ],
249
+ [
250
+ "resistor5:1",
251
+ "breadboard1:24b.i",
252
+ "",
253
+ [
254
+ "$bb"
255
+ ]
256
+ ],
257
+ [
258
+ "resistor5:2",
259
+ "breadboard1:30b.i",
260
+ "",
261
+ [
262
+ "$bb"
263
+ ]
264
+ ],
265
+ [
266
+ "resistor6:1",
267
+ "breadboard1:23t.a",
268
+ "",
269
+ [
270
+ "$bb"
271
+ ]
272
+ ],
273
+ [
274
+ "resistor6:2",
275
+ "breadboard1:29t.a",
276
+ "",
277
+ [
278
+ "$bb"
279
+ ]
280
+ ],
281
+ [
282
+ "resistor7:1",
283
+ "breadboard1:24t.b",
284
+ "",
285
+ [
286
+ "$bb"
287
+ ]
288
+ ],
289
+ [
290
+ "resistor7:2",
291
+ "breadboard1:30t.b",
292
+ "",
293
+ [
294
+ "$bb"
295
+ ]
296
+ ],
297
+ [
298
+ "resistor8:1",
299
+ "breadboard1:33t.a",
300
+ "",
301
+ [
302
+ "$bb"
303
+ ]
304
+ ],
305
+ [
306
+ "resistor8:2",
307
+ "breadboard1:39t.a",
308
+ "",
309
+ [
310
+ "$bb"
311
+ ]
312
+ ],
313
+ [
314
+ "breadboard1:38t.d",
315
+ "arduino uno1:2",
316
+ "green",
317
+ [
318
+ "v134.4",
319
+ "h48"
320
+ ]
321
+ ],
322
+ [
323
+ "breadboard1:39t.d",
324
+ "arduino uno1:3",
325
+ "green",
326
+ [
327
+ "v144",
328
+ "h19.2"
329
+ ]
330
+ ],
331
+ [
332
+ "breadboard1:38b.g",
333
+ "arduino uno1:4",
334
+ "green",
335
+ [
336
+ "v105.6",
337
+ "h28.8"
338
+ ]
339
+ ],
340
+ [
341
+ "breadboard1:24b.g",
342
+ "arduino uno1:5",
343
+ "green",
344
+ [
345
+ "v0",
346
+ "h-57.6",
347
+ "v76.8",
348
+ "h201.6"
349
+ ]
350
+ ],
351
+ [
352
+ "breadboard1:23b.h",
353
+ "arduino uno1:6",
354
+ "green",
355
+ [
356
+ "v0",
357
+ "h-38.4",
358
+ "v76.8",
359
+ "h182.4"
360
+ ]
361
+ ],
362
+ [
363
+ "breadboard1:24t.d",
364
+ "arduino uno1:7",
365
+ "green",
366
+ [
367
+ "v144",
368
+ "h124.8"
369
+ ]
370
+ ],
371
+ [
372
+ "breadboard1:23t.d",
373
+ "arduino uno1:8",
374
+ "green",
375
+ [
376
+ "v153.6",
377
+ "h124.8"
378
+ ]
379
+ ],
380
+ [
381
+ "breadboard1:39b.h",
382
+ "arduino uno1:9",
383
+ "green",
384
+ [
385
+ "v38.4",
386
+ "h-38.4"
387
+ ]
388
+ ],
389
+ [
390
+ "breadboard1:31b.j",
391
+ "arduino uno1:5V",
392
+ "green",
393
+ [
394
+ "v0"
395
+ ]
396
+ ]
397
+ ],
398
+ "dependencies": {}
399
+ }
arduino/level1/7_segment_display_basic/diagram_breadboard_shdf.json ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "components": [
3
+ {
4
+ "id": "bb1",
5
+ "type": "breadboard"
6
+ },
7
+ {
8
+ "id": "uno",
9
+ "type": "arduino uno"
10
+ },
11
+ {
12
+ "id": "sevseg1",
13
+ "type": "7-segment display"
14
+ },
15
+ {
16
+ "id": "r1",
17
+ "type": "resistor",
18
+ "properties": {
19
+ "value": "330 ohm"
20
+ }
21
+ },
22
+ {
23
+ "id": "r2",
24
+ "type": "resistor",
25
+ "properties": {
26
+ "value": "330 ohm"
27
+ }
28
+ },
29
+ {
30
+ "id": "r3",
31
+ "type": "resistor",
32
+ "properties": {
33
+ "value": "330 ohm"
34
+ }
35
+ },
36
+ {
37
+ "id": "r4",
38
+ "type": "resistor",
39
+ "properties": {
40
+ "value": "330 ohm"
41
+ }
42
+ },
43
+ {
44
+ "id": "r5",
45
+ "type": "resistor",
46
+ "properties": {
47
+ "value": "330 ohm"
48
+ }
49
+ },
50
+ {
51
+ "id": "r6",
52
+ "type": "resistor",
53
+ "properties": {
54
+ "value": "330 ohm"
55
+ }
56
+ },
57
+ {
58
+ "id": "r7",
59
+ "type": "resistor",
60
+ "properties": {
61
+ "value": "330 ohm"
62
+ }
63
+ },
64
+ {
65
+ "id": "r8",
66
+ "type": "resistor",
67
+ "properties": {
68
+ "value": "330 ohm"
69
+ }
70
+ }
71
+ ],
72
+ "connections": [
73
+ [
74
+ "sevseg1.com.1",
75
+ "bb1.pin31b.h"
76
+ ],
77
+ [
78
+ "sevseg1.com.2",
79
+ "bb1.pin31t.c"
80
+ ],
81
+ [
82
+ "sevseg1.a",
83
+ "bb1.pin32t.c"
84
+ ],
85
+ [
86
+ "sevseg1.b",
87
+ "bb1.pin33t.c"
88
+ ],
89
+ [
90
+ "sevseg1.c",
91
+ "bb1.pin32b.h"
92
+ ],
93
+ [
94
+ "sevseg1.d",
95
+ "bb1.pin30b.h"
96
+ ],
97
+ [
98
+ "sevseg1.e",
99
+ "bb1.pin29b.h"
100
+ ],
101
+ [
102
+ "sevseg1.f",
103
+ "bb1.pin30t.c"
104
+ ],
105
+ [
106
+ "sevseg1.g",
107
+ "bb1.pin29t.c"
108
+ ],
109
+ [
110
+ "sevseg1.dp",
111
+ "bb1.pin33b.h"
112
+ ],
113
+ [
114
+ "r1.1",
115
+ "bb1.pin33b.j"
116
+ ],
117
+ [
118
+ "r1.2",
119
+ "bb1.pin39b.j"
120
+ ],
121
+ [
122
+ "r2.1",
123
+ "bb1.pin32t.b"
124
+ ],
125
+ [
126
+ "r2.2",
127
+ "bb1.pin38t.b"
128
+ ],
129
+ [
130
+ "r3.1",
131
+ "bb1.pin32b.i"
132
+ ],
133
+ [
134
+ "r3.2",
135
+ "bb1.pin38b.i"
136
+ ],
137
+ [
138
+ "r4.1",
139
+ "bb1.pin23b.j"
140
+ ],
141
+ [
142
+ "r4.2",
143
+ "bb1.pin29b.j"
144
+ ],
145
+ [
146
+ "r5.1",
147
+ "bb1.pin24b.i"
148
+ ],
149
+ [
150
+ "r5.2",
151
+ "bb1.pin30b.i"
152
+ ],
153
+ [
154
+ "r6.1",
155
+ "bb1.pin23t.a"
156
+ ],
157
+ [
158
+ "r6.2",
159
+ "bb1.pin29t.a"
160
+ ],
161
+ [
162
+ "r7.1",
163
+ "bb1.pin24t.b"
164
+ ],
165
+ [
166
+ "r7.2",
167
+ "bb1.pin30t.b"
168
+ ],
169
+ [
170
+ "r8.1",
171
+ "bb1.pin33t.a"
172
+ ],
173
+ [
174
+ "r8.2",
175
+ "bb1.pin39t.a"
176
+ ],
177
+ [
178
+ "bb1.pin38t.d",
179
+ "uno.2"
180
+ ],
181
+ [
182
+ "bb1.pin39t.d",
183
+ "uno.3"
184
+ ],
185
+ [
186
+ "bb1.pin38b.g",
187
+ "uno.4"
188
+ ],
189
+ [
190
+ "bb1.pin24b.g",
191
+ "uno.5"
192
+ ],
193
+ [
194
+ "bb1.pin23b.h",
195
+ "uno.6"
196
+ ],
197
+ [
198
+ "bb1.pin24t.d",
199
+ "uno.7"
200
+ ],
201
+ [
202
+ "bb1.pin23t.d",
203
+ "uno.8"
204
+ ],
205
+ [
206
+ "bb1.pin39b.h",
207
+ "uno.9"
208
+ ],
209
+ [
210
+ "bb1.pin31b.j",
211
+ "uno.5v"
212
+ ]
213
+ ]
214
+ }
arduino/level1/7_segment_display_basic/diagram_shdf.json ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "components": [
3
+ {
4
+ "id": "uno",
5
+ "type": "arduino uno"
6
+ },
7
+ {
8
+ "id": "sevseg1",
9
+ "type": "7-segment display"
10
+ },
11
+ {
12
+ "id": "r1",
13
+ "type": "resistor",
14
+ "properties": {
15
+ "value": "330 ohm"
16
+ }
17
+ },
18
+ {
19
+ "id": "r2",
20
+ "type": "resistor",
21
+ "properties": {
22
+ "value": "330 ohm"
23
+ }
24
+ },
25
+ {
26
+ "id": "r3",
27
+ "type": "resistor",
28
+ "properties": {
29
+ "value": "330 ohm"
30
+ }
31
+ },
32
+ {
33
+ "id": "r4",
34
+ "type": "resistor",
35
+ "properties": {
36
+ "value": "330 ohm"
37
+ }
38
+ },
39
+ {
40
+ "id": "r5",
41
+ "type": "resistor",
42
+ "properties": {
43
+ "value": "330 ohm"
44
+ }
45
+ },
46
+ {
47
+ "id": "r6",
48
+ "type": "resistor",
49
+ "properties": {
50
+ "value": "330 ohm"
51
+ }
52
+ },
53
+ {
54
+ "id": "r7",
55
+ "type": "resistor",
56
+ "properties": {
57
+ "value": "330 ohm"
58
+ }
59
+ },
60
+ {
61
+ "id": "r8",
62
+ "type": "resistor",
63
+ "properties": {
64
+ "value": "330 ohm"
65
+ }
66
+ }
67
+ ],
68
+ "connections": [
69
+ [
70
+ "sevseg1.f",
71
+ "r7.2"
72
+ ],
73
+ [
74
+ "sevseg1.a",
75
+ "r8.1"
76
+ ],
77
+ [
78
+ "sevseg1.g",
79
+ "r6.2"
80
+ ],
81
+ [
82
+ "sevseg1.b",
83
+ "r2.1"
84
+ ],
85
+ [
86
+ "r5.2",
87
+ "sevseg1.d"
88
+ ],
89
+ [
90
+ "sevseg1.c",
91
+ "r3.1"
92
+ ],
93
+ [
94
+ "sevseg1.e",
95
+ "r4.2"
96
+ ],
97
+ [
98
+ "sevseg1.dp",
99
+ "r1.1"
100
+ ],
101
+ [
102
+ "sevseg1.com.1",
103
+ "uno.5v"
104
+ ],
105
+ [
106
+ "r8.2",
107
+ "uno.2"
108
+ ],
109
+ [
110
+ "r2.2",
111
+ "uno.3"
112
+ ],
113
+ [
114
+ "r3.2",
115
+ "uno.4"
116
+ ],
117
+ [
118
+ "r5.1",
119
+ "uno.5"
120
+ ],
121
+ [
122
+ "r4.1",
123
+ "uno.6"
124
+ ],
125
+ [
126
+ "r7.1",
127
+ "uno.7"
128
+ ],
129
+ [
130
+ "r6.1",
131
+ "uno.8"
132
+ ],
133
+ [
134
+ "r1.2",
135
+ "uno.9"
136
+ ]
137
+ ]
138
+ }
arduino/level1/7_segment_display_basic/platformio.ini ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ; PlatformIO Project Configuration File
2
+ ;
3
+ ; Build options: build flags, source filter
4
+ ; Upload options: custom upload port, speed and extra flags
5
+ ; Library options: dependencies, extra library storages
6
+ ; Advanced options: extra scripting
7
+ ;
8
+ ; Please visit documentation for the other options and examples
9
+ ; https://docs.platformio.org/page/projectconf.html
10
+
11
+ [platformio]
12
+ default_envs = uno
13
+
14
+ [env:uno]
15
+ platform = atmelavr
16
+ framework = arduino
17
+ board = uno
18
+
19
+ lib_deps =
20
+ Arduino
arduino/level1/7_segment_display_basic/scenario.yaml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ author: Blind Author
2
+ description: Determine how long a switch is pressed
3
+ name: Serial Monitor
4
+ steps:
5
+ - delay: 10ms
6
+ - wait-multi-pin:
7
+ timeout: 5000
8
+ interval: 100
9
+ pins:
10
+ - part-id: '7-segment display1'
11
+ pin: 'COM'
12
+ value: 1
13
+ - part-id: '7-segment display1'
14
+ pin: 'A'
15
+ value: 0
16
+ - part-id: '7-segment display1'
17
+ pin: 'B'
18
+ value: 1
19
+ - part-id: '7-segment display1'
20
+ pin: 'C'
21
+ value: 0
22
+ - part-id: '7-segment display1'
23
+ pin: 'D'
24
+ value: 0
25
+ - part-id: '7-segment display1'
26
+ pin: 'E'
27
+ value: 1
28
+ - part-id: '7-segment display1'
29
+ pin: 'F'
30
+ value: 0
31
+ - part-id: '7-segment display1'
32
+ pin: 'G'
33
+ value: 0
34
+ - part-id: '7-segment display1'
35
+ pin: 'DP'
36
+ value: 1
37
+ version: 1.0
arduino/level1/7_segment_display_basic/src/main.ino ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ Use one digit 7-segment display to show number 5
3
+ 7 APR 2025 by Blind Author
4
+ */
5
+
6
+ const int segA = 2;
7
+ const int segB = 3;
8
+ const int segC = 4;
9
+ const int segD = 5;
10
+ const int segE = 6;
11
+ const int segF = 7;
12
+ const int segG = 8;
13
+ const int segDP = 9;
14
+
15
+ void setup() {
16
+ pinMode(segA, OUTPUT);
17
+ pinMode(segB, OUTPUT);
18
+ pinMode(segC, OUTPUT);
19
+ pinMode(segD, OUTPUT);
20
+ pinMode(segE, OUTPUT);
21
+ pinMode(segF, OUTPUT);
22
+ pinMode(segG, OUTPUT);
23
+ pinMode(segDP, OUTPUT);
24
+
25
+ digitalWrite(segA, LOW);
26
+ digitalWrite(segB, HIGH);
27
+ digitalWrite(segC, LOW);
28
+ digitalWrite(segD, LOW);
29
+ digitalWrite(segE, HIGH);
30
+ digitalWrite(segF, LOW);
31
+ digitalWrite(segG, LOW);
32
+ digitalWrite(segDP, HIGH);
33
+ }
34
+
35
+ void loop() {
36
+ }
arduino/level1/7_segment_display_basic/wokwi.toml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ [wokwi]
2
+ version = 1.0
3
+ elf = ".pio/build/uno/firmware.elf"
4
+ firmware = ".pio/build/uno/firmware.hex"
arduino/level1/LCD_display_basic/description.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LCD Display Basic
2
+
3
+ ## Project Description
4
+ This is a simple Arduino project that shows text to the ili9341 lcd display.
5
+
6
+ ## Hardware Components
7
+ - Arduino Uno
8
+ - Ili9341 LCD Display
9
+
10
+ ## Circuit Description
11
+ Ili9341 LCD Display is connected to the Arudino Uno board. D/C, CS, MOSI, MISO, SCK pin of LCD display is connected to arduino pin 9 to 13, respectively. GND pin of LCD display is connected to arduino pin gnd1. VCC pin of LCD display is connected to arduino pin 5v.
12
+
13
+ ## Expected Behavior
14
+ When the Arduino powers up, it should:
15
+ 1. Declare Adafruit_ILI9341 object
16
+ 2. Begin display and change it to landscape mode
17
+ 3. Fill the display with black color
18
+ 4. Display 'Hello World!' at position (0, 0) in white color with text size 2.
19
+
20
+ ## Success Criteria
21
+ The test is successful when:
22
+ 1. Text "Hello World!" is successfully printed to the display, with correct position, color, and size.
23
+
24
+ ## Notes for Implementation
25
+ - Use the following libraries: <SPI.h>, <Adafruit_GFX.h>, and <Adafruit_ILI9341.h>.
arduino/level1/LCD_display_basic/description_no_pin.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LCD Display Basic
2
+
3
+ ## Project Description
4
+ This is a simple Arduino project that shows text to the ili9341 lcd display.
5
+
6
+ ## Hardware Components
7
+ - Arduino Uno
8
+ - Ili9341 LCD Display
9
+
10
+ ## Circuit Description
11
+ Ili9341 LCD Display is connected to the Arudino Uno board. D/C, CS, MOSI, MISO, SCK pin of LCD display is connected to arduino digital pins.
12
+
13
+ ## Expected Behavior
14
+ When the Arduino powers up, it should:
15
+ 1. Declare Adafruit_ILI9341 object
16
+ 2. Begin display and change it to landscape mode
17
+ 3. Fill the display with black color
18
+ 4. Display 'Hello World!' at position (0, 0) in white color with text size 2.
19
+
20
+ ## Success Criteria
21
+ The test is successful when:
22
+ 1. Text "Hello World!" is successfully printed to the display, with correct position, color, and size.
23
+
24
+ ## Notes for Implementation
25
+ - Use the following libraries: <SPI.h>, <Adafruit_GFX.h>, and <Adafruit_ILI9341.h>.
arduino/level1/LCD_display_basic/diagram.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1.0,
3
+ "author": "Blind Author",
4
+ "description": "Use lcd display",
5
+ "parts": [
6
+ {
7
+ "type": "wokwi-arduino-uno",
8
+ "id": "arduino uno1",
9
+ "top": 331.89,
10
+ "left": 1.49,
11
+ "attrs": {}
12
+ },
13
+ {
14
+ "type": "wokwi-ili9341",
15
+ "id": "ili9341 lcd display1",
16
+ "top": 5.51,
17
+ "left": 40.77,
18
+ "attrs": {}
19
+ }
20
+ ],
21
+ "connections": [
22
+ [
23
+ "ili9341 lcd display1:GND",
24
+ "arduino uno1:GND.1",
25
+ "black",
26
+ [
27
+ "v22",
28
+ "h-46"
29
+ ]
30
+ ],
31
+ [
32
+ "ili9341 lcd display1:SCK",
33
+ "arduino uno1:13",
34
+ "green",
35
+ [
36
+ "v16",
37
+ "h-75"
38
+ ]
39
+ ],
40
+ [
41
+ "ili9341 lcd display1:MISO",
42
+ "arduino uno1:12",
43
+ "limegreen",
44
+ [
45
+ "v20",
46
+ "h-78"
47
+ ]
48
+ ],
49
+ [
50
+ "ili9341 lcd display1:MOSI",
51
+ "arduino uno1:11",
52
+ "green",
53
+ [
54
+ "v24",
55
+ "h-75"
56
+ ]
57
+ ],
58
+ [
59
+ "ili9341 lcd display1:CS",
60
+ "arduino uno1:10",
61
+ "orange",
62
+ [
63
+ "v32",
64
+ "h-64"
65
+ ]
66
+ ],
67
+ [
68
+ "ili9341 lcd display1:D/C",
69
+ "arduino uno1:9",
70
+ "purple",
71
+ [
72
+ "v36",
73
+ "h-84"
74
+ ]
75
+ ],
76
+ [ "ili9341 lcd display1:RST", "arduino uno1:8", "green", [ "v33.69", "h54.93" ] ],
77
+ [
78
+ "ili9341 lcd display1:VCC",
79
+ "arduino uno1:5V",
80
+ "red",
81
+ [
82
+ "v24.09",
83
+ "h-98.67",
84
+ "v230.4",
85
+ "h172.8"
86
+ ]
87
+ ]
88
+ ],
89
+ "dependencies": {}
90
+ }
arduino/level1/LCD_display_basic/diagram_breadboard.json ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1.0,
3
+ "author": "Blind Author",
4
+ "description": "Use lcd display",
5
+ "parts": [
6
+ {
7
+ "type": "wokwi-breadboard",
8
+ "id": "breadboard1",
9
+ "top": 45,
10
+ "left": -160.4,
11
+ "attrs": {}
12
+ },
13
+ {
14
+ "type": "wokwi-arduino-uno",
15
+ "id": "arduino uno1",
16
+ "top": 331.89,
17
+ "left": 1.49,
18
+ "attrs": {}
19
+ },
20
+ {
21
+ "type": "wokwi-ili9341",
22
+ "id": "ili9341 lcd display1",
23
+ "top": -124,
24
+ "left": 47.7,
25
+ "attrs": {}
26
+ }
27
+ ],
28
+ "connections": [
29
+ [
30
+ "ili9341 lcd display1:VCC",
31
+ "breadboard1:25b.f",
32
+ "",
33
+ [
34
+ "$bb"
35
+ ]
36
+ ],
37
+ [
38
+ "ili9341 lcd display1:GND",
39
+ "breadboard1:26b.f",
40
+ "",
41
+ [
42
+ "$bb"
43
+ ]
44
+ ],
45
+ [
46
+ "ili9341 lcd display1:CS",
47
+ "breadboard1:27b.f",
48
+ "",
49
+ [
50
+ "$bb"
51
+ ]
52
+ ],
53
+ [
54
+ "ili9341 lcd display1:RST",
55
+ "breadboard1:28b.f",
56
+ "",
57
+ [
58
+ "$bb"
59
+ ]
60
+ ],
61
+ [
62
+ "ili9341 lcd display1:D/C",
63
+ "breadboard1:29b.f",
64
+ "",
65
+ [
66
+ "$bb"
67
+ ]
68
+ ],
69
+ [
70
+ "breadboard1:28b.j",
71
+ "arduino uno1:8",
72
+ "green",
73
+ [
74
+ "v105.6",
75
+ "h57.6",
76
+ "v28.8"
77
+ ]
78
+ ],
79
+ [
80
+ "ili9341 lcd display1:MOSI",
81
+ "breadboard1:30b.f",
82
+ "",
83
+ [
84
+ "$bb"
85
+ ]
86
+ ],
87
+ [
88
+ "ili9341 lcd display1:SCK",
89
+ "breadboard1:31b.f",
90
+ "",
91
+ [
92
+ "$bb"
93
+ ]
94
+ ],
95
+ [
96
+ "ili9341 lcd display1:LED",
97
+ "breadboard1:32b.f",
98
+ "",
99
+ [
100
+ "$bb"
101
+ ]
102
+ ],
103
+ [
104
+ "ili9341 lcd display1:MISO",
105
+ "breadboard1:33b.f",
106
+ "",
107
+ [
108
+ "$bb"
109
+ ]
110
+ ],
111
+ [
112
+ "breadboard1:25b.i",
113
+ "breadboard1:bp.20",
114
+ "red",
115
+ [
116
+ "v0"
117
+ ]
118
+ ],
119
+ [
120
+ "breadboard1:26b.i",
121
+ "breadboard1:bn.20",
122
+ "black",
123
+ [
124
+ "v0"
125
+ ]
126
+ ],
127
+ [
128
+ "breadboard1:27b.j",
129
+ "arduino uno1:10",
130
+ "orange",
131
+ [
132
+ "v105.6",
133
+ "h38.4"
134
+ ]
135
+ ],
136
+ [
137
+ "breadboard1:29b.j",
138
+ "arduino uno1:9",
139
+ "green",
140
+ [
141
+ "v96",
142
+ "h28.8"
143
+ ]
144
+ ],
145
+ [
146
+ "breadboard1:30b.j",
147
+ "arduino uno1:11",
148
+ "green",
149
+ [
150
+ "v0"
151
+ ]
152
+ ],
153
+ [
154
+ "breadboard1:31b.j",
155
+ "arduino uno1:13",
156
+ "green",
157
+ [
158
+ "v67.2",
159
+ "h-28.8"
160
+ ]
161
+ ],
162
+ [
163
+ "breadboard1:33b.j",
164
+ "arduino uno1:12",
165
+ "green",
166
+ [
167
+ "v48",
168
+ "h-38.4"
169
+ ]
170
+ ],
171
+ [
172
+ "breadboard1:bp.8",
173
+ "arduino uno1:5V",
174
+ "red",
175
+ [
176
+ "v306.3",
177
+ "h191.2"
178
+ ]
179
+ ],
180
+ [
181
+ "breadboard1:bn.12",
182
+ "arduino uno1:GND.1",
183
+ "black",
184
+ [
185
+ "v75.5",
186
+ "h104.8"
187
+ ]
188
+ ]
189
+ ],
190
+ "dependencies": {}
191
+ }
arduino/level1/LCD_display_basic/platformio.ini ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ; PlatformIO Project Configuration File
2
+ ;
3
+ ; Build options: build flags, source filter
4
+ ; Upload options: custom upload port, speed and extra flags
5
+ ; Library options: dependencies, extra library storages
6
+ ; Advanced options: extra scripting
7
+ ;
8
+ ; Please visit documentation for the other options and examples
9
+ ; https://docs.platformio.org/page/projectconf.html
10
+
11
+ [platformio]
12
+ default_envs = uno
13
+
14
+ [env:uno]
15
+ platform = atmelavr
16
+ framework = arduino
17
+ board = uno
18
+
19
+ lib_deps =
20
+ Arduino
21
+ Adafruit ILI9341
arduino/level1/LCD_display_basic/scenario.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ author: Blind Author
2
+ description: Use LCD display
3
+ name: LCD Display Basic
4
+ steps:
5
+ - delay: 4000ms
6
+ - take-screenshot:
7
+ part-id: ili9341 lcd display1
8
+ compare-with: screenshots/0.png
9
+ version: 1.0
arduino/level1/LCD_display_basic/screenshots/0.png ADDED

Git LFS Details

  • SHA256: 934059cdd6daa6b5895229b0ad5732f18d8a39beef481630705947bd8b4c4d7c
  • Pointer size: 129 Bytes
  • Size of remote file: 1.3 kB
arduino/level1/LCD_display_basic/src/main.ino ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ Show text in ili9431 lcd display
3
+ 05 MAY 2025 by Blind Author
4
+ */
5
+
6
+ #include <SPI.h>
7
+ #include <Adafruit_GFX.h>
8
+ #include <Adafruit_ILI9341.h>
9
+
10
+ #define TFT_CS 10
11
+ #define TFT_DC 9
12
+ #define TFT_RST 8
13
+
14
+ Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
15
+
16
+ void setup() {
17
+ tft.begin();
18
+ tft.setRotation(1);
19
+ tft.fillScreen(ILI9341_BLACK);
20
+
21
+ tft.setCursor(0, 0);
22
+ tft.setTextColor(ILI9341_WHITE);
23
+ tft.setTextSize(2);
24
+ tft.println("Hello World!");
25
+ }
26
+
27
+ void loop() {
28
+ }
arduino/level1/LCD_display_basic/wokwi.toml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ [wokwi]
2
+ version = 1.0
3
+ elf = ".pio/build/uno/firmware.elf"
4
+ firmware = ".pio/build/uno/firmware.hex"
arduino/level1/RTC_module_basic/description.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # RTC module
2
+
3
+ ## Project Description
4
+ This is a simple Arduino project that uses RTC module to get current time.
5
+
6
+ ## Hardware Components
7
+ - Arduino Uno
8
+ - RTC module
9
+
10
+ ## Circuit Description
11
+ The RTC module is connected to the Arduino. The VCC pin is connected to 5V, the GND pin to gnd2, the SDA pin to A4, and the SCL pin to A5.
12
+
13
+ ## Expected Behavior
14
+ When the Arduino powers up, it should:
15
+ 1. Initialize serial communication
16
+ 2. Check if the RTC module can begin
17
+ 3. Read current time with RTC module
18
+ 4. Print to the serial monitor in the following format: "Current time: YYYY/M/D (Day of the week) H:M:S"
19
+
20
+ ## Success Criteria
21
+ The test is successful when:
22
+ 1. Correct day and time is printed in the serial monitor.
23
+
24
+ ## Notes for Implementation
25
+ - No actions are required in the loop function.
26
+ - Day of the week is one of the "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday".
27
+ - Use RTClib to generate RTC_DS1307 object and read the value.
28
+ - RTC module has I2C interface.
29
+
30
+ ## Variants
31
+ There may be variants with GND pin.
32
+
33
+ ## Test Inputs
34
+ Test init value is: "2024-11-24T04:48:00"
arduino/level1/RTC_module_basic/description_no_pin.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # RTC module
2
+
3
+ ## Project Description
4
+ This is a simple Arduino project that uses RTC module to get current time.
5
+
6
+ ## Hardware Components
7
+ - Arduino Uno
8
+ - RTC module
9
+
10
+ ## Circuit Description
11
+ The RTC module is connected to the Arduino. It follows the standard wiring conventions defined by the I2C protocol.
12
+
13
+ ## Expected Behavior
14
+ When the Arduino powers up, it should:
15
+ 1. Initialize serial communication
16
+ 2. Check if the RTC module can begin
17
+ 3. Read current time with RTC module
18
+ 4. Print to the serial monitor in the following format: "Current time: YYYY/M/D (Day of the week) H:M:S"
19
+
20
+ ## Success Criteria
21
+ The test is successful when:
22
+ 1. Correct day and time is printed in the serial monitor.
23
+
24
+ ## Notes for Implementation
25
+ - No actions are required in the loop function.
26
+ - Day of the week is one of the "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday".
27
+ - Use RTClib to generate RTC_DS1307 object and read the value.
28
+ - RTC module has I2C interface.
29
+
30
+ ## Variants
31
+ There may be variants with GND pin.
32
+
33
+ ## Test Inputs
34
+ Test init value is: "2024-11-24T04:48:00"
arduino/level1/RTC_module_basic/diagram.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1.0,
3
+ "author": "Blind Author",
4
+ "description": "Get the current time using an RTC sensor",
5
+ "config": {
6
+ "gnd_pin": "GND.2",
7
+ "vcc_pin": "5V"
8
+ },
9
+ "parts": [
10
+ {
11
+ "id": "arduino uno1",
12
+ "type": "wokwi-arduino-uno",
13
+ "top": 0,
14
+ "left": 20
15
+ },
16
+ {
17
+ "id": "ds1307 real time clock module1307",
18
+ "type": "wokwi-ds1307",
19
+ "top": 250,
20
+ "left": 220,
21
+ "attrs": {
22
+ "initTime": "2024-11-24T04:48:00"
23
+ }
24
+ }
25
+ ],
26
+ "connections": [
27
+ [
28
+ "arduino uno1:GND.2",
29
+ "ds1307 real time clock module1307:GND",
30
+ "black",
31
+ [
32
+ "v20",
33
+ "*",
34
+ "v0"
35
+ ]
36
+ ],
37
+ [
38
+ "arduino uno1:5V",
39
+ "ds1307 real time clock module1307:5V",
40
+ "red",
41
+ [
42
+ "v0"
43
+ ]
44
+ ],
45
+ [
46
+ "arduino uno1:A4",
47
+ "ds1307 real time clock module1307:SDA",
48
+ "green",
49
+ [
50
+ "v16",
51
+ "h0",
52
+ "*",
53
+ "h-34"
54
+ ]
55
+ ],
56
+ [
57
+ "arduino uno1:A5",
58
+ "ds1307 real time clock module1307:SCL",
59
+ "orange",
60
+ [
61
+ "v20",
62
+ "*",
63
+ "h-30"
64
+ ]
65
+ ]
66
+ ]
67
+ }
arduino/level1/RTC_module_basic/diagram_breadboard.json ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1.0,
3
+ "author": "Blind Author",
4
+ "description": "Get the current time using an RTC sensor",
5
+ "config": {
6
+ "gnd_pin": "GND.2",
7
+ "vcc_pin": "5V"
8
+ },
9
+ "parts": [
10
+ {
11
+ "type": "wokwi-breadboard",
12
+ "id": "breadboard1",
13
+ "top": 208.2,
14
+ "left": -6.8,
15
+ "attrs": {}
16
+ },
17
+ {
18
+ "type": "wokwi-arduino-uno",
19
+ "id": "arduino uno1",
20
+ "top": 0,
21
+ "left": 20,
22
+ "attrs": {}
23
+ },
24
+ {
25
+ "type": "wokwi-ds1307",
26
+ "id": "ds1307 real time clock module1307",
27
+ "top": 295.1,
28
+ "left": 183.2,
29
+ "rotate": 90,
30
+ "attrs": {
31
+ "initTime": "2024-11-24T04:48:00"
32
+ }
33
+ }
34
+ ],
35
+ "connections": [
36
+ [
37
+ "ds1307 real time clock module1307:GND",
38
+ "breadboard1:26t.e",
39
+ "",
40
+ [
41
+ "$bb"
42
+ ]
43
+ ],
44
+ [
45
+ "ds1307 real time clock module1307:5V",
46
+ "breadboard1:25t.e",
47
+ "",
48
+ [
49
+ "$bb"
50
+ ]
51
+ ],
52
+ [
53
+ "ds1307 real time clock module1307:SDA",
54
+ "breadboard1:24t.e",
55
+ "",
56
+ [
57
+ "$bb"
58
+ ]
59
+ ],
60
+ [
61
+ "ds1307 real time clock module1307:SCL",
62
+ "breadboard1:23t.e",
63
+ "",
64
+ [
65
+ "$bb"
66
+ ]
67
+ ],
68
+ [
69
+ "ds1307 real time clock module1307:SQW",
70
+ "breadboard1:22t.e",
71
+ "",
72
+ [
73
+ "$bb"
74
+ ]
75
+ ],
76
+ [
77
+ "breadboard1:26t.c",
78
+ "breadboard1:tn.20",
79
+ "green",
80
+ [
81
+ "v0"
82
+ ]
83
+ ],
84
+ [
85
+ "breadboard1:tn.19",
86
+ "arduino uno1:GND.2",
87
+ "green",
88
+ [
89
+ "v0"
90
+ ]
91
+ ],
92
+ [
93
+ "breadboard1:25t.c",
94
+ "breadboard1:tp.17",
95
+ "green",
96
+ [
97
+ "v0"
98
+ ]
99
+ ],
100
+ [
101
+ "breadboard1:tp.16",
102
+ "arduino uno1:5V",
103
+ "green",
104
+ [
105
+ "v0"
106
+ ]
107
+ ],
108
+ [
109
+ "breadboard1:24t.c",
110
+ "arduino uno1:A4",
111
+ "green",
112
+ [
113
+ "v0"
114
+ ]
115
+ ],
116
+ [
117
+ "breadboard1:23t.c",
118
+ "arduino uno1:A5",
119
+ "green",
120
+ [
121
+ "v0"
122
+ ]
123
+ ]
124
+ ],
125
+ "dependencies": {}
126
+ }
arduino/level1/RTC_module_basic/diagram_breadboard_shdf.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "components": [
3
+ {
4
+ "id": "bb1",
5
+ "type": "breadboard"
6
+ },
7
+ {
8
+ "id": "uno",
9
+ "type": "arduino uno"
10
+ },
11
+ {
12
+ "id": "ds1307",
13
+ "type": "ds1307 real time clock module"
14
+ }
15
+ ],
16
+ "connections": [
17
+ [
18
+ "ds1307.gnd",
19
+ "bb1.pin26t.e"
20
+ ],
21
+ [
22
+ "ds1307.5v",
23
+ "bb1.pin25t.e"
24
+ ],
25
+ [
26
+ "ds1307.sda",
27
+ "bb1.pin24t.e"
28
+ ],
29
+ [
30
+ "ds1307.scl",
31
+ "bb1.pin23t.e"
32
+ ],
33
+ [
34
+ "ds1307.sqw",
35
+ "bb1.pin22t.e"
36
+ ],
37
+ [
38
+ "bb1.pin26t.c",
39
+ "bb1.tn.20"
40
+ ],
41
+ [
42
+ "bb1.tn.19",
43
+ "uno.gnd.2"
44
+ ],
45
+ [
46
+ "bb1.pin25t.c",
47
+ "bb1.tp.17"
48
+ ],
49
+ [
50
+ "bb1.tp.16",
51
+ "uno.5v"
52
+ ],
53
+ [
54
+ "bb1.pin24t.c",
55
+ "uno.a4"
56
+ ],
57
+ [
58
+ "bb1.pin23t.c",
59
+ "uno.a5"
60
+ ]
61
+ ]
62
+ }
arduino/level1/RTC_module_basic/diagram_shdf.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "components": [
3
+ {
4
+ "id": "uno",
5
+ "type": "arduino uno"
6
+ },
7
+ {
8
+ "id": "ds1307",
9
+ "type": "ds1307 real time clock module"
10
+ }
11
+ ],
12
+ "connections": [
13
+ [
14
+ "uno.gnd.2",
15
+ "ds1307.gnd"
16
+ ],
17
+ [
18
+ "uno.5v",
19
+ "ds1307.5v"
20
+ ],
21
+ [
22
+ "uno.a4",
23
+ "ds1307.sda"
24
+ ],
25
+ [
26
+ "uno.a5",
27
+ "ds1307.scl"
28
+ ]
29
+ ]
30
+ }
arduino/level1/RTC_module_basic/platformio.ini ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ; PlatformIO Project Configuration File
2
+ ;
3
+ ; Build options: build flags, source filter
4
+ ; Upload options: custom upload port, speed and extra flags
5
+ ; Library options: dependencies, extra library storages
6
+ ; Advanced options: extra scripting
7
+ ;
8
+ ; Please visit documentation for the other options and examples
9
+ ; https://docs.platformio.org/page/projectconf.html
10
+
11
+ [platformio]
12
+ default_envs = uno
13
+
14
+ [env:uno]
15
+ platform = atmelavr
16
+ framework = arduino
17
+ board = uno
18
+
19
+ lib_deps =
20
+ Arduino
21
+ RTClib
arduino/level1/RTC_module_basic/scenario.yaml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ author: Blind Author
2
+ description: Get the current time using an RTC sensor
3
+ name: RTC sensor
4
+ test-values:
5
+ - part-type: wokwi-ds1307
6
+ attr-name: initTime
7
+ value: "2024-11-24T04:48:00"
8
+ steps:
9
+ - delay: 10ms
10
+ - wait-serial: 2024/11/24 (Sunday) 4:48:0
11
+ version: 1.0
arduino/level1/RTC_module_basic/src/main.ino ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ Get the current time using an RTC sensor
3
+ 10 APR 2025 by Blind Author
4
+ */
5
+
6
+ #include "RTClib.h"
7
+
8
+ RTC_DS1307 rtc;
9
+
10
+ char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
11
+
12
+ void setup () {
13
+ Serial.begin(115200);
14
+
15
+ if (!rtc.begin()) {
16
+ Serial.println("Couldn't find RTC");
17
+ Serial.flush();
18
+ abort();
19
+ }
20
+
21
+ DateTime now = rtc.now();
22
+
23
+ Serial.print("Current time: ");
24
+ Serial.print(now.year(), DEC);
25
+ Serial.print('/');
26
+ Serial.print(now.month(), DEC);
27
+ Serial.print('/');
28
+ Serial.print(now.day(), DEC);
29
+ Serial.print(" (");
30
+ Serial.print(daysOfTheWeek[now.dayOfTheWeek()]);
31
+ Serial.print(") ");
32
+ Serial.print(now.hour(), DEC);
33
+ Serial.print(':');
34
+ Serial.print(now.minute(), DEC);
35
+ Serial.print(':');
36
+ Serial.print(now.second(), DEC);
37
+ Serial.println();
38
+ }
39
+
40
+ void loop () {
41
+ }
arduino/level1/RTC_module_basic/wokwi.toml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ [wokwi]
2
+ version = 1.0
3
+ elf = ".pio/build/uno/firmware.elf"
4
+ firmware = ".pio/build/uno/firmware.hex"
arduino/level1/bar_led_basic/description.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Bar LED
2
+
3
+ ## Project Description
4
+ This is a simple Arduino project that turns on an bar graph LED.
5
+
6
+ ## Hardware Components
7
+ - Arduino Uno
8
+ - Bar graph LED
9
+ - 220Ω resistor * 10
10
+
11
+ ## Circuit Description
12
+ Anode pins 1~10 of bar graph LED are connected to pin2, pin3, pin4, pin5, pin6, pin7, pin8, pin9, pin10, pin11, respectively. The cathode pins 1 through 10 of the bar graph LED are connected to GND pin gnd1 through 220kΩ resistors.
13
+
14
+ ## Expected Behavior
15
+ When the Arduino powers up, it should:
16
+ 1. Set pin2, pin3, pin4, pin5, pin6, pin7, pin8, pin9, pin10, pin11 pin mode as OUTPUT
17
+ 2. Turn on the bar graph LEDs only up to the threshold, which is 6
18
+
19
+ ## Success Criteria
20
+ The test is successful when:
21
+ 1. Pins 1 to 6 of the bar graph LED anodes receive HIGH signals, while pins 7 to 10 receive LOW signals.
22
+
23
+ ## Notes for Implementation
24
+ - The LED should turn on immediately during setup and stay on
25
+ - No actions are required in the loop function
26
+ - The pin number used should match the circuit diagram
27
+
28
+ ## Variants
29
+ This project may have different variants with the bar graph LED connected to different pins or using bar graph LED of different colors.
30
+
31
+ ## Attributes
32
+ - To use 220Ω resistor, set the property name "value" to "220 ohm".
arduino/level1/bar_led_basic/description_no_pin.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Bar LED
2
+
3
+ ## Project Description
4
+ This is a simple Arduino project that turns on an bar graph LED.
5
+
6
+ ## Hardware Components
7
+ - Arduino Uno
8
+ - Bar graph LED
9
+ - 220Ω resistor * 10
10
+
11
+ ## Circuit Description
12
+ Anode pins of bar graph LED are connected to arduino. The cathode pins of the bar graph LED are connected to ground through 220kΩ resistors.
13
+
14
+ ## Expected Behavior
15
+ When the Arduino powers up, it should:
16
+ 1. Set pins connected to bar graph LED as OUTPUT
17
+ 2. Turn on the bar graph LEDs only up to the threshold, which is 6
18
+
19
+ ## Success Criteria
20
+ The test is successful when:
21
+ 1. Pins 1 to 6 of the bar graph LED anodes receive HIGH signals, while pins 7 to 10 receive LOW signals.
22
+
23
+ ## Notes for Implementation
24
+ - The LED should turn on immediately during setup and stay on
25
+ - No actions are required in the loop function
26
+ - The pin number used should match the circuit diagram
27
+
28
+ ## Variants
29
+ This project may have different variants with the bar graph LED connected to different pins or using bar graph LED of different colors.
30
+
31
+ ## Attributes
32
+ - To use 220Ω resistor, set the property name "value" to "220 ohm".
arduino/level1/bar_led_basic/diagram.json ADDED
@@ -0,0 +1,400 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1.0,
3
+ "author": "Blind Author",
4
+ "description": "Turn on bar graph LED",
5
+ "config": {
6
+ "1_pin": 2,
7
+ "2_pin": 3,
8
+ "3_pin": 4,
9
+ "4_pin": 5,
10
+ "5_pin": 6,
11
+ "6_pin": 7,
12
+ "7_pin": 8,
13
+ "8_pin": 9,
14
+ "9_pin": 10,
15
+ "10_pin": 11,
16
+ "led_color": "lime",
17
+ "gnd_pin": "GND.1"
18
+ },
19
+ "parts": [
20
+ {
21
+ "type": "wokwi-arduino-uno",
22
+ "id": "arduino uno1",
23
+ "top": 67.8,
24
+ "left": 517.8,
25
+ "attrs": {}
26
+ },
27
+ {
28
+ "type": "wokwi-resistor",
29
+ "id": "resistor1",
30
+ "top": 109.85,
31
+ "left": 920.2,
32
+ "rotate": 180,
33
+ "attrs": {
34
+ "value": "220"
35
+ }
36
+ },
37
+ {
38
+ "type": "wokwi-resistor",
39
+ "id": "resistor2",
40
+ "top": 129.05,
41
+ "left": 920.2,
42
+ "rotate": 180,
43
+ "attrs": {
44
+ "value": "220"
45
+ }
46
+ },
47
+ {
48
+ "type": "wokwi-resistor",
49
+ "id": "resistor3",
50
+ "top": 119.45,
51
+ "left": 920.2,
52
+ "rotate": 180,
53
+ "attrs": {
54
+ "value": "220"
55
+ }
56
+ },
57
+ {
58
+ "type": "wokwi-led-bar-graph",
59
+ "id": "bar graph led1",
60
+ "top": 110.4,
61
+ "left": 849.6,
62
+ "attrs": {
63
+ "color": "lime"
64
+ }
65
+ },
66
+ {
67
+ "type": "wokwi-resistor",
68
+ "id": "resistor4",
69
+ "top": 138.65,
70
+ "left": 920.2,
71
+ "rotate": 180,
72
+ "attrs": {
73
+ "value": "220"
74
+ }
75
+ },
76
+ {
77
+ "type": "wokwi-resistor",
78
+ "id": "resistor5",
79
+ "top": 148.25,
80
+ "left": 920.2,
81
+ "rotate": 180,
82
+ "attrs": {
83
+ "value": "220"
84
+ }
85
+ },
86
+ {
87
+ "type": "wokwi-resistor",
88
+ "id": "resistor6",
89
+ "top": 157.85,
90
+ "left": 920.2,
91
+ "rotate": 180,
92
+ "attrs": {
93
+ "value": "220"
94
+ }
95
+ },
96
+ {
97
+ "type": "wokwi-resistor",
98
+ "id": "resistor7",
99
+ "top": 167.45,
100
+ "left": 920.2,
101
+ "rotate": 180,
102
+ "attrs": {
103
+ "value": "220"
104
+ }
105
+ },
106
+ {
107
+ "type": "wokwi-resistor",
108
+ "id": "resistor8",
109
+ "top": 177.05,
110
+ "left": 920.2,
111
+ "rotate": 180,
112
+ "attrs": {
113
+ "value": "220"
114
+ }
115
+ },
116
+ {
117
+ "type": "wokwi-resistor",
118
+ "id": "resistor9",
119
+ "top": 186.65,
120
+ "left": 920.2,
121
+ "rotate": 180,
122
+ "attrs": {
123
+ "value": "220"
124
+ }
125
+ },
126
+ {
127
+ "type": "wokwi-resistor",
128
+ "id": "resistor10",
129
+ "top": 196.25,
130
+ "left": 920.2,
131
+ "rotate": 180,
132
+ "attrs": {
133
+ "value": "220"
134
+ }
135
+ }
136
+ ],
137
+ "connections": [
138
+ [
139
+ "resistor1:2",
140
+ "bar graph led1:C1",
141
+ "green",
142
+ [
143
+ "v0"
144
+ ]
145
+ ],
146
+ [
147
+ "resistor2:2",
148
+ "bar graph led1:C2",
149
+ "green",
150
+ [
151
+ "v0"
152
+ ]
153
+ ],
154
+ [
155
+ "resistor3:2",
156
+ "bar graph led1:C3",
157
+ "green",
158
+ [
159
+ "v0"
160
+ ]
161
+ ],
162
+ [
163
+ "resistor4:2",
164
+ "bar graph led1:C4",
165
+ "green",
166
+ [
167
+ "v0"
168
+ ]
169
+ ],
170
+ [
171
+ "resistor5:2",
172
+ "bar graph led1:C5",
173
+ "green",
174
+ [
175
+ "v0"
176
+ ]
177
+ ],
178
+ [
179
+ "resistor6:2",
180
+ "bar graph led1:C6",
181
+ "green",
182
+ [
183
+ "v0"
184
+ ]
185
+ ],
186
+ [
187
+ "resistor7:2",
188
+ "bar graph led1:C7",
189
+ "green",
190
+ [
191
+ "v0"
192
+ ]
193
+ ],
194
+ [
195
+ "resistor8:2",
196
+ "bar graph led1:C8",
197
+ "green",
198
+ [
199
+ "v0"
200
+ ]
201
+ ],
202
+ [
203
+ "resistor9:2",
204
+ "bar graph led1:C9",
205
+ "green",
206
+ [
207
+ "v0"
208
+ ]
209
+ ],
210
+ [
211
+ "resistor10:2",
212
+ "bar graph led1:C10",
213
+ "green",
214
+ [
215
+ "v0"
216
+ ]
217
+ ],
218
+ [
219
+ "arduino uno1:GND.1",
220
+ "resistor10:1",
221
+ "black",
222
+ [
223
+ "v-28.8",
224
+ "h365.1",
225
+ "v153.6"
226
+ ]
227
+ ],
228
+ [
229
+ "arduino uno1:GND.1",
230
+ "resistor9:1",
231
+ "black",
232
+ [
233
+ "v-28.8",
234
+ "h365.1",
235
+ "v144"
236
+ ]
237
+ ],
238
+ [
239
+ "arduino uno1:GND.1",
240
+ "resistor8:1",
241
+ "black",
242
+ [
243
+ "v-28.8",
244
+ "h365.1",
245
+ "v134.4"
246
+ ]
247
+ ],
248
+ [
249
+ "arduino uno1:GND.1",
250
+ "resistor7:1",
251
+ "black",
252
+ [
253
+ "v-28.8",
254
+ "h365.1",
255
+ "v124.8"
256
+ ]
257
+ ],
258
+ [
259
+ "arduino uno1:GND.1",
260
+ "resistor6:1",
261
+ "black",
262
+ [
263
+ "v-28.8",
264
+ "h365.1",
265
+ "v115.2"
266
+ ]
267
+ ],
268
+ [
269
+ "arduino uno1:GND.1",
270
+ "resistor5:1",
271
+ "black",
272
+ [
273
+ "v-28.8",
274
+ "h365.1",
275
+ "v105.6"
276
+ ]
277
+ ],
278
+ [
279
+ "arduino uno1:GND.1",
280
+ "resistor4:1",
281
+ "black",
282
+ [
283
+ "v-28.8",
284
+ "h365.1",
285
+ "v96"
286
+ ]
287
+ ],
288
+ [
289
+ "arduino uno1:GND.1",
290
+ "resistor3:1",
291
+ "black",
292
+ [
293
+ "v-28.8",
294
+ "h365.1",
295
+ "v86.4"
296
+ ]
297
+ ],
298
+ [
299
+ "arduino uno1:GND.1",
300
+ "resistor2:1",
301
+ "black",
302
+ [
303
+ "v-28.8",
304
+ "h365.1",
305
+ "v76.8"
306
+ ]
307
+ ],
308
+ [
309
+ "arduino uno1:GND.1",
310
+ "resistor1:1",
311
+ "black",
312
+ [
313
+ "v-28.8",
314
+ "h365.1",
315
+ "v67.2"
316
+ ]
317
+ ],
318
+ [
319
+ "bar graph led1:A1",
320
+ "arduino uno1:2",
321
+ "green",
322
+ [
323
+ "h0"
324
+ ]
325
+ ],
326
+ [
327
+ "bar graph led1:A2",
328
+ "arduino uno1:3",
329
+ "green",
330
+ [
331
+ "h0"
332
+ ]
333
+ ],
334
+ [
335
+ "bar graph led1:A3",
336
+ "arduino uno1:4",
337
+ "green",
338
+ [
339
+ "h0"
340
+ ]
341
+ ],
342
+ [
343
+ "bar graph led1:A4",
344
+ "arduino uno1:5",
345
+ "green",
346
+ [
347
+ "h0"
348
+ ]
349
+ ],
350
+ [
351
+ "bar graph led1:A5",
352
+ "arduino uno1:6",
353
+ "green",
354
+ [
355
+ "h0"
356
+ ]
357
+ ],
358
+ [
359
+ "bar graph led1:A6",
360
+ "arduino uno1:7",
361
+ "green",
362
+ [
363
+ "h0"
364
+ ]
365
+ ],
366
+ [
367
+ "bar graph led1:A7",
368
+ "arduino uno1:8",
369
+ "green",
370
+ [
371
+ "h0"
372
+ ]
373
+ ],
374
+ [
375
+ "bar graph led1:A8",
376
+ "arduino uno1:9",
377
+ "green",
378
+ [
379
+ "h0"
380
+ ]
381
+ ],
382
+ [
383
+ "bar graph led1:A9",
384
+ "arduino uno1:10",
385
+ "green",
386
+ [
387
+ "h0"
388
+ ]
389
+ ],
390
+ [
391
+ "bar graph led1:A10",
392
+ "arduino uno1:11",
393
+ "green",
394
+ [
395
+ "h0"
396
+ ]
397
+ ]
398
+ ],
399
+ "dependencies": {}
400
+ }
arduino/level1/bar_led_basic/diagram_breadboard.json ADDED
@@ -0,0 +1,608 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1.0,
3
+ "author": "Blind Author",
4
+ "description": "Turn on bar graph LED",
5
+ "config": {
6
+ "1_pin": 2,
7
+ "2_pin": 3,
8
+ "3_pin": 4,
9
+ "4_pin": 5,
10
+ "5_pin": 6,
11
+ "6_pin": 7,
12
+ "7_pin": 8,
13
+ "8_pin": 9,
14
+ "9_pin": 10,
15
+ "10_pin": 11,
16
+ "led_color": "lime",
17
+ "gnd_pin": "GND.1"
18
+ },
19
+ "parts": [
20
+ {
21
+ "type": "wokwi-breadboard",
22
+ "id": "breadboard1",
23
+ "top": -156.6,
24
+ "left": 406,
25
+ "attrs": {}
26
+ },
27
+ {
28
+ "type": "wokwi-arduino-uno",
29
+ "id": "arduino uno1",
30
+ "top": 67.8,
31
+ "left": 623.4,
32
+ "attrs": {}
33
+ },
34
+ {
35
+ "type": "wokwi-resistor",
36
+ "id": "resistor1",
37
+ "top": -34.45,
38
+ "left": 652.8,
39
+ "attrs": {
40
+ "value": "220"
41
+ }
42
+ },
43
+ {
44
+ "type": "wokwi-led-bar-graph",
45
+ "id": "bar graph led1",
46
+ "top": -101,
47
+ "left": 734.6,
48
+ "rotate": 90,
49
+ "attrs": {
50
+ "color": "lime"
51
+ }
52
+ },
53
+ {
54
+ "type": "wokwi-resistor",
55
+ "id": "resistor2",
56
+ "top": -24.85,
57
+ "left": 662.4,
58
+ "attrs": {
59
+ "value": "220"
60
+ }
61
+ },
62
+ {
63
+ "type": "wokwi-resistor",
64
+ "id": "resistor3",
65
+ "top": -15.25,
66
+ "left": 672,
67
+ "attrs": {
68
+ "value": "220"
69
+ }
70
+ },
71
+ {
72
+ "type": "wokwi-resistor",
73
+ "id": "resistor4",
74
+ "top": 4.8,
75
+ "left": 709.85,
76
+ "rotate": 90,
77
+ "attrs": {
78
+ "value": "220"
79
+ }
80
+ },
81
+ {
82
+ "type": "wokwi-resistor",
83
+ "id": "resistor5",
84
+ "top": -34.45,
85
+ "left": 796.8,
86
+ "attrs": {
87
+ "value": "220"
88
+ }
89
+ },
90
+ {
91
+ "type": "wokwi-resistor",
92
+ "id": "resistor6",
93
+ "top": -24.85,
94
+ "left": 787.2,
95
+ "attrs": {
96
+ "value": "220"
97
+ }
98
+ },
99
+ {
100
+ "type": "wokwi-resistor",
101
+ "id": "resistor7",
102
+ "top": -15.25,
103
+ "left": 777.6,
104
+ "attrs": {
105
+ "value": "220"
106
+ }
107
+ },
108
+ {
109
+ "type": "wokwi-resistor",
110
+ "id": "resistor8",
111
+ "top": 4.8,
112
+ "left": 738.65,
113
+ "rotate": 90,
114
+ "attrs": {
115
+ "value": "220"
116
+ }
117
+ },
118
+ {
119
+ "type": "wokwi-resistor",
120
+ "id": "resistor9",
121
+ "top": 4.8,
122
+ "left": 719.45,
123
+ "rotate": 90,
124
+ "attrs": {
125
+ "value": "220"
126
+ }
127
+ },
128
+ {
129
+ "type": "wokwi-resistor",
130
+ "id": "resistor10",
131
+ "top": 4.8,
132
+ "left": 729.05,
133
+ "rotate": 90,
134
+ "attrs": {
135
+ "value": "220"
136
+ }
137
+ }
138
+ ],
139
+ "connections": [
140
+ [
141
+ "bar graph led1:A1",
142
+ "breadboard1:39t.e",
143
+ "",
144
+ [
145
+ "$bb"
146
+ ]
147
+ ],
148
+ [
149
+ "bar graph led1:A2",
150
+ "breadboard1:38t.e",
151
+ "",
152
+ [
153
+ "$bb"
154
+ ]
155
+ ],
156
+ [
157
+ "bar graph led1:A3",
158
+ "breadboard1:37t.e",
159
+ "",
160
+ [
161
+ "$bb"
162
+ ]
163
+ ],
164
+ [
165
+ "bar graph led1:A4",
166
+ "breadboard1:36t.e",
167
+ "",
168
+ [
169
+ "$bb"
170
+ ]
171
+ ],
172
+ [
173
+ "bar graph led1:A5",
174
+ "breadboard1:35t.e",
175
+ "",
176
+ [
177
+ "$bb"
178
+ ]
179
+ ],
180
+ [
181
+ "bar graph led1:A6",
182
+ "breadboard1:34t.e",
183
+ "",
184
+ [
185
+ "$bb"
186
+ ]
187
+ ],
188
+ [
189
+ "bar graph led1:A7",
190
+ "breadboard1:33t.e",
191
+ "",
192
+ [
193
+ "$bb"
194
+ ]
195
+ ],
196
+ [
197
+ "bar graph led1:A8",
198
+ "breadboard1:32t.e",
199
+ "",
200
+ [
201
+ "$bb"
202
+ ]
203
+ ],
204
+ [
205
+ "bar graph led1:A9",
206
+ "breadboard1:31t.e",
207
+ "",
208
+ [
209
+ "$bb"
210
+ ]
211
+ ],
212
+ [
213
+ "bar graph led1:A10",
214
+ "breadboard1:30t.e",
215
+ "",
216
+ [
217
+ "$bb"
218
+ ]
219
+ ],
220
+ [
221
+ "bar graph led1:C1",
222
+ "breadboard1:39b.f",
223
+ "",
224
+ [
225
+ "$bb"
226
+ ]
227
+ ],
228
+ [
229
+ "bar graph led1:C2",
230
+ "breadboard1:38b.f",
231
+ "",
232
+ [
233
+ "$bb"
234
+ ]
235
+ ],
236
+ [
237
+ "bar graph led1:C3",
238
+ "breadboard1:37b.f",
239
+ "",
240
+ [
241
+ "$bb"
242
+ ]
243
+ ],
244
+ [
245
+ "bar graph led1:C4",
246
+ "breadboard1:36b.f",
247
+ "",
248
+ [
249
+ "$bb"
250
+ ]
251
+ ],
252
+ [
253
+ "bar graph led1:C5",
254
+ "breadboard1:35b.f",
255
+ "",
256
+ [
257
+ "$bb"
258
+ ]
259
+ ],
260
+ [
261
+ "bar graph led1:C6",
262
+ "breadboard1:34b.f",
263
+ "",
264
+ [
265
+ "$bb"
266
+ ]
267
+ ],
268
+ [
269
+ "bar graph led1:C7",
270
+ "breadboard1:33b.f",
271
+ "",
272
+ [
273
+ "$bb"
274
+ ]
275
+ ],
276
+ [
277
+ "bar graph led1:C8",
278
+ "breadboard1:32b.f",
279
+ "",
280
+ [
281
+ "$bb"
282
+ ]
283
+ ],
284
+ [
285
+ "bar graph led1:C9",
286
+ "breadboard1:31b.f",
287
+ "",
288
+ [
289
+ "$bb"
290
+ ]
291
+ ],
292
+ [
293
+ "bar graph led1:C10",
294
+ "breadboard1:30b.f",
295
+ "",
296
+ [
297
+ "$bb"
298
+ ]
299
+ ],
300
+ [
301
+ "resistor5:1",
302
+ "breadboard1:39b.g",
303
+ "",
304
+ [
305
+ "$bb"
306
+ ]
307
+ ],
308
+ [
309
+ "resistor5:2",
310
+ "breadboard1:45b.g",
311
+ "",
312
+ [
313
+ "$bb"
314
+ ]
315
+ ],
316
+ [
317
+ "resistor6:1",
318
+ "breadboard1:38b.h",
319
+ "",
320
+ [
321
+ "$bb"
322
+ ]
323
+ ],
324
+ [
325
+ "resistor6:2",
326
+ "breadboard1:44b.h",
327
+ "",
328
+ [
329
+ "$bb"
330
+ ]
331
+ ],
332
+ [
333
+ "resistor7:1",
334
+ "breadboard1:37b.i",
335
+ "",
336
+ [
337
+ "$bb"
338
+ ]
339
+ ],
340
+ [
341
+ "resistor7:2",
342
+ "breadboard1:43b.i",
343
+ "",
344
+ [
345
+ "$bb"
346
+ ]
347
+ ],
348
+ [
349
+ "resistor3:1",
350
+ "breadboard1:26b.i",
351
+ "",
352
+ [
353
+ "$bb"
354
+ ]
355
+ ],
356
+ [
357
+ "resistor3:2",
358
+ "breadboard1:32b.i",
359
+ "",
360
+ [
361
+ "$bb"
362
+ ]
363
+ ],
364
+ [
365
+ "resistor2:1",
366
+ "breadboard1:25b.h",
367
+ "",
368
+ [
369
+ "$bb"
370
+ ]
371
+ ],
372
+ [
373
+ "resistor2:2",
374
+ "breadboard1:31b.h",
375
+ "",
376
+ [
377
+ "$bb"
378
+ ]
379
+ ],
380
+ [
381
+ "resistor1:1",
382
+ "breadboard1:24b.g",
383
+ "",
384
+ [
385
+ "$bb"
386
+ ]
387
+ ],
388
+ [
389
+ "resistor1:2",
390
+ "breadboard1:30b.g",
391
+ "",
392
+ [
393
+ "$bb"
394
+ ]
395
+ ],
396
+ [
397
+ "resistor9:1",
398
+ "breadboard1:34b.h",
399
+ "",
400
+ [
401
+ "$bb"
402
+ ]
403
+ ],
404
+ [
405
+ "resistor9:2",
406
+ "breadboard1:bn.27",
407
+ "",
408
+ [
409
+ "$bb"
410
+ ]
411
+ ],
412
+ [
413
+ "resistor10:1",
414
+ "breadboard1:35b.h",
415
+ "",
416
+ [
417
+ "$bb"
418
+ ]
419
+ ],
420
+ [
421
+ "resistor10:2",
422
+ "breadboard1:bn.28",
423
+ "",
424
+ [
425
+ "$bb"
426
+ ]
427
+ ],
428
+ [
429
+ "breadboard1:43b.j",
430
+ "breadboard1:bn.35",
431
+ "green",
432
+ [
433
+ "v0"
434
+ ]
435
+ ],
436
+ [
437
+ "breadboard1:44b.i",
438
+ "breadboard1:bn.36",
439
+ "green",
440
+ [
441
+ "v0"
442
+ ]
443
+ ],
444
+ [
445
+ "resistor8:1",
446
+ "breadboard1:36b.h",
447
+ "",
448
+ [
449
+ "$bb"
450
+ ]
451
+ ],
452
+ [
453
+ "resistor8:2",
454
+ "breadboard1:bn.29",
455
+ "",
456
+ [
457
+ "$bb"
458
+ ]
459
+ ],
460
+ [
461
+ "resistor4:1",
462
+ "breadboard1:33b.h",
463
+ "",
464
+ [
465
+ "$bb"
466
+ ]
467
+ ],
468
+ [
469
+ "resistor4:2",
470
+ "breadboard1:bn.26",
471
+ "",
472
+ [
473
+ "$bb"
474
+ ]
475
+ ],
476
+ [
477
+ "breadboard1:45b.h",
478
+ "breadboard1:bn.37",
479
+ "green",
480
+ [
481
+ "v0"
482
+ ]
483
+ ],
484
+ [
485
+ "breadboard1:26b.j",
486
+ "breadboard1:bn.21",
487
+ "green",
488
+ [
489
+ "v0"
490
+ ]
491
+ ],
492
+ [
493
+ "breadboard1:25b.i",
494
+ "breadboard1:bn.20",
495
+ "green",
496
+ [
497
+ "v0"
498
+ ]
499
+ ],
500
+ [
501
+ "breadboard1:24b.h",
502
+ "breadboard1:bn.19",
503
+ "green",
504
+ [
505
+ "v0"
506
+ ]
507
+ ],
508
+ [
509
+ "arduino uno1:GND.1",
510
+ "breadboard1:bn.24",
511
+ "black",
512
+ [
513
+ "v0"
514
+ ]
515
+ ],
516
+ [
517
+ "breadboard1:30t.d",
518
+ "arduino uno1:11",
519
+ "green",
520
+ [
521
+ "v-105.6",
522
+ "h48"
523
+ ]
524
+ ],
525
+ [
526
+ "breadboard1:31t.d",
527
+ "arduino uno1:10",
528
+ "green",
529
+ [
530
+ "v-115.2",
531
+ "h57.6"
532
+ ]
533
+ ],
534
+ [
535
+ "breadboard1:32t.d",
536
+ "arduino uno1:9",
537
+ "green",
538
+ [
539
+ "v-124.8",
540
+ "h57.6"
541
+ ]
542
+ ],
543
+ [
544
+ "breadboard1:33t.d",
545
+ "arduino uno1:8",
546
+ "green",
547
+ [
548
+ "v-134.4",
549
+ "h57.6"
550
+ ]
551
+ ],
552
+ [
553
+ "breadboard1:34t.d",
554
+ "arduino uno1:7",
555
+ "green",
556
+ [
557
+ "v-96",
558
+ "h57.6"
559
+ ]
560
+ ],
561
+ [
562
+ "breadboard1:35t.d",
563
+ "arduino uno1:6",
564
+ "green",
565
+ [
566
+ "v-105.6",
567
+ "h57.6"
568
+ ]
569
+ ],
570
+ [
571
+ "breadboard1:36t.d",
572
+ "arduino uno1:5",
573
+ "green",
574
+ [
575
+ "v-115.2",
576
+ "h67.2"
577
+ ]
578
+ ],
579
+ [
580
+ "breadboard1:37t.d",
581
+ "arduino uno1:4",
582
+ "green",
583
+ [
584
+ "v-86.4",
585
+ "h67.2"
586
+ ]
587
+ ],
588
+ [
589
+ "breadboard1:38t.d",
590
+ "arduino uno1:3",
591
+ "green",
592
+ [
593
+ "v-76.8",
594
+ "h67.2"
595
+ ]
596
+ ],
597
+ [
598
+ "breadboard1:39t.d",
599
+ "arduino uno1:2",
600
+ "green",
601
+ [
602
+ "v-96",
603
+ "h67.2"
604
+ ]
605
+ ]
606
+ ],
607
+ "dependencies": {}
608
+ }
arduino/level1/bar_led_basic/diagram_breadboard_shdf.json ADDED
@@ -0,0 +1,319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "components": [
3
+ {
4
+ "id": "bb1",
5
+ "type": "breadboard"
6
+ },
7
+ {
8
+ "id": "uno",
9
+ "type": "arduino uno"
10
+ },
11
+ {
12
+ "id": "r1",
13
+ "type": "resistor",
14
+ "properties": {
15
+ "value": "220 ohm"
16
+ }
17
+ },
18
+ {
19
+ "id": "Bar graph LED1",
20
+ "type": "bar graph led",
21
+ "properties": {
22
+ "color": "lime"
23
+ }
24
+ },
25
+ {
26
+ "id": "r2",
27
+ "type": "resistor",
28
+ "properties": {
29
+ "value": "220 ohm"
30
+ }
31
+ },
32
+ {
33
+ "id": "r3",
34
+ "type": "resistor",
35
+ "properties": {
36
+ "value": "220 ohm"
37
+ }
38
+ },
39
+ {
40
+ "id": "r4",
41
+ "type": "resistor",
42
+ "properties": {
43
+ "value": "220 ohm"
44
+ }
45
+ },
46
+ {
47
+ "id": "r5",
48
+ "type": "resistor",
49
+ "properties": {
50
+ "value": "220 ohm"
51
+ }
52
+ },
53
+ {
54
+ "id": "r6",
55
+ "type": "resistor",
56
+ "properties": {
57
+ "value": "220 ohm"
58
+ }
59
+ },
60
+ {
61
+ "id": "r7",
62
+ "type": "resistor",
63
+ "properties": {
64
+ "value": "220 ohm"
65
+ }
66
+ },
67
+ {
68
+ "id": "r8",
69
+ "type": "resistor",
70
+ "properties": {
71
+ "value": "220 ohm"
72
+ }
73
+ },
74
+ {
75
+ "id": "r9",
76
+ "type": "resistor",
77
+ "properties": {
78
+ "value": "220 ohm"
79
+ }
80
+ },
81
+ {
82
+ "id": "r10",
83
+ "type": "resistor",
84
+ "properties": {
85
+ "value": "220 ohm"
86
+ }
87
+ }
88
+ ],
89
+ "connections": [
90
+ [
91
+ "Bar graph LED1.a1",
92
+ "bb1.pin39t.e"
93
+ ],
94
+ [
95
+ "Bar graph LED1.a2",
96
+ "bb1.pin38t.e"
97
+ ],
98
+ [
99
+ "Bar graph LED1.a3",
100
+ "bb1.pin37t.e"
101
+ ],
102
+ [
103
+ "Bar graph LED1.a4",
104
+ "bb1.pin36t.e"
105
+ ],
106
+ [
107
+ "Bar graph LED1.a5",
108
+ "bb1.pin35t.e"
109
+ ],
110
+ [
111
+ "Bar graph LED1.a6",
112
+ "bb1.pin34t.e"
113
+ ],
114
+ [
115
+ "Bar graph LED1.a7",
116
+ "bb1.pin33t.e"
117
+ ],
118
+ [
119
+ "Bar graph LED1.a8",
120
+ "bb1.pin32t.e"
121
+ ],
122
+ [
123
+ "Bar graph LED1.a9",
124
+ "bb1.pin31t.e"
125
+ ],
126
+ [
127
+ "Bar graph LED1.a10",
128
+ "bb1.pin30t.e"
129
+ ],
130
+ [
131
+ "Bar graph LED1.c1",
132
+ "bb1.pin39b.f"
133
+ ],
134
+ [
135
+ "Bar graph LED1.c2",
136
+ "bb1.pin38b.f"
137
+ ],
138
+ [
139
+ "Bar graph LED1.c3",
140
+ "bb1.pin37b.f"
141
+ ],
142
+ [
143
+ "Bar graph LED1.c4",
144
+ "bb1.pin36b.f"
145
+ ],
146
+ [
147
+ "Bar graph LED1.c5",
148
+ "bb1.pin35b.f"
149
+ ],
150
+ [
151
+ "Bar graph LED1.c6",
152
+ "bb1.pin34b.f"
153
+ ],
154
+ [
155
+ "Bar graph LED1.c7",
156
+ "bb1.pin33b.f"
157
+ ],
158
+ [
159
+ "Bar graph LED1.c8",
160
+ "bb1.pin32b.f"
161
+ ],
162
+ [
163
+ "Bar graph LED1.c9",
164
+ "bb1.pin31b.f"
165
+ ],
166
+ [
167
+ "Bar graph LED1.c10",
168
+ "bb1.pin30b.f"
169
+ ],
170
+ [
171
+ "r5.1",
172
+ "bb1.pin39b.g"
173
+ ],
174
+ [
175
+ "r5.2",
176
+ "bb1.pin45b.g"
177
+ ],
178
+ [
179
+ "r6.1",
180
+ "bb1.pin38b.h"
181
+ ],
182
+ [
183
+ "r6.2",
184
+ "bb1.pin44b.h"
185
+ ],
186
+ [
187
+ "r7.1",
188
+ "bb1.pin37b.i"
189
+ ],
190
+ [
191
+ "r7.2",
192
+ "bb1.pin43b.i"
193
+ ],
194
+ [
195
+ "r3.1",
196
+ "bb1.pin26b.i"
197
+ ],
198
+ [
199
+ "r3.2",
200
+ "bb1.pin32b.i"
201
+ ],
202
+ [
203
+ "r2.1",
204
+ "bb1.pin25b.h"
205
+ ],
206
+ [
207
+ "r2.2",
208
+ "bb1.pin31b.h"
209
+ ],
210
+ [
211
+ "r1.1",
212
+ "bb1.pin24b.g"
213
+ ],
214
+ [
215
+ "r1.2",
216
+ "bb1.pin30b.g"
217
+ ],
218
+ [
219
+ "r9.1",
220
+ "bb1.pin34b.h"
221
+ ],
222
+ [
223
+ "r9.2",
224
+ "bb1.bn.27"
225
+ ],
226
+ [
227
+ "r10.1",
228
+ "bb1.pin35b.h"
229
+ ],
230
+ [
231
+ "r10.2",
232
+ "bb1.bn.28"
233
+ ],
234
+ [
235
+ "bb1.pin43b.j",
236
+ "bb1.bn.35"
237
+ ],
238
+ [
239
+ "bb1.pin44b.i",
240
+ "bb1.bn.36"
241
+ ],
242
+ [
243
+ "r8.1",
244
+ "bb1.pin36b.h"
245
+ ],
246
+ [
247
+ "r8.2",
248
+ "bb1.bn.29"
249
+ ],
250
+ [
251
+ "r4.1",
252
+ "bb1.pin33b.h"
253
+ ],
254
+ [
255
+ "r4.2",
256
+ "bb1.bn.26"
257
+ ],
258
+ [
259
+ "bb1.pin45b.h",
260
+ "bb1.bn.37"
261
+ ],
262
+ [
263
+ "bb1.pin26b.j",
264
+ "bb1.bn.21"
265
+ ],
266
+ [
267
+ "bb1.pin25b.i",
268
+ "bb1.bn.20"
269
+ ],
270
+ [
271
+ "bb1.pin24b.h",
272
+ "bb1.bn.19"
273
+ ],
274
+ [
275
+ "uno.gnd.1",
276
+ "bb1.bn.24"
277
+ ],
278
+ [
279
+ "bb1.pin30t.d",
280
+ "uno.11"
281
+ ],
282
+ [
283
+ "bb1.pin31t.d",
284
+ "uno.10"
285
+ ],
286
+ [
287
+ "bb1.pin32t.d",
288
+ "uno.9"
289
+ ],
290
+ [
291
+ "bb1.pin33t.d",
292
+ "uno.8"
293
+ ],
294
+ [
295
+ "bb1.pin34t.d",
296
+ "uno.7"
297
+ ],
298
+ [
299
+ "bb1.pin35t.d",
300
+ "uno.6"
301
+ ],
302
+ [
303
+ "bb1.pin36t.d",
304
+ "uno.5"
305
+ ],
306
+ [
307
+ "bb1.pin37t.d",
308
+ "uno.4"
309
+ ],
310
+ [
311
+ "bb1.pin38t.d",
312
+ "uno.3"
313
+ ],
314
+ [
315
+ "bb1.pin39t.d",
316
+ "uno.2"
317
+ ]
318
+ ]
319
+ }
arduino/level1/bar_led_basic/diagram_shdf.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "components": [
3
+ {
4
+ "id": "uno",
5
+ "type": "arduino uno"
6
+ },
7
+ {
8
+ "id": "r1",
9
+ "type": "resistor",
10
+ "properties": {
11
+ "value": "220 ohm"
12
+ }
13
+ },
14
+ {
15
+ "id": "r2",
16
+ "type": "resistor",
17
+ "properties": {
18
+ "value": "220 ohm"
19
+ }
20
+ },
21
+ {
22
+ "id": "r3",
23
+ "type": "resistor",
24
+ "properties": {
25
+ "value": "220 ohm"
26
+ }
27
+ },
28
+ {
29
+ "id": "bar graph led1",
30
+ "type": "bar graph led",
31
+ "properties": {
32
+ "color": "lime"
33
+ }
34
+ },
35
+ {
36
+ "id": "r4",
37
+ "type": "resistor",
38
+ "properties": {
39
+ "value": "220 ohm"
40
+ }
41
+ },
42
+ {
43
+ "id": "r5",
44
+ "type": "resistor",
45
+ "properties": {
46
+ "value": "220 ohm"
47
+ }
48
+ },
49
+ {
50
+ "id": "r6",
51
+ "type": "resistor",
52
+ "properties": {
53
+ "value": "220 ohm"
54
+ }
55
+ },
56
+ {
57
+ "id": "r7",
58
+ "type": "resistor",
59
+ "properties": {
60
+ "value": "220 ohm"
61
+ }
62
+ },
63
+ {
64
+ "id": "r8",
65
+ "type": "resistor",
66
+ "properties": {
67
+ "value": "220 ohm"
68
+ }
69
+ },
70
+ {
71
+ "id": "r9",
72
+ "type": "resistor",
73
+ "properties": {
74
+ "value": "220 ohm"
75
+ }
76
+ },
77
+ {
78
+ "id": "r10",
79
+ "type": "resistor",
80
+ "properties": {
81
+ "value": "220 ohm"
82
+ }
83
+ }
84
+ ],
85
+ "connections": [
86
+ [
87
+ "r1.2",
88
+ "bar graph led1.c1"
89
+ ],
90
+ [
91
+ "r3.2",
92
+ "bar graph led1.c2"
93
+ ],
94
+ [
95
+ "r2.2",
96
+ "bar graph led1.c3"
97
+ ],
98
+ [
99
+ "r4.2",
100
+ "bar graph led1.c4"
101
+ ],
102
+ [
103
+ "r5.2",
104
+ "bar graph led1.c5"
105
+ ],
106
+ [
107
+ "r6.2",
108
+ "bar graph led1.c6"
109
+ ],
110
+ [
111
+ "r7.2",
112
+ "bar graph led1.c7"
113
+ ],
114
+ [
115
+ "r8.2",
116
+ "bar graph led1.c8"
117
+ ],
118
+ [
119
+ "r9.2",
120
+ "bar graph led1.c9"
121
+ ],
122
+ [
123
+ "r10.2",
124
+ "bar graph led1.c10"
125
+ ],
126
+ [
127
+ "uno.gnd.1",
128
+ "r10.1"
129
+ ],
130
+ [
131
+ "uno.gnd.1",
132
+ "r9.1"
133
+ ],
134
+ [
135
+ "uno.gnd.1",
136
+ "r8.1"
137
+ ],
138
+ [
139
+ "uno.gnd.1",
140
+ "r7.1"
141
+ ],
142
+ [
143
+ "uno.gnd.1",
144
+ "r6.1"
145
+ ],
146
+ [
147
+ "uno.gnd.1",
148
+ "r5.1"
149
+ ],
150
+ [
151
+ "uno.gnd.1",
152
+ "r4.1"
153
+ ],
154
+ [
155
+ "uno.gnd.1",
156
+ "r2.1"
157
+ ],
158
+ [
159
+ "uno.gnd.1",
160
+ "r3.1"
161
+ ],
162
+ [
163
+ "uno.gnd.1",
164
+ "r1.1"
165
+ ],
166
+ [
167
+ "bar graph led1.a1",
168
+ "uno.2"
169
+ ],
170
+ [
171
+ "bar graph led1.a2",
172
+ "uno.3"
173
+ ],
174
+ [
175
+ "bar graph led1.a3",
176
+ "uno.4"
177
+ ],
178
+ [
179
+ "bar graph led1.a4",
180
+ "uno.5"
181
+ ],
182
+ [
183
+ "bar graph led1.a5",
184
+ "uno.6"
185
+ ],
186
+ [
187
+ "bar graph led1.a6",
188
+ "uno.7"
189
+ ],
190
+ [
191
+ "bar graph led1.a7",
192
+ "uno.8"
193
+ ],
194
+ [
195
+ "bar graph led1.a8",
196
+ "uno.9"
197
+ ],
198
+ [
199
+ "bar graph led1.a9",
200
+ "uno.10"
201
+ ],
202
+ [
203
+ "bar graph led1.a10",
204
+ "uno.11"
205
+ ]
206
+ ]
207
+ }
arduino/level1/bar_led_basic/platformio.ini ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ; PlatformIO Project Configuration File
2
+ ;
3
+ ; Build options: build flags, source filter
4
+ ; Upload options: custom upload port, speed and extra flags
5
+ ; Library options: dependencies, extra library storages
6
+ ; Advanced options: extra scripting
7
+ ;
8
+ ; Please visit documentation for the other options and examples
9
+ ; https://docs.platformio.org/page/projectconf.html
10
+
11
+ [platformio]
12
+ default_envs = uno
13
+
14
+ [env:uno]
15
+ platform = atmelavr
16
+ framework = arduino
17
+ board = uno
18
+
19
+ lib_deps =
20
+ Arduino
arduino/level1/bar_led_basic/scenario.yaml ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ author: Blind Author
2
+ description: Turn on the bar graph LED
3
+ name: Bar graph LED
4
+ steps:
5
+ - delay: 10ms
6
+ - expect-pin:
7
+ part-id: bar graph led1
8
+ pin: C1
9
+ value: 0
10
+ - expect-pin:
11
+ part-id: bar graph led1
12
+ pin: c2
13
+ value: 0
14
+ - expect-pin:
15
+ part-id: bar graph led1
16
+ pin: C3
17
+ value: 0
18
+ - expect-pin:
19
+ part-id: bar graph led1
20
+ pin: C4
21
+ value: 0
22
+ - expect-pin:
23
+ part-id: bar graph led1
24
+ pin: C5
25
+ value: 0
26
+ - expect-pin:
27
+ part-id: bar graph led1
28
+ pin: C6
29
+ value: 0
30
+ - expect-pin:
31
+ part-id: bar graph led1
32
+ pin: C7
33
+ value: 0
34
+ - expect-pin:
35
+ part-id: bar graph led1
36
+ pin: C8
37
+ value: 0
38
+ - expect-pin:
39
+ part-id: bar graph led1
40
+ pin: C9
41
+ value: 0
42
+ - expect-pin:
43
+ part-id: bar graph led1
44
+ pin: C10
45
+ value: 0
46
+ - expect-pin:
47
+ part-id: bar graph led1
48
+ pin: A1
49
+ value: 1
50
+ - expect-pin:
51
+ part-id: bar graph led1
52
+ pin: A2
53
+ value: 1
54
+ - expect-pin:
55
+ part-id: bar graph led1
56
+ pin: A3
57
+ value: 1
58
+ - expect-pin:
59
+ part-id: bar graph led1
60
+ pin: A4
61
+ value: 1
62
+ - expect-pin:
63
+ part-id: bar graph led1
64
+ pin: A5
65
+ value: 1
66
+ - expect-pin:
67
+ part-id: bar graph led1
68
+ pin: A6
69
+ value: 1
70
+ - expect-pin:
71
+ part-id: bar graph led1
72
+ pin: A7
73
+ value: 0
74
+ - expect-pin:
75
+ part-id: bar graph led1
76
+ pin: A8
77
+ value: 0
78
+ - expect-pin:
79
+ part-id: bar graph led1
80
+ pin: A9
81
+ value: 0
82
+ - expect-pin:
83
+ part-id: bar graph led1
84
+ pin: A10
85
+ value: 0
86
+ version: 1.0
arduino/level1/bar_led_basic/src/main.ino ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ Use bar LED
3
+ 10 APR 2025 by Blind Author
4
+ */
5
+
6
+ int pinList[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
7
+
8
+ int threshold = 6;
9
+
10
+ void setup() {
11
+ for (int i=0; i<10; i++) {
12
+ pinMode(pinList[i], OUTPUT);
13
+ }
14
+
15
+ for (int i=0; i<10; i++) {
16
+ if (i < threshold) {
17
+ digitalWrite(pinList[i], HIGH);
18
+ } else {
19
+ digitalWrite(pinList[i], LOW);
20
+ }
21
+ }
22
+ }
23
+
24
+ void loop() {
25
+ }
arduino/level1/bar_led_basic/wokwi.toml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ [wokwi]
2
+ version = 1.0
3
+ elf = ".pio/build/uno/firmware.elf"
4
+ firmware = ".pio/build/uno/firmware.hex"
arduino/level1/buzzer_basic/description.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Piezo Buzzer
2
+
3
+ ## Project Description
4
+ This is a simple Arduino project that uses piezoelectric buzzer to play 262Hz tone.
5
+
6
+ ## Hardware Components
7
+ - Arduino Uno
8
+ - Piezoelectric buzzer
9
+
10
+ ## Circuit Description
11
+ The piezo buzzer is connected to the Arduino. The positive pin is connected to pin2, the negative pin to gnd1.
12
+
13
+ ## Expected Behavior
14
+ When the Arduino powers up, it should:
15
+ 1. Set the pin mode as OUTPUT
16
+ 2. Continuously play 262Hz tone
17
+
18
+ ## Success Criteria
19
+ The test is successful when:
20
+ 1. Piezo buzzer runs successfuly
21
+
22
+ ## Notes for Implementation
23
+ - In the loop function, make buzzer play 262Hz tone
24
+
25
+ ## Variants
26
+ There may be variants with buzzer, GND pin number and the pitch of the sound being played.
arduino/level1/buzzer_basic/description_no_pin.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Piezo Buzzer
2
+
3
+ ## Project Description
4
+ This is a simple Arduino project that uses piezoelectric buzzer to play 262Hz tone.
5
+
6
+ ## Hardware Components
7
+ - Arduino Uno
8
+ - Piezoelectric buzzer
9
+
10
+ ## Circuit Description
11
+ The piezo buzzer is connected to the Arduino. The positive pin is connected to arduino digital pin.
12
+
13
+ ## Expected Behavior
14
+ When the Arduino powers up, it should:
15
+ 1. Set the pin mode as OUTPUT
16
+ 2. Continuously play 262Hz tone
17
+
18
+ ## Success Criteria
19
+ The test is successful when:
20
+ 1. Piezo buzzer runs successfuly
21
+
22
+ ## Notes for Implementation
23
+ - In the loop function, make buzzer play 262Hz tone
24
+
25
+ ## Variants
26
+ There may be variants with buzzer, GND pin number and the pitch of the sound being played.
arduino/level1/buzzer_basic/diagram.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1.0,
3
+ "author": "Blind Author",
4
+ "description": "Play tone with piezo buzzer",
5
+ "parts": [
6
+ {
7
+ "type": "wokwi-arduino-uno",
8
+ "id": "arduino uno1",
9
+ "top": -9,
10
+ "left": -19.8,
11
+ "attrs": {}
12
+ },
13
+ {
14
+ "type": "wokwi-buzzer",
15
+ "id": "piezoelectric buzzer1",
16
+ "top": -141.6,
17
+ "left": 97.8,
18
+ "attrs": {
19
+ "volume": "0.1"
20
+ }
21
+ }
22
+ ],
23
+ "connections": [
24
+ [
25
+ "piezoelectric buzzer1:1",
26
+ "arduino uno1:GND.1",
27
+ "green",
28
+ [
29
+ "v0"
30
+ ]
31
+ ],
32
+ [
33
+ "piezoelectric buzzer1:2",
34
+ "arduino uno1:2",
35
+ "green",
36
+ [
37
+ "v0"
38
+ ]
39
+ ]
40
+ ],
41
+ "dependencies": {}
42
+ }
arduino/level1/buzzer_basic/diagram_breadboard.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version": 1.0, "author": "Blind Author", "description": "Play tone with piezo buzzer", "parts": [{"type": "wokwi-breadboard", "id": "breadboard1", "top": -243, "left": -198.8, "attrs": {}}, {"type": "wokwi-arduino-uno", "id": "arduino uno1", "top": -9, "left": -19.8, "attrs": {}}, {"type": "wokwi-buzzer", "id": "piezoelectric buzzer1", "top": -208.8, "left": 88.2, "attrs": {"volume": "0.1"}}], "connections": [["piezoelectric buzzer1:1", "breadboard1:31b.f", "", ["$bb"]], ["piezoelectric buzzer1:2", "breadboard1:32b.f", "", ["$bb"]], ["breadboard1:31b.g", "arduino uno1:GND.1", "green", ["v0"]], ["breadboard1:32b.g", "arduino uno1:2", "green", ["v0"]]], "dependencies": {}}
arduino/level1/buzzer_basic/diagram_breadboard_shdf.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "components": [
3
+ {
4
+ "id": "bb1",
5
+ "type": "breadboard"
6
+ },
7
+ {
8
+ "id": "uno",
9
+ "type": "arduino uno"
10
+ },
11
+ {
12
+ "id": "bz1",
13
+ "type": "piezoelectric buzzer"
14
+ }
15
+ ],
16
+ "connections": [
17
+ [
18
+ "bz1.1",
19
+ "bb1.pin31b.f"
20
+ ],
21
+ [
22
+ "bz1.2",
23
+ "bb1.pin32b.f"
24
+ ],
25
+ [
26
+ "bb1.pin31b.g",
27
+ "uno.gnd.1"
28
+ ],
29
+ [
30
+ "bb1.pin32b.g",
31
+ "uno.2"
32
+ ]
33
+ ]
34
+ }
arduino/level1/buzzer_basic/diagram_shdf.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "components": [
3
+ {
4
+ "id": "uno",
5
+ "type": "arduino uno"
6
+ },
7
+ {
8
+ "id": "bz1",
9
+ "type": "piezoelectric buzzer"
10
+ }
11
+ ],
12
+ "connections": [
13
+ [
14
+ "bz1.1",
15
+ "uno.gnd.1"
16
+ ],
17
+ [
18
+ "bz1.2",
19
+ "uno.2"
20
+ ]
21
+ ]
22
+ }
arduino/level1/buzzer_basic/platformio.ini ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ; PlatformIO Project Configuration File
2
+ ;
3
+ ; Build options: build flags, source filter
4
+ ; Upload options: custom upload port, speed and extra flags
5
+ ; Library options: dependencies, extra library storages
6
+ ; Advanced options: extra scripting
7
+ ;
8
+ ; Please visit documentation for the other options and examples
9
+ ; https://docs.platformio.org/page/projectconf.html
10
+
11
+ [platformio]
12
+ default_envs = uno
13
+
14
+ [env:uno]
15
+ platform = atmelavr
16
+ framework = arduino
17
+ board = uno
18
+
19
+ lib_deps =
20
+ Arduino
arduino/level1/buzzer_basic/scenario.yaml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ author: Blind Author
2
+ description: Control a servo motor
3
+ name: Servo Motor Control
4
+ steps:
5
+ - delay: 10ms
6
+ - wait-pin:
7
+ timeout: 1000
8
+ interval: 100
9
+ part-id: piezoelectric buzzer1
10
+ pin: 2
11
+ value: 1
12
+ version: 1.0
arduino/level1/buzzer_basic/src/main.ino ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Use a piezoelectric buzzer to play 262Hz tone.
3
+ 4 APR 2025 by Blind Author
4
+ */
5
+
6
+ const int BUZZER_PIN = 2;
7
+
8
+ void setup() {
9
+ pinMode(BUZZER_PIN, OUTPUT);
10
+ }
11
+
12
+ void loop() {
13
+ tone(BUZZER_PIN, 262, 250);
14
+ }
15
+
arduino/level1/buzzer_basic/wokwi.toml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ [wokwi]
2
+ version = 1.0
3
+ elf = ".pio/build/uno/firmware.elf"
4
+ firmware = ".pio/build/uno/firmware.hex"
arduino/level1/distance_sensor_basic/description.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distance Sensor
2
+
3
+ ## Project Description
4
+ This is a simple Arduino project that uses Ultrasonic distance sensor to measure the distance.
5
+
6
+ ## Hardware Components
7
+ - Arduino Uno
8
+ - Ultrasonic Distance Sensor
9
+
10
+ ## Circuit Description
11
+ The ultrasonic distance sensor is connected to the Arduino. The VCC pin is connected to 5V, the GND pin to gnd3, the TRIG pin to pin3, and the ECHO pin to pin2.
12
+
13
+ ## Expected Behavior
14
+ When the Arduino powers up, it should:
15
+ 1. Initialize serial communication
16
+ 2. Continuously trigger and read the Ultrasonic distance sensor
17
+ 3. Change the value to the centimeter and print in the format: "Distance in CM: {value}"
18
+
19
+ ## Success Criteria
20
+ The test is successful when:
21
+ 1. Correct distance value in centimeter is printed in the serial monitor.
22
+
23
+ ## Notes for Implementation
24
+ - To convert the distance sensor value to centimeters, divide it by 58.
25
+
26
+ ## Variants
27
+ There may be variants with init distance value and ECHO, TRIG, GND pin number.