← Blink programs and delays lesson New set →

Electronics Worksheet: Blink Programs and Delays

Electronics lesson 23: Blink programs and delays · Set 283 · 40 questions
TalentJR

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. 1.⏱️ loop forever { LED ON; wait 200 ms; LED OFF; wait 200 ms }
    How many times does the LED blink in 16 seconds?
  2. 2.⏱️ How many milliseconds is a wait of 2.2 seconds?
  3. 3.⏱️ How many milliseconds is a wait of 0.1 seconds?
  4. 4.⏱️ repeat 5 times { buzzer ON; wait 500 ms; buzzer OFF; wait 700 ms }
    How many milliseconds does this take in all?
  5. 5.⏱️ repeat 10 times { buzzer ON; wait 1000 ms; buzzer OFF; wait 900 ms }
    How many milliseconds does this take in all?
  6. 6.⏱️ How many milliseconds is a wait of 0.9 seconds?
  7. 7.⏱️ How many milliseconds is a wait of 1 seconds?
  8. 8.⏱️ loop forever { LED ON; wait 250 ms; LED OFF; wait 950 ms }
    How many milliseconds does one blink (ON + OFF) take?
  9. 9.⏱️ repeat 7 times { buzzer ON; wait 500 ms; buzzer OFF; wait 700 ms }
    How many milliseconds does this take in all?
  10. 10.⏱️ loop forever { LED ON; wait 750 ms; LED OFF; wait 700 ms }
    How many milliseconds does one blink (ON + OFF) take?
  11. 11.⏱️ How many milliseconds is a wait of 2.8 seconds?
  12. 12.⏱️ How many milliseconds is a wait of 2.7 seconds?
  13. 13.⏱️ What does “wait 500 ms” do? (a) turns the LED off (b) pauses for half a second (c) blinks 500 times (d) waits 500 seconds
  14. 14.⏱️ repeat 3 times { buzzer ON; wait 900 ms; buzzer OFF; wait 700 ms }
    How many milliseconds does this take in all?
  15. 15.⏱️ loop forever { LED ON; wait 950 ms; LED OFF; wait 400 ms }
    How many milliseconds does one blink (ON + OFF) take?
  16. 16.⏱️ A program says “wait 5750 ms”. How many seconds is that? =
  17. 17.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 200 ms }
    How many times does the LED blink in 6 seconds?
  18. 18.⏱️ How many milliseconds is a wait of 1.7 seconds?
  19. 19.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 1000 ms }
    How many milliseconds does one blink (ON + OFF) take?
  20. 20.⏱️ How many milliseconds are in 1 second? (a) 60 (b) 1000 (c) 10 (d) 100
  21. 21.⏱️ A program says “wait 8000 ms”. How many seconds is that? =
  22. 22.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 850 ms }
    How many times does the LED blink in 3 seconds?
  23. 23.⏱️ loop forever { LED ON; wait 600 ms; LED OFF; wait 850 ms }
    How many milliseconds does one blink (ON + OFF) take?
  24. 24.⏱️ A program says “wait 1500 ms”. How many seconds is that? =
  25. 25.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 350 ms }
    How many times does the LED blink in 10 seconds?
  26. 26.⏱️ repeat 8 times { buzzer ON; wait 1000 ms; buzzer OFF; wait 300 ms }
    How many milliseconds does this take in all?
  27. 27.⏱️ repeat 9 times { buzzer ON; wait 300 ms; buzzer OFF; wait 800 ms }
    How many milliseconds does this take in all?
  28. 28.⏱️ loop forever { LED ON; wait 650 ms; LED OFF; wait 900 ms }
    How many milliseconds does one blink (ON + OFF) take?
  29. 29.⏱️ repeat 6 times { buzzer ON; wait 1000 ms; buzzer OFF; wait 500 ms }
    How many milliseconds does this take in all?
  30. 30.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 100 ms }
    How many times does the LED blink in 9 seconds?
  31. 31.⏱️ loop forever { LED ON; wait 300 ms; LED OFF; wait 550 ms }
    How many milliseconds does one blink (ON + OFF) take?
  32. 32.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 400 ms }
    How many times does the LED blink in 3 seconds?
  33. 33.⏱️ How many milliseconds is a wait of 4.1 seconds?
  34. 34.⏱️ A program says “wait 500 ms”. How many seconds is that? =
  35. 35.⏱️ loop forever { LED ON; wait 850 ms; LED OFF; wait 600 ms }
    How many milliseconds does one blink (ON + OFF) take?
  36. 36.⏱️ loop forever { LED ON; wait 950 ms; LED OFF; wait 50 ms }
    How many times does the LED blink in 8 seconds?
  37. 37.⏱️ loop forever { LED ON; wait 1100 ms; LED OFF; wait 900 ms }
    How many times does the LED blink in 14 seconds?
  38. 38.⏱️ repeat 8 times { buzzer ON; wait 400 ms; buzzer OFF; wait 200 ms }
    How many milliseconds does this take in all?
  39. 39.⏱️ A program says “wait 7000 ms”. How many seconds is that? =
  40. 40.⏱️ A program says “wait 2500 ms”. How many seconds is that? =

Answer key

  1. 40
  2. 2200
  3. 100
  4. 6000
  5. 19000
  6. 900
  7. 1000
  8. 1200
  9. 8400
  10. 1450
  11. 2800
  12. 2700
  13. pauses for half a second
  14. 4800
  15. 1350
  16. 5.75
  17. 24
  18. 1700
  19. 1050
  20. 1000
  21. 8
  22. 3
  23. 1450
  24. 1.5
  25. 20
  26. 10400
  27. 9900
  28. 1550
  29. 9000
  30. 36
  31. 850
  32. 6
  33. 4100
  34. 0.5
  35. 1450
  36. 8
  37. 7
  38. 4800
  39. 7
  40. 2.5

Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids