← Blink programs and delays lesson New set →

Electronics Worksheet: Blink Programs and Delays

Electronics lesson 23: Blink programs and delays · Set 414 · 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.⏱️ How many milliseconds are in 1 second? (a) 1000 (b) 100 (c) 10 (d) 60
  2. 2.⏱️ loop forever { LED ON; wait 300 ms; LED OFF; wait 300 ms }
    How many milliseconds does one blink (ON + OFF) take?
  3. 3.⏱️ A program says “wait 2000 ms”. How many seconds is that? =
  4. 4.⏱️ loop forever { LED ON; wait 800 ms; LED OFF; wait 50 ms }
    How many milliseconds does one blink (ON + OFF) take?
  5. 5.⏱️ How many milliseconds is a wait of 0.7 seconds?
  6. 6.⏱️ repeat 4 times { buzzer ON; wait 600 ms; buzzer OFF; wait 1000 ms }
    How many milliseconds does this take in all?
  7. 7.⏱️ What does “wait 500 ms” do? (a) waits 500 seconds (b) turns the LED off (c) pauses for half a second (d) blinks 500 times
  8. 8.⏱️ A program says “wait 6500 ms”. How many seconds is that? =
  9. 9.⏱️ How many milliseconds is a wait of 1.7 seconds?
  10. 10.⏱️ loop forever { LED ON; wait 1000 ms; LED OFF; wait 350 ms }
    How many milliseconds does one blink (ON + OFF) take?
  11. 11.⏱️ How many milliseconds is a wait of 3.7 seconds?
  12. 12.⏱️ A program says “wait 9750 ms”. How many seconds is that? =
  13. 13.⏱️ How many milliseconds is a wait of 1.2 seconds?
  14. 14.⏱️ loop forever { LED ON; wait 1550 ms; LED OFF; wait 450 ms }
    How many times does the LED blink in 12 seconds?
  15. 15.⏱️ repeat 7 times { buzzer ON; wait 700 ms; buzzer OFF; wait 400 ms }
    How many milliseconds does this take in all?
  16. 16.⏱️ loop forever { LED ON; wait 350 ms; LED OFF; wait 850 ms }
    How many milliseconds does one blink (ON + OFF) take?
  17. 17.⏱️ How many milliseconds is a wait of 1.4 seconds?
  18. 18.⏱️ repeat 2 times { buzzer ON; wait 900 ms; buzzer OFF; wait 1000 ms }
    How many milliseconds does this take in all?
  19. 19.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 200 ms }
    How many times does the LED blink in 6 seconds?
  20. 20.⏱️ How many milliseconds is a wait of 3 seconds?
  21. 21.⏱️ How many milliseconds is a wait of 4.5 seconds?
  22. 22.⏱️ A program says “wait 4000 ms”. How many seconds is that? =
  23. 23.⏱️ repeat 9 times { buzzer ON; wait 300 ms; buzzer OFF; wait 500 ms }
    How many milliseconds does this take in all?
  24. 24.⏱️ repeat 10 times { buzzer ON; wait 100 ms; buzzer OFF; wait 200 ms }
    How many milliseconds does this take in all?
  25. 25.⏱️ repeat 8 times { buzzer ON; wait 200 ms; buzzer OFF; wait 300 ms }
    How many milliseconds does this take in all?
  26. 26.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 250 ms }
    How many times does the LED blink in 4 seconds?
  27. 27.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 400 ms }
    How many times does the LED blink in 10 seconds?
  28. 28.⏱️ loop forever { LED ON; wait 200 ms; LED OFF; wait 50 ms }
    How many times does the LED blink in 8 seconds?
  29. 29.⏱️ A program says “wait 6750 ms”. How many seconds is that? =
  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.⏱️ A program says “wait 7250 ms”. How many seconds is that? =
  32. 32.⏱️ A program says “wait 2500 ms”. How many seconds is that? =
  33. 33.⏱️ How many milliseconds is a wait of 3.1 seconds?
  34. 34.⏱️ A program says “wait 1000 ms”. How many seconds is that? =
  35. 35.⏱️ repeat 2 times { buzzer ON; wait 300 ms; buzzer OFF; wait 200 ms }
    How many milliseconds does this take in all?
  36. 36.⏱️ loop forever { LED ON; wait 900 ms; LED OFF; wait 300 ms }
    How many milliseconds does one blink (ON + OFF) take?
  37. 37.⏱️ How many milliseconds is a wait of 1.8 seconds?
  38. 38.⏱️ How many milliseconds is a wait of 0.6 seconds?
  39. 39.⏱️ loop forever { LED ON; wait 500 ms; LED OFF; wait 200 ms }
    How many milliseconds does one blink (ON + OFF) take?
  40. 40.⏱️ repeat 7 times { buzzer ON; wait 900 ms; buzzer OFF; wait 800 ms }
    How many milliseconds does this take in all?

Answer key

  1. 1000
  2. 600
  3. 2
  4. 850
  5. 700
  6. 6400
  7. pauses for half a second
  8. 6.5
  9. 1700
  10. 1350
  11. 3700
  12. 9.75
  13. 1200
  14. 6
  15. 7700
  16. 1200
  17. 1400
  18. 3800
  19. 24
  20. 3000
  21. 4500
  22. 4
  23. 7200
  24. 3000
  25. 4000
  26. 10
  27. 20
  28. 32
  29. 6.75
  30. 36
  31. 7.25
  32. 2.5
  33. 3100
  34. 1
  35. 1000
  36. 1200
  37. 1800
  38. 600
  39. 700
  40. 11900

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