Electronics Worksheet: Blink Programs and Delays
Remember (ON + OFF = one blink): 1 second = 1000 ms. One blink = ON wait + OFF wait. Blinks = total time in ms ÷ one blink; repeat n times takes n × one round.
NameDateTime takenScore ___ / 40
-
1.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 400 ms }
How many times does the LED blink in 3 seconds? -
2.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 50 ms }
How many times does the LED blink in 2 seconds? -
3.⏱️ loop forever { LED ON; wait 650 ms; LED OFF; wait 1350 ms }
How many times does the LED blink in 14 seconds? -
4.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 1850 ms }
How many times does the LED blink in 8 seconds? -
5.⏱️ repeat 7 times { buzzer ON; wait 1000 ms; buzzer OFF; wait 200 ms }
How many milliseconds does this take in all? -
6.⏱️ repeat 10 times { buzzer ON; wait 200 ms; buzzer OFF; wait 200 ms }
How many milliseconds does this take in all? - 7.⏱️ A program says “wait 7750 ms”. How many seconds is that? =
- 8.⏱️ How many milliseconds is a wait of 1.1 seconds?
-
9.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 100 ms }
How many times does the LED blink in 5 seconds? - 10.⏱️ How many milliseconds are in 1 second? (a) 10 (b) 60 (c) 1000 (d) 100
- 11.⏱️ A program says “wait 9000 ms”. How many seconds is that? =
-
12.⏱️ loop forever { LED ON; wait 850 ms; LED OFF; wait 1000 ms }
How many milliseconds does one blink (ON + OFF) take? - 13.⏱️ How many milliseconds is a wait of 0.8 seconds?
-
14.⏱️ repeat 9 times { buzzer ON; wait 200 ms; buzzer OFF; wait 400 ms }
How many milliseconds does this take in all? - 15.⏱️ How many milliseconds is a wait of 4.9 seconds?
- 16.⏱️ How many milliseconds is a wait of 0.3 seconds?
-
17.⏱️ repeat 5 times { buzzer ON; wait 300 ms; buzzer OFF; wait 200 ms }
How many milliseconds does this take in all? - 18.⏱️ A program says “wait 750 ms”. How many seconds is that? =
- 19.⏱️ How many milliseconds is a wait of 4.4 seconds?
-
20.⏱️ repeat 3 times { buzzer ON; wait 700 ms; buzzer OFF; wait 300 ms }
How many milliseconds does this take in all? -
21.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 1850 ms }
How many times does the LED blink in 6 seconds? -
22.⏱️ repeat 10 times { buzzer ON; wait 600 ms; buzzer OFF; wait 700 ms }
How many milliseconds does this take in all? -
23.⏱️ repeat 3 times { buzzer ON; wait 700 ms; buzzer OFF; wait 100 ms }
How many milliseconds does this take in all? -
24.⏱️ repeat 3 times { buzzer ON; wait 800 ms; buzzer OFF; wait 100 ms }
How many milliseconds does this take in all? -
25.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 250 ms }
How many times does the LED blink in 14 seconds? - 26.⏱️ What does “wait 500 ms” do? (a) waits 500 seconds (b) pauses for half a second (c) turns the LED off (d) blinks 500 times
- 27.⏱️ How many milliseconds is a wait of 0.2 seconds?
- 28.⏱️ A program says “wait 3500 ms”. How many seconds is that? =
-
29.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 400 ms }
How many times does the LED blink in 9 seconds? -
30.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 150 ms }
How many times does the LED blink in 1 second? - 31.⏱️ A program says “wait 4000 ms”. How many seconds is that? =
- 32.⏱️ A program says “wait 7500 ms”. How many seconds is that? =
-
33.⏱️ repeat 9 times { buzzer ON; wait 800 ms; buzzer OFF; wait 600 ms }
How many milliseconds does this take in all? - 34.⏱️ A program says “wait 2750 ms”. How many seconds is that? =
-
35.⏱️ loop forever { LED ON; wait 1800 ms; LED OFF; wait 200 ms }
How many times does the LED blink in 20 seconds? - 36.⏱️ How many milliseconds is a wait of 1.3 seconds?
- 37.⏱️ A program says “wait 6500 ms”. How many seconds is that? =
-
38.⏱️ repeat 2 times { buzzer ON; wait 400 ms; buzzer OFF; wait 600 ms }
How many milliseconds does this take in all? - 39.⏱️ How many milliseconds is a wait of 0.4 seconds?
-
40.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 100 ms }
How many times does the LED blink in 6 seconds?
Answer key
- 6
- 10
- 7
- 4
- 8400
- 4000
- 7.75
- 1100
- 20
- 1000
- 9
- 1850
- 800
- 5400
- 4900
- 300
- 2500
- 0.75
- 4400
- 3000
- 3
- 13000
- 2400
- 2700
- 35
- pauses for half a second
- 200
- 3.5
- 18
- 5
- 4
- 7.5
- 12600
- 2.75
- 10
- 1300
- 6.5
- 2000
- 400
- 30
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids