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.⏱️ How many milliseconds is a wait of 2.8 seconds?
- 2.⏱️ A program says “wait 8250 ms”. How many seconds is that? =
-
3.⏱️ repeat 6 times { buzzer ON; wait 700 ms; buzzer OFF; wait 300 ms }
How many milliseconds does this take in all? - 4.⏱️ How many milliseconds is a wait of 2.2 seconds?
-
5.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 650 ms }
How many milliseconds does one blink (ON + OFF) take? - 6.⏱️ How many milliseconds are in 1 second? (a) 1000 (b) 10 (c) 100 (d) 60
-
7.⏱️ repeat 4 times { buzzer ON; wait 400 ms; buzzer OFF; wait 900 ms }
How many milliseconds does this take in all? -
8.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 1950 ms }
How many times does the LED blink in 6 seconds? - 9.⏱️ How many milliseconds is a wait of 1.4 seconds?
-
10.⏱️ repeat 3 times { buzzer ON; wait 1000 ms; buzzer OFF; wait 400 ms }
How many milliseconds does this take in all? -
11.⏱️ loop forever { LED ON; wait 200 ms; LED OFF; wait 50 ms }
How many times does the LED blink in 4 seconds? - 12.⏱️ How many milliseconds is a wait of 2.4 seconds?
-
13.⏱️ loop forever { LED ON; wait 200 ms; LED OFF; wait 50 ms }
How many times does the LED blink in 2 seconds? - 14.⏱️ A program says “wait 5750 ms”. How many seconds is that? =
-
15.⏱️ repeat 8 times { buzzer ON; wait 400 ms; buzzer OFF; wait 700 ms }
How many milliseconds does this take in all? - 16.⏱️ What does “wait 500 ms” do? (a) turns the LED off (b) blinks 500 times (c) pauses for half a second (d) waits 500 seconds
- 17.⏱️ How many milliseconds is a wait of 1.3 seconds?
- 18.⏱️ How many milliseconds is a wait of 0.7 seconds?
-
19.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 500 ms }
How many milliseconds does one blink (ON + OFF) take? -
20.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 150 ms }
How many times does the LED blink in 9 seconds? -
21.⏱️ repeat 10 times { buzzer ON; wait 300 ms; buzzer OFF; wait 900 ms }
How many milliseconds does this take in all? -
22.⏱️ repeat 2 times { buzzer ON; wait 200 ms; buzzer OFF; wait 100 ms }
How many milliseconds does this take in all? -
23.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 100 ms }
How many times does the LED blink in 3 seconds? - 24.⏱️ A program says “wait 6500 ms”. How many seconds is that? =
-
25.⏱️ loop forever { LED ON; wait 350 ms; LED OFF; wait 350 ms }
How many milliseconds does one blink (ON + OFF) take? -
26.⏱️ repeat 5 times { buzzer ON; wait 700 ms; buzzer OFF; wait 1000 ms }
How many milliseconds does this take in all? -
27.⏱️ repeat 2 times { buzzer ON; wait 100 ms; buzzer OFF; wait 300 ms }
How many milliseconds does this take in all? -
28.⏱️ loop forever { LED ON; wait 400 ms; LED OFF; wait 950 ms }
How many milliseconds does one blink (ON + OFF) take? -
29.⏱️ repeat 5 times { buzzer ON; wait 100 ms; buzzer OFF; wait 100 ms }
How many milliseconds does this take in all? - 30.⏱️ A program says “wait 4500 ms”. How many seconds is that? =
- 31.⏱️ A program says “wait 8000 ms”. How many seconds is that? =
- 32.⏱️ A program says “wait 9250 ms”. How many seconds is that? =
- 33.⏱️ How many milliseconds is a wait of 2.1 seconds?
-
34.⏱️ loop forever { LED ON; wait 300 ms; LED OFF; wait 200 ms }
How many times does the LED blink in 1 second? - 35.⏱️ A program says “wait 7250 ms”. How many seconds is that? =
- 36.⏱️ A program says “wait 1500 ms”. How many seconds is that? =
- 37.⏱️ A program says “wait 10000 ms”. How many seconds is that? =
-
38.⏱️ loop forever { LED ON; wait 250 ms; LED OFF; wait 750 ms }
How many times does the LED blink in 1 second? -
39.⏱️ repeat 2 times { buzzer ON; wait 200 ms; buzzer OFF; wait 900 ms }
How many milliseconds does this take in all? -
40.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 150 ms }
How many times does the LED blink in 1 second?
Answer key
- 2800
- 8.25
- 6000
- 2200
- 800
- 1000
- 5200
- 3
- 1400
- 4200
- 16
- 2400
- 8
- 5.75
- 8800
- pauses for half a second
- 1300
- 700
- 650
- 45
- 12000
- 600
- 15
- 6.5
- 700
- 8500
- 800
- 1350
- 1000
- 4.5
- 8
- 9.25
- 2100
- 2
- 7.25
- 1.5
- 10
- 1
- 2200
- 5
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids