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 1.2 seconds?
- 2.⏱️ How many milliseconds are in 1 second? (a) 10 (b) 1000 (c) 60 (d) 100
- 3.⏱️ A program says “wait 4000 ms”. How many seconds is that? =
- 4.⏱️ What does “wait 500 ms” do? (a) blinks 500 times (b) turns the LED off (c) waits 500 seconds (d) pauses for half a second
-
5.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 100 ms }
How many times does the LED blink in 5 seconds? - 6.⏱️ A program says “wait 3000 ms”. How many seconds is that? =
-
7.⏱️ repeat 7 times { buzzer ON; wait 500 ms; buzzer OFF; wait 200 ms }
How many milliseconds does this take in all? -
8.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 200 ms }
How many times does the LED blink in 3 seconds? -
9.⏱️ loop forever { LED ON; wait 600 ms; LED OFF; wait 550 ms }
How many milliseconds does one blink (ON + OFF) take? - 10.⏱️ How many milliseconds is a wait of 0.4 seconds?
- 11.⏱️ How many milliseconds is a wait of 1.8 seconds?
-
12.⏱️ loop forever { LED ON; wait 250 ms; LED OFF; wait 750 ms }
How many times does the LED blink in 3 seconds? -
13.⏱️ loop forever { LED ON; wait 800 ms; LED OFF; wait 650 ms }
How many milliseconds does one blink (ON + OFF) take? - 14.⏱️ How many milliseconds is a wait of 1.4 seconds?
-
15.⏱️ repeat 6 times { buzzer ON; wait 900 ms; buzzer OFF; wait 800 ms }
How many milliseconds does this take in all? -
16.⏱️ repeat 8 times { buzzer ON; wait 900 ms; buzzer OFF; wait 200 ms }
How many milliseconds does this take in all? -
17.⏱️ repeat 2 times { buzzer ON; wait 200 ms; buzzer OFF; wait 800 ms }
How many milliseconds does this take in all? -
18.⏱️ loop forever { LED ON; wait 450 ms; LED OFF; wait 50 ms }
How many times does the LED blink in 10 seconds? - 19.⏱️ How many milliseconds is a wait of 0.9 seconds?
- 20.⏱️ A program says “wait 5750 ms”. How many seconds is that? =
-
21.⏱️ loop forever { LED ON; wait 250 ms; LED OFF; wait 100 ms }
How many milliseconds does one blink (ON + OFF) take? -
22.⏱️ loop forever { LED ON; wait 400 ms; LED OFF; wait 600 ms }
How many times does the LED blink in 1 second? -
23.⏱️ repeat 5 times { buzzer ON; wait 800 ms; buzzer OFF; wait 400 ms }
How many milliseconds does this take in all? - 24.⏱️ How many milliseconds is a wait of 1.5 seconds?
-
25.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 100 ms }
How many milliseconds does one blink (ON + OFF) take? -
26.⏱️ loop forever { LED ON; wait 500 ms; LED OFF; wait 350 ms }
How many milliseconds does one blink (ON + OFF) take? -
27.⏱️ repeat 9 times { buzzer ON; wait 200 ms; buzzer OFF; wait 800 ms }
How many milliseconds does this take in all? - 28.⏱️ How many milliseconds is a wait of 3.9 seconds?
- 29.⏱️ A program says “wait 1750 ms”. How many seconds is that? =
-
30.⏱️ repeat 8 times { buzzer ON; wait 200 ms; buzzer OFF; wait 700 ms }
How many milliseconds does this take in all? -
31.⏱️ loop forever { LED ON; wait 1000 ms; LED OFF; wait 250 ms }
How many milliseconds does one blink (ON + OFF) take? - 32.⏱️ A program says “wait 10000 ms”. How many seconds is that? =
-
33.⏱️ loop forever { LED ON; wait 200 ms; LED OFF; wait 300 ms }
How many times does the LED blink in 1 second? - 34.⏱️ How many milliseconds is a wait of 2.3 seconds?
-
35.⏱️ repeat 8 times { buzzer ON; wait 1000 ms; buzzer OFF; wait 600 ms }
How many milliseconds does this take in all? - 36.⏱️ A program says “wait 8250 ms”. How many seconds is that? =
-
37.⏱️ repeat 5 times { buzzer ON; wait 500 ms; buzzer OFF; wait 300 ms }
How many milliseconds does this take in all? -
38.⏱️ loop forever { LED ON; wait 300 ms; LED OFF; wait 650 ms }
How many milliseconds does one blink (ON + OFF) take? -
39.⏱️ loop forever { LED ON; wait 950 ms; LED OFF; wait 1050 ms }
How many times does the LED blink in 4 seconds? -
40.⏱️ loop forever { LED ON; wait 250 ms; LED OFF; wait 150 ms }
How many times does the LED blink in 4 seconds?
Answer key
- 1200
- 1000
- 4
- pauses for half a second
- 25
- 3
- 4900
- 12
- 1150
- 400
- 1800
- 3
- 1450
- 1400
- 10200
- 8800
- 2000
- 20
- 900
- 5.75
- 350
- 1
- 6000
- 1500
- 150
- 850
- 9000
- 3900
- 1.75
- 7200
- 1250
- 10
- 2
- 2300
- 12800
- 8.25
- 4000
- 950
- 2
- 10
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids