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.⏱️ A program says “wait 6500 ms”. How many seconds is that? =
- 2.⏱️ How many milliseconds is a wait of 1.8 seconds?
-
3.⏱️ repeat 10 times { buzzer ON; wait 400 ms; buzzer OFF; wait 600 ms }
How many milliseconds does this take in all? -
4.⏱️ loop forever { LED ON; wait 550 ms; LED OFF; wait 450 ms }
How many times does the LED blink in 10 seconds? - 5.⏱️ What does “wait 500 ms” do? (a) turns the LED off (b) waits 500 seconds (c) pauses for half a second (d) blinks 500 times
-
6.⏱️ repeat 5 times { buzzer ON; wait 500 ms; buzzer OFF; wait 500 ms }
How many milliseconds does this take in all? -
7.⏱️ loop forever { LED ON; wait 950 ms; LED OFF; wait 600 ms }
How many milliseconds does one blink (ON + OFF) take? - 8.⏱️ How many milliseconds is a wait of 0.3 seconds?
-
9.⏱️ loop forever { LED ON; wait 450 ms; LED OFF; wait 650 ms }
How many milliseconds does one blink (ON + OFF) take? -
10.⏱️ repeat 6 times { buzzer ON; wait 800 ms; buzzer OFF; wait 400 ms }
How many milliseconds does this take in all? - 11.⏱️ A program says “wait 1000 ms”. How many seconds is that? =
- 12.⏱️ A program says “wait 8500 ms”. How many seconds is that? =
-
13.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 150 ms }
How many times does the LED blink in 10 seconds? - 14.⏱️ How many milliseconds are in 1 second? (a) 100 (b) 60 (c) 1000 (d) 10
-
15.⏱️ loop forever { LED ON; wait 950 ms; LED OFF; wait 450 ms }
How many milliseconds does one blink (ON + OFF) take? - 16.⏱️ How many milliseconds is a wait of 4.8 seconds?
-
17.⏱️ repeat 9 times { buzzer ON; wait 900 ms; buzzer OFF; wait 500 ms }
How many milliseconds does this take in all? - 18.⏱️ How many milliseconds is a wait of 3.5 seconds?
-
19.⏱️ repeat 3 times { buzzer ON; wait 200 ms; buzzer OFF; wait 300 ms }
How many milliseconds does this take in all? -
20.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 100 ms }
How many times does the LED blink in 1 second? - 21.⏱️ A program says “wait 750 ms”. How many seconds is that? =
-
22.⏱️ repeat 3 times { buzzer ON; wait 300 ms; buzzer OFF; wait 500 ms }
How many milliseconds does this take in all? - 23.⏱️ A program says “wait 3000 ms”. How many seconds is that? =
-
24.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 750 ms }
How many milliseconds does one blink (ON + OFF) take? -
25.⏱️ loop forever { LED ON; wait 550 ms; LED OFF; wait 150 ms }
How many milliseconds does one blink (ON + OFF) take? -
26.⏱️ loop forever { LED ON; wait 250 ms; LED OFF; wait 550 ms }
How many milliseconds does one blink (ON + OFF) take? -
27.⏱️ loop forever { LED ON; wait 1000 ms; LED OFF; wait 850 ms }
How many milliseconds does one blink (ON + OFF) take? - 28.⏱️ A program says “wait 2750 ms”. How many seconds is that? =
-
29.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 350 ms }
How many times does the LED blink in 9 seconds? -
30.⏱️ repeat 6 times { buzzer ON; wait 1000 ms; buzzer OFF; wait 200 ms }
How many milliseconds does this take in all? - 31.⏱️ How many milliseconds is a wait of 5 seconds?
- 32.⏱️ How many milliseconds is a wait of 1.6 seconds?
- 33.⏱️ How many milliseconds is a wait of 4.9 seconds?
-
34.⏱️ repeat 6 times { buzzer ON; wait 300 ms; buzzer OFF; wait 100 ms }
How many milliseconds does this take in all? - 35.⏱️ How many milliseconds is a wait of 1 seconds?
-
36.⏱️ loop forever { LED ON; wait 400 ms; LED OFF; wait 100 ms }
How many times does the LED blink in 5 seconds? - 37.⏱️ A program says “wait 3500 ms”. How many seconds is that? =
-
38.⏱️ repeat 4 times { buzzer ON; wait 100 ms; buzzer OFF; wait 800 ms }
How many milliseconds does this take in all? - 39.⏱️ How many milliseconds is a wait of 0.5 seconds?
-
40.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 150 ms }
How many times does the LED blink in 1 second?
Answer key
- 6.5
- 1800
- 10000
- 10
- pauses for half a second
- 5000
- 1550
- 300
- 1100
- 7200
- 1
- 8.5
- 40
- 1000
- 1400
- 4800
- 12600
- 3500
- 1500
- 5
- 0.75
- 2400
- 3
- 900
- 700
- 800
- 1850
- 2.75
- 18
- 7200
- 5000
- 1600
- 4900
- 2400
- 1000
- 10
- 3.5
- 3600
- 500
- 4
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids