Introduction to Color Codes 08: Counters
Ozobot · Uploaded · 3:45 · Watch on YouTube
Ozobot presents a classroom lesson on its counter Color Codes, which make the robot count crossings, turns, path color changes, and points. Students follow activity sheets and markers to program the bot and watch how it stops or reacts when a count condition is met.
Transcript
Captions as a .vtt fileEmbed with the transcript
- 0:08Did you know Ozobot can count using color codes? In today's lesson, you'll use counter codes to track
- 0:18intersections, turns, color changes, and points.
- 0:22You will need an Ozobot, color code markers, the activity sheets, and a color codes chart.
- 0:29The Enable Crossing Counter programs Ozobot to stop moving after it crosses five
- 0:38intersections. An intersection might have two paths like a T intersection or three paths like a plus
- 0:46intersection. When it has counted five, it performs a completed action. Start on line one. Add the
- 0:55crossing counter code and a line switch right code to move to the grid. Then run your bot and count
- 1:01each intersection it crosses. Next is the Enable Turn Counter, which programs Ozobot
- 1:12to count left and right turns made at intersections, and will stop after five.
- 1:19Intersections where Ozobot continues straight are not counted. Turns at corners that are not
- 1:27intersections also do not count. Start on line two. Add the Enable Turn Counter in the first space
- 1:36and a line switch right in the second. Run your bot and count the turns it makes at intersections.
- 1:43Did it stop after five turns? The Enable Path Color Counter tracks color changes in the line and stops
- 1:55after five. The color segments must be more than two centimeters in length or they are not counted.
- 2:03Changes to or from black do not count. Start on line three and add the Enable Path Color Counter. Fill in
- 2:14the colors along the path as indicated. Run your bot and count each color change. What did your bot do
- 2:22after five color changes? Last is the Enable Point Counter, which works with point plus one and point minus one code.
- 2:35When used, Ozobot starts with five points and cannot go above five. Each point minus one subtracts a point
- 2:45and each point plus one adds a point unless it's already at five. Start on line four on the second activity sheet.
- 2:55Add the Enable Point Counter code first, then complete the path with point plus one and point minus one codes to keep the
- 3:05point count above zero until the very end. Pay close attention to the direction your bot is traveling when adding these
- 3:15codes. The plus one code follows one color order while the minus one code is the reverse. Run your bot and track how the
- 3:25points 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.
การสนทนา
อีเมลแจ้งเมื่อมีคนแสดงความคิดเห็น ไม่ต้องมีบัญชี
จดหมายข่าว
สมัครรับจดหมายข่าวฟรีของเรา พร้อมหุ่นยนต์รุ่นใหม่ ราคา และข่าวสารด้านหุ่นยนต์