Wizbot: Advanced Coding Buttons

Description

In this module, we will explore Wizbot’s advanced functions, enabling the creation of intricate curvy and angular shapes, as well as complex movements. We will begin by examining various turn functionalities.

Mastering Wizbot’s Turn Variations

Wizbot offers a range of turn variations achievable through specific button combinations, providing enhanced control for precise drawing activities.

1. 45° Turn

To execute a 45-degree turn:

  • Press the Forward button simultaneously with the desired directional button (either Left or Right).

For example, to perform a 45-degree left turn, press Forward + Left together.

2. 30° Turn

To execute a 30-degree turn:

  • Press the Reverse button simultaneously with the desired directional button (either Left or Right) for the 30-degree turn.CODING CARD

These fractional turns offer greater precision, which is particularly beneficial for nuanced drawing tasks.

Creating Arcs

For smooth, curved movements, Wizbot can create arcs:

  • Long-press either the Left or Right directional button.

Arcs are instrumental in generating circles, clouds, and a variety of other curvilinear shapes, significantly expanding drawing possibilities.

The Repeat Button: Automating Sequences

The Repeat button is a powerful feature utilized to automate the repetition of a sequence of movements.

Let’s demonstrate its functionality by drawing a square:

Step 1: Press Clear to clear any previous commands.
Step 2: Press the Repeat button. The subsequent commands added will form the repeatable sequence. For a square, we aim to repeat a “forward” movement and a “right turn.”

Step 3: After inputting “forward” and “right turn,” press the Repeat button again to specify the number of repetitions. Since we are drawing a square, we will press the Repeat button 4 times. Notice the distinct sound feedback indicating the number of repetitions.

Step 4: Attach the brush pen, ensuring the tip lightly touches the paper.

Step 5: Press Go.

Wizbot will execute the entire sequence the specified number of times.

Advanced Application: Drawing a Six-Point Star

Let’s apply these newly acquired skills to create a star shape, illustrating the significant power of the Repeat button.

To create a six-point star:

Step 1: Clear the playlist.

Step 2: Press Repeat.

Step 3: Input the following sequence:

  • Forward
  • 30-degree Left (by pressing Reverse and Left)
  • Again, 30-degree Left
  • Reverse
  • Right
  • 30-degree Right (by pressing Reverse and Right directional button)

Step 4: Press Repeat 6 times to repeat this complex sequence.

Step 5: Press Go.

 

Observe the impressive star created by Wizbot!

The Interrupt Feature: Responsive Programming

Wizbot also incorporates advanced features such as the Interrupt function, which is crucial for line following and line detection activities.

Understanding Interrupt

In essence, the Interrupt feature allows Wizbot to recognize a specific condition (e.g., detecting a black surface) as an urgent signal. Upon detecting this signal, Wizbot pauses its current task (the “Main Code”) to execute a predefined “urgent job,” after which it resumes its original Main Code. This functionality is analogous to pausing a primary activity to address an immediate, smaller task before returning to the main activity.

Implementing Interrupt

Let’s practice and examine the Interrupt feature:

  1. Main Code Input: First, program Wizbot with a series of steps that constitute your “Main Code.”
  2. Activate Interrupt: Press the Interrupt button.
  3. Urgent Task Input: Subsequently, input the commands that Wizbot should execute when it detects a black line. This constitutes the “urgent job.”
  4. Execute Code: Finally, press Go.

Wizbot will follow the Main Code. However, upon detecting a black strip, it will momentarily stop, perform the urgent task, and then continue executing the remainder of the Main Code.

Activity: Drawing a Rectangle Using Interrupt

Let’s create a rectangle utilizing the Interrupt feature.

Step 1: Position your Wizbot on a drawing sheet and arrange black strips to define the sides of the rectangle.

Step 2: Long-press the Forward button to input a “forever forward” step, which serves as the Main Code.

Step 3: Press the Interrupt button.

Step 4: Then, press the buttons for the urgent code; in this case, a right turn.

Step 5: Now, press the Go button to execute the code.

Conclusion

This concludes today’s power-packed session on Wizbot’s advanced features. We encourage you to experiment by combining commands, such as Arc + Repeat, to create an array of new and exciting shapes. Continue to mix and match commands, and most importantly, enjoy the process of coding!

Table of Contents