← Blink programs and delays lesson New set →

Electronics Worksheet: Blink Programs and Delays

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

Answer key

  1. 1000
  2. 30
  3. 13500
  4. pauses for half a second
  5. 1200
  6. 8
  7. 2100
  8. 8000
  9. 6300
  10. 3
  11. 4
  12. 1500
  13. 1
  14. 7.25
  15. 25
  16. 3300
  17. 0.75
  18. 20
  19. 8800
  20. 900
  21. 4100
  22. 15
  23. 2
  24. 6.5
  25. 1.75
  26. 3600
  27. 1200
  28. 1600
  29. 5.5
  30. 6
  31. 5
  32. 1200
  33. 8
  34. 2.5
  35. 2.75
  36. 4400
  37. 3
  38. 8000
  39. 3100
  40. 6

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