← Blink programs and delays lesson New set →

Electronics Worksheet: Blink Programs and Delays

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

Answer key

  1. 10
  2. 6
  3. 1000
  4. 0.25
  5. 8
  6. 2700
  7. 5.75
  8. 1000
  9. 4000
  10. 3.75
  11. 18
  12. 200
  13. 2900
  14. 10500
  15. 5600
  16. 7
  17. pauses for half a second
  18. 3300
  19. 35
  20. 2.75
  21. 4900
  22. 2.5
  23. 3300
  24. 8
  25. 50
  26. 3600
  27. 4800
  28. 4.5
  29. 10
  30. 2000
  31. 40
  32. 15000
  33. 4000
  34. 18
  35. 1150
  36. 0.5
  37. 10
  38. 8
  39. 2400
  40. 1800

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