← Blink programs and delays lesson New set →

Electronics Worksheet: Blink Programs and Delays

Electronics lesson 23: Blink programs and delays · Set 354 · 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 450 ms; LED OFF; wait 200 ms }
    How many milliseconds does one blink (ON + OFF) take?
  2. 2.⏱️ How many milliseconds is a wait of 3.5 seconds?
  3. 3.⏱️ loop forever { LED ON; wait 350 ms; LED OFF; wait 150 ms }
    How many times does the LED blink in 6 seconds?
  4. 4.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 150 ms }
    How many times does the LED blink in 4 seconds?
  5. 5.⏱️ How many milliseconds are in 1 second? (a) 100 (b) 1000 (c) 10 (d) 60
  6. 6.⏱️ How many milliseconds is a wait of 4.7 seconds?
  7. 7.⏱️ A program says “wait 2750 ms”. How many seconds is that? =
  8. 8.⏱️ A program says “wait 6750 ms”. How many seconds is that? =
  9. 9.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 650 ms }
    How many milliseconds does one blink (ON + OFF) take?
  10. 10.⏱️ A program says “wait 250 ms”. How many seconds is that? =
  11. 11.⏱️ loop forever { LED ON; wait 500 ms; LED OFF; wait 700 ms }
    How many milliseconds does one blink (ON + OFF) take?
  12. 12.⏱️ repeat 6 times { buzzer ON; wait 200 ms; buzzer OFF; wait 300 ms }
    How many milliseconds does this take in all?
  13. 13.⏱️ What does “wait 500 ms” do? (a) turns the LED off (b) pauses for half a second (c) blinks 500 times (d) waits 500 seconds
  14. 14.⏱️ A program says “wait 9500 ms”. How many seconds is that? =
  15. 15.⏱️ How many milliseconds is a wait of 1.7 seconds?
  16. 16.⏱️ repeat 8 times { buzzer ON; wait 400 ms; buzzer OFF; wait 800 ms }
    How many milliseconds does this take in all?
  17. 17.⏱️ How many milliseconds is a wait of 0.1 seconds?
  18. 18.⏱️ loop forever { LED ON; wait 900 ms; LED OFF; wait 1100 ms }
    How many times does the LED blink in 8 seconds?
  19. 19.⏱️ How many milliseconds is a wait of 2.8 seconds?
  20. 20.⏱️ A program says “wait 8750 ms”. How many seconds is that? =
  21. 21.⏱️ How many milliseconds is a wait of 4.1 seconds?
  22. 22.⏱️ A program says “wait 8500 ms”. How many seconds is that? =
  23. 23.⏱️ loop forever { LED ON; wait 400 ms; LED OFF; wait 100 ms }
    How many times does the LED blink in 3 seconds?
  24. 24.⏱️ How many milliseconds is a wait of 3.4 seconds?
  25. 25.⏱️ repeat 4 times { buzzer ON; wait 100 ms; buzzer OFF; wait 600 ms }
    How many milliseconds does this take in all?
  26. 26.⏱️ How many milliseconds is a wait of 0.4 seconds?
  27. 27.⏱️ loop forever { LED ON; wait 300 ms; LED OFF; wait 100 ms }
    How many times does the LED blink in 14 seconds?
  28. 28.⏱️ repeat 3 times { buzzer ON; wait 800 ms; buzzer OFF; wait 800 ms }
    How many milliseconds does this take in all?
  29. 29.⏱️ How many milliseconds is a wait of 1.4 seconds?
  30. 30.⏱️ loop forever { LED ON; wait 450 ms; LED OFF; wait 550 ms }
    How many times does the LED blink in 7 seconds?
  31. 31.⏱️ A program says “wait 6250 ms”. How many seconds is that? =
  32. 32.⏱️ repeat 6 times { buzzer ON; wait 1000 ms; buzzer OFF; wait 300 ms }
    How many milliseconds does this take in all?
  33. 33.⏱️ repeat 3 times { buzzer ON; wait 800 ms; buzzer OFF; wait 300 ms }
    How many milliseconds does this take in all?
  34. 34.⏱️ loop forever { LED ON; wait 500 ms; LED OFF; wait 150 ms }
    How many milliseconds does one blink (ON + OFF) take?
  35. 35.⏱️ loop forever { LED ON; wait 50 ms; LED OFF; wait 200 ms }
    How many times does the LED blink in 2 seconds?
  36. 36.⏱️ How many milliseconds is a wait of 2.4 seconds?
  37. 37.⏱️ How many milliseconds is a wait of 0.3 seconds?
  38. 38.⏱️ repeat 7 times { buzzer ON; wait 1000 ms; buzzer OFF; wait 1000 ms }
    How many milliseconds does this take in all?
  39. 39.⏱️ loop forever { LED ON; wait 450 ms; LED OFF; wait 1000 ms }
    How many milliseconds does one blink (ON + OFF) take?
  40. 40.⏱️ A program says “wait 2000 ms”. How many seconds is that? =

Answer key

  1. 650
  2. 3500
  3. 12
  4. 20
  5. 1000
  6. 4700
  7. 2.75
  8. 6.75
  9. 700
  10. 0.25
  11. 1200
  12. 3000
  13. pauses for half a second
  14. 9.5
  15. 1700
  16. 9600
  17. 100
  18. 4
  19. 2800
  20. 8.75
  21. 4100
  22. 8.5
  23. 6
  24. 3400
  25. 2800
  26. 400
  27. 35
  28. 4800
  29. 1400
  30. 7
  31. 6.25
  32. 7800
  33. 3300
  34. 650
  35. 8
  36. 2400
  37. 300
  38. 14000
  39. 1450
  40. 2

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