← Blink programs and delays lesson New set →

Electronics Worksheet: Blink Programs and Delays

Electronics lesson 23: Blink programs and delays · Set 709 · 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 800 ms; LED OFF; wait 850 ms }
    How many milliseconds does one blink (ON + OFF) take?
  2. 2.⏱️ repeat 6 times { buzzer ON; wait 100 ms; buzzer OFF; wait 900 ms }
    How many milliseconds does this take in all?
  3. 3.⏱️ How many milliseconds are in 1 second? (a) 10 (b) 1000 (c) 60 (d) 100
  4. 4.⏱️ How many milliseconds is a wait of 0.4 seconds?
  5. 5.⏱️ repeat 3 times { buzzer ON; wait 100 ms; buzzer OFF; wait 600 ms }
    How many milliseconds does this take in all?
  6. 6.⏱️ How many milliseconds is a wait of 4.9 seconds?
  7. 7.⏱️ How many milliseconds is a wait of 0.3 seconds?
  8. 8.⏱️ 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
  9. 9.⏱️ loop forever { LED ON; wait 700 ms; LED OFF; wait 800 ms }
    How many milliseconds does one blink (ON + OFF) take?
  10. 10.⏱️ How many milliseconds is a wait of 3 seconds?
  11. 11.⏱️ loop forever { LED ON; wait 1100 ms; LED OFF; wait 900 ms }
    How many times does the LED blink in 10 seconds?
  12. 12.⏱️ How many milliseconds is a wait of 2.7 seconds?
  13. 13.⏱️ repeat 2 times { buzzer ON; wait 200 ms; buzzer OFF; wait 300 ms }
    How many milliseconds does this take in all?
  14. 14.⏱️ loop forever { LED ON; wait 250 ms; LED OFF; wait 800 ms }
    How many milliseconds does one blink (ON + OFF) take?
  15. 15.⏱️ A program says “wait 9500 ms”. How many seconds is that? =
  16. 16.⏱️ How many milliseconds is a wait of 0.1 seconds?
  17. 17.⏱️ A program says “wait 8750 ms”. How many seconds is that? =
  18. 18.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 150 ms }
    How many times does the LED blink in 1 second?
  19. 19.⏱️ repeat 9 times { buzzer ON; wait 500 ms; buzzer OFF; wait 200 ms }
    How many milliseconds does this take in all?
  20. 20.⏱️ loop forever { LED ON; wait 250 ms; LED OFF; wait 250 ms }
    How many times does the LED blink in 2 seconds?
  21. 21.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 150 ms }
    How many times does the LED blink in 3 seconds?
  22. 22.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 900 ms }
    How many times does the LED blink in 2 seconds?
  23. 23.⏱️ A program says “wait 7250 ms”. How many seconds is that? =
  24. 24.⏱️ A program says “wait 4000 ms”. How many seconds is that? =
  25. 25.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 100 ms }
    How many times does the LED blink in 2 seconds?
  26. 26.⏱️ How many milliseconds is a wait of 4.8 seconds?
  27. 27.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 50 ms }
    How many times does the LED blink in 7 seconds?
  28. 28.⏱️ loop forever { LED ON; wait 550 ms; LED OFF; wait 650 ms }
    How many milliseconds does one blink (ON + OFF) take?
  29. 29.⏱️ A program says “wait 8500 ms”. How many seconds is that? =
  30. 30.⏱️ How many milliseconds is a wait of 4.1 seconds?
  31. 31.⏱️ How many milliseconds is a wait of 2.5 seconds?
  32. 32.⏱️ repeat 9 times { buzzer ON; wait 700 ms; buzzer OFF; wait 800 ms }
    How many milliseconds does this take in all?
  33. 33.⏱️ repeat 4 times { buzzer ON; wait 400 ms; buzzer OFF; wait 600 ms }
    How many milliseconds does this take in all?
  34. 34.⏱️ loop forever { LED ON; wait 250 ms; LED OFF; wait 250 ms }
    How many times does the LED blink in 6 seconds?
  35. 35.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 800 ms }
    How many milliseconds does one blink (ON + OFF) take?
  36. 36.⏱️ repeat 8 times { buzzer ON; wait 400 ms; buzzer OFF; wait 400 ms }
    How many milliseconds does this take in all?
  37. 37.⏱️ loop forever { LED ON; wait 1000 ms; LED OFF; wait 50 ms }
    How many milliseconds does one blink (ON + OFF) take?
  38. 38.⏱️ repeat 6 times { buzzer ON; wait 400 ms; buzzer OFF; wait 300 ms }
    How many milliseconds does this take in all?
  39. 39.⏱️ How many milliseconds is a wait of 3.7 seconds?
  40. 40.⏱️ How many milliseconds is a wait of 1.9 seconds?

Answer key

  1. 1650
  2. 6000
  3. 1000
  4. 400
  5. 2100
  6. 4900
  7. 300
  8. pauses for half a second
  9. 1500
  10. 3000
  11. 5
  12. 2700
  13. 1000
  14. 1050
  15. 9.5
  16. 100
  17. 8.75
  18. 5
  19. 6300
  20. 4
  21. 12
  22. 2
  23. 7.25
  24. 4
  25. 10
  26. 4800
  27. 35
  28. 1200
  29. 8.5
  30. 4100
  31. 2500
  32. 13500
  33. 4000
  34. 12
  35. 850
  36. 6400
  37. 1050
  38. 4200
  39. 3700
  40. 1900

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