← Blink programs and delays lesson New set →

Electronics Worksheet: Blink Programs and Delays

Electronics lesson 23: Blink programs and delays · Set 887 · 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 150 ms; LED OFF; wait 50 ms }
    How many times does the LED blink in 8 seconds?
  2. 2.⏱️ How many milliseconds is a wait of 2.5 seconds?
  3. 3.⏱️ loop forever { LED ON; wait 1800 ms; LED OFF; wait 200 ms }
    How many times does the LED blink in 16 seconds?
  4. 4.⏱️ repeat 2 times { buzzer ON; wait 400 ms; buzzer OFF; wait 300 ms }
    How many milliseconds does this take in all?
  5. 5.⏱️ How many milliseconds are in 1 second? (a) 100 (b) 10 (c) 60 (d) 1000
  6. 6.⏱️ loop forever { LED ON; wait 550 ms; LED OFF; wait 400 ms }
    How many milliseconds does one blink (ON + OFF) take?
  7. 7.⏱️ A program says “wait 250 ms”. How many seconds is that? =
  8. 8.⏱️ What does “wait 500 ms” do? (a) pauses for half a second (b) turns the LED off (c) waits 500 seconds (d) blinks 500 times
  9. 9.⏱️ How many milliseconds is a wait of 3.6 seconds?
  10. 10.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 150 ms }
    How many times does the LED blink in 9 seconds?
  11. 11.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 100 ms }
    How many times does the LED blink in 10 seconds?
  12. 12.⏱️ loop forever { LED ON; wait 600 ms; LED OFF; wait 400 ms }
    How many times does the LED blink in 2 seconds?
  13. 13.⏱️ A program says “wait 5000 ms”. How many seconds is that? =
  14. 14.⏱️ A program says “wait 9000 ms”. How many seconds is that? =
  15. 15.⏱️ repeat 6 times { buzzer ON; wait 900 ms; buzzer OFF; wait 300 ms }
    How many milliseconds does this take in all?
  16. 16.⏱️ repeat 10 times { buzzer ON; wait 600 ms; buzzer OFF; wait 600 ms }
    How many milliseconds does this take in all?
  17. 17.⏱️ How many milliseconds is a wait of 1.5 seconds?
  18. 18.⏱️ A program says “wait 4750 ms”. How many seconds is that? =
  19. 19.⏱️ How many milliseconds is a wait of 5 seconds?
  20. 20.⏱️ repeat 7 times { buzzer ON; wait 400 ms; buzzer OFF; wait 700 ms }
    How many milliseconds does this take in all?
  21. 21.⏱️ How many milliseconds is a wait of 0.7 seconds?
  22. 22.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 150 ms }
    How many times does the LED blink in 1 second?
  23. 23.⏱️ A program says “wait 2000 ms”. How many seconds is that? =
  24. 24.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 100 ms }
    How many times does the LED blink in 8 seconds?
  25. 25.⏱️ repeat 3 times { buzzer ON; wait 900 ms; buzzer OFF; wait 700 ms }
    How many milliseconds does this take in all?
  26. 26.⏱️ loop forever { LED ON; wait 950 ms; LED OFF; wait 950 ms }
    How many milliseconds does one blink (ON + OFF) take?
  27. 27.⏱️ How many milliseconds is a wait of 4.8 seconds?
  28. 28.⏱️ How many milliseconds is a wait of 0.6 seconds?
  29. 29.⏱️ repeat 10 times { buzzer ON; wait 100 ms; buzzer OFF; wait 300 ms }
    How many milliseconds does this take in all?
  30. 30.⏱️ How many milliseconds is a wait of 1.6 seconds?
  31. 31.⏱️ How many milliseconds is a wait of 1.9 seconds?
  32. 32.⏱️ loop forever { LED ON; wait 200 ms; LED OFF; wait 350 ms }
    How many milliseconds does one blink (ON + OFF) take?
  33. 33.⏱️ A program says “wait 5500 ms”. How many seconds is that? =
  34. 34.⏱️ A program says “wait 9750 ms”. How many seconds is that? =
  35. 35.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 1900 ms }
    How many times does the LED blink in 20 seconds?
  36. 36.⏱️ loop forever { LED ON; wait 300 ms; LED OFF; wait 100 ms }
    How many milliseconds does one blink (ON + OFF) take?
  37. 37.⏱️ repeat 2 times { buzzer ON; wait 400 ms; buzzer OFF; wait 800 ms }
    How many milliseconds does this take in all?
  38. 38.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 200 ms }
    How many times does the LED blink in 1 second?
  39. 39.⏱️ repeat 8 times { buzzer ON; wait 200 ms; buzzer OFF; wait 1000 ms }
    How many milliseconds does this take in all?
  40. 40.⏱️ loop forever { LED ON; wait 750 ms; LED OFF; wait 1000 ms }
    How many milliseconds does one blink (ON + OFF) take?

Answer key

  1. 40
  2. 2500
  3. 8
  4. 1400
  5. 1000
  6. 950
  7. 0.25
  8. pauses for half a second
  9. 3600
  10. 45
  11. 50
  12. 2
  13. 5
  14. 9
  15. 7200
  16. 12000
  17. 1500
  18. 4.75
  19. 5000
  20. 7700
  21. 700
  22. 5
  23. 2
  24. 40
  25. 4800
  26. 1900
  27. 4800
  28. 600
  29. 4000
  30. 1600
  31. 1900
  32. 550
  33. 5.5
  34. 9.75
  35. 10
  36. 400
  37. 2400
  38. 4
  39. 9600
  40. 1750

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