Students will be able to:
|
Blink and Move at the Same Time In this lesson, you will learn how to make the robot blink its light while it moves by using the blinkLEDNB block. This video shows how the “NB” version lets the robot blink and do other things at the same time. You will also learn how to use the blinkWait block to make sure the blinking finishes before the program ends.
1. Blinking and Moving at the Same Time with the blinkLEDNB Block The blinkLED block makes the robot’s light blink on and off. This works on both virtual robots and physical Linkbot robots. But, the robot can only blink or move, one at a time. When you use the blinkLED block, RoboBlocky waits for the blinking to finish before doing anything else, like in Example 1. This is called a blocking block. It blocks the next part of the program from running until it is done. ![]()
![]()
![]()
![]()
|
|
This example makes the robot blink its light 3 times. The light stays on for 1 second and off for 1 second each time. The robot will finish blinking before it moves on to the next block, where it will drive forward for 4 inches. |
This example makes the robot blink its light 7 times. The light stays on for 1 second and off for 1 second each time. While blinking, the robot drives forward 8 inches, turns left, and then drives forward 4 more. |
This example makes the robot blink its light 8 times. The light stays on for half of a second and off for half of a second each time. While blinking, the robot drives forward 4 inches, turns left, and then drives forward 4 more. |
Grid Size: S M L | Simple View: | MinView: |
Coord: x-axis y-axis | Grid Lines: x-axis y-axis | |||
Grid: | 12x12 inches | 24x24 inches | 36x36 inches | |
72x72 inches | 96x96 inches | 192x192 inches | ||
1x1 inches | 2x2 inches | Fraction: | ||
xy-Range: | ||||
|
||||
|
||||
Quad: | 1 Quadrant | 4 Quadrants | 1&4 Quadrants | |
Units: | US Customary | Metric | Ruler: |
Labels: |
|
|
|
Font
px
|
|
Tics Lines: |
|
Width
px
|
Hash Lines: |
|
Width
px
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
(
,
in
) in
|
|
![]() |
|
|
|||||||||||
|
|||||||||||