WEBVTT

NOTE
Introduction to Color Codes 08: Counters
Transcript by RoboGeeks: https://robogeeks.org/videos/K5IlriCFwDM

1
00:00:08.460 --> 00:00:17.560
Did you know Ozobot can count using color codes? In today's lesson, you'll use counter codes to track

2
00:00:18.000 --> 00:00:21.700
intersections, turns, color changes, and points.

3
00:00:22.440 --> 00:00:29.420
You will need an Ozobot, color code markers, the activity sheets, and a color codes chart.

4
00:00:29.920 --> 00:00:38.540
The Enable Crossing Counter programs Ozobot to stop moving after it crosses five

5
00:00:38.540 --> 00:00:46.780
intersections. An intersection might have two paths like a T intersection or three paths like a plus

6
00:00:46.780 --> 00:00:55.520
intersection. When it has counted five, it performs a completed action. Start on line one. Add the

7
00:00:55.520 --> 00:01:01.940
crossing counter code and a line switch right code to move to the grid. Then run your bot and count

8
00:01:01.940 --> 00:01:12.860
each intersection it crosses. Next is the Enable Turn Counter, which programs Ozobot

9
00:01:12.860 --> 00:01:19.460
to count left and right turns made at intersections, and will stop after five.

10
00:01:19.460 --> 00:01:27.320
Intersections where Ozobot continues straight are not counted. Turns at corners that are not

11
00:01:27.320 --> 00:01:36.620
intersections also do not count. Start on line two. Add the Enable Turn Counter in the first space

12
00:01:36.620 --> 00:01:43.220
and a line switch right in the second. Run your bot and count the turns it makes at intersections.

13
00:01:43.220 --> 00:01:55.650
Did it stop after five turns? The Enable Path Color Counter tracks color changes in the line and stops

14
00:01:55.650 --> 00:02:03.690
after five. The color segments must be more than two centimeters in length or they are not counted.

15
00:02:03.690 --> 00:02:14.980
Changes to or from black do not count. Start on line three and add the Enable Path Color Counter. Fill in

16
00:02:14.980 --> 00:02:22.660
the colors along the path as indicated. Run your bot and count each color change. What did your bot do

17
00:02:22.660 --> 00:02:35.810
after five color changes? Last is the Enable Point Counter, which works with point plus one and point minus one code.

18
00:02:35.810 --> 00:02:45.230
When used, Ozobot starts with five points and cannot go above five. Each point minus one subtracts a point

19
00:02:45.230 --> 00:02:55.490
and each point plus one adds a point unless it's already at five. Start on line four on the second activity sheet.

20
00:02:55.490 --> 00:03:05.630
Add the Enable Point Counter code first, then complete the path with point plus one and point minus one codes to keep the

21
00:03:05.630 --> 00:03:15.820
point count above zero until the very end. Pay close attention to the direction your bot is traveling when adding these

22
00:03:15.820 --> 00:03:25.580
codes. The plus one code follows one color order while the minus one code is the reverse. Run your bot and track how the

23
00:03:25.580 --> 00:03:39.580
points change until it reaches zero. Nice work! You programmed Ozobot to count intersections, turns, color changes, and points. Come back again for your final skills check.
