← Blink programs and delays lesson New set →

Electronics Worksheet: Blink Programs and Delays

Electronics lesson 23: Blink programs and delays · Set 389 · 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) 60 (b) 10 (c) 100 (d) 1000
  2. 2.⏱️ How many milliseconds is a wait of 1.1 seconds?
  3. 3.⏱️ 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
  4. 4.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 300 ms }
    How many times does the LED blink in 2 seconds?
  5. 5.⏱️ repeat 3 times { buzzer ON; wait 700 ms; buzzer OFF; wait 500 ms }
    How many milliseconds does this take in all?
  6. 6.⏱️ A program says “wait 4750 ms”. How many seconds is that? =
  7. 7.⏱️ A program says “wait 1500 ms”. How many seconds is that? =
  8. 8.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 100 ms }
    How many times does the LED blink in 4 seconds?
  9. 9.⏱️ A program says “wait 4000 ms”. How many seconds is that? =
  10. 10.⏱️ repeat 2 times { buzzer ON; wait 600 ms; buzzer OFF; wait 500 ms }
    How many milliseconds does this take in all?
  11. 11.⏱️ How many milliseconds is a wait of 0.5 seconds?
  12. 12.⏱️ A program says “wait 3500 ms”. How many seconds is that? =
  13. 13.⏱️ How many milliseconds is a wait of 4.8 seconds?
  14. 14.⏱️ A program says “wait 5500 ms”. How many seconds is that? =
  15. 15.⏱️ loop forever { LED ON; wait 200 ms; LED OFF; wait 150 ms }
    How many milliseconds does one blink (ON + OFF) take?
  16. 16.⏱️ loop forever { LED ON; wait 950 ms; LED OFF; wait 150 ms }
    How many milliseconds does one blink (ON + OFF) take?
  17. 17.⏱️ loop forever { LED ON; wait 900 ms; LED OFF; wait 800 ms }
    How many milliseconds does one blink (ON + OFF) take?
  18. 18.⏱️ How many milliseconds is a wait of 3.5 seconds?
  19. 19.⏱️ repeat 4 times { buzzer ON; wait 600 ms; buzzer OFF; wait 600 ms }
    How many milliseconds does this take in all?
  20. 20.⏱️ A program says “wait 4500 ms”. How many seconds is that? =
  21. 21.⏱️ loop forever { LED ON; wait 200 ms; LED OFF; wait 50 ms }
    How many times does the LED blink in 5 seconds?
  22. 22.⏱️ repeat 3 times { buzzer ON; wait 200 ms; buzzer OFF; wait 100 ms }
    How many milliseconds does this take in all?
  23. 23.⏱️ A program says “wait 8750 ms”. How many seconds is that? =
  24. 24.⏱️ loop forever { LED ON; wait 100 ms; LED OFF; wait 400 ms }
    How many times does the LED blink in 1 second?
  25. 25.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 350 ms }
    How many times does the LED blink in 1 second?
  26. 26.⏱️ A program says “wait 7500 ms”. How many seconds is that? =
  27. 27.⏱️ repeat 6 times { buzzer ON; wait 600 ms; buzzer OFF; wait 200 ms }
    How many milliseconds does this take in all?
  28. 28.⏱️ loop forever { LED ON; wait 150 ms; LED OFF; wait 100 ms }
    How many times does the LED blink in 5 seconds?
  29. 29.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 200 ms }
    How many times does the LED blink in 3 seconds?
  30. 30.⏱️ loop forever { LED ON; wait 550 ms; LED OFF; wait 450 ms }
    How many times does the LED blink in 1 second?
  31. 31.⏱️ How many milliseconds is a wait of 2.6 seconds?
  32. 32.⏱️ repeat 9 times { buzzer ON; wait 100 ms; buzzer OFF; wait 700 ms }
    How many milliseconds does this take in all?
  33. 33.⏱️ A program says “wait 1250 ms”. How many seconds is that? =
  34. 34.⏱️ A program says “wait 3000 ms”. How many seconds is that? =
  35. 35.⏱️ loop forever { LED ON; wait 250 ms; LED OFF; wait 1750 ms }
    How many times does the LED blink in 20 seconds?
  36. 36.⏱️ How many milliseconds is a wait of 0.2 seconds?
  37. 37.⏱️ loop forever { LED ON; wait 300 ms; LED OFF; wait 900 ms }
    How many milliseconds does one blink (ON + OFF) take?
  38. 38.⏱️ A program says “wait 2250 ms”. How many seconds is that? =
  39. 39.⏱️ repeat 10 times { buzzer ON; wait 300 ms; buzzer OFF; wait 100 ms }
    How many milliseconds does this take in all?
  40. 40.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 150 ms }
    How many times does the LED blink in 3 seconds?

Answer key

  1. 1000
  2. 1100
  3. pauses for half a second
  4. 5
  5. 3600
  6. 4.75
  7. 1.5
  8. 16
  9. 4
  10. 2200
  11. 500
  12. 3.5
  13. 4800
  14. 5.5
  15. 350
  16. 1100
  17. 1700
  18. 3500
  19. 4800
  20. 4.5
  21. 20
  22. 900
  23. 8.75
  24. 2
  25. 2
  26. 7.5
  27. 4800
  28. 20
  29. 12
  30. 1
  31. 2600
  32. 7200
  33. 1.25
  34. 3
  35. 10
  36. 200
  37. 1200
  38. 2.25
  39. 4000
  40. 15

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