Learn the fundamentals of RCU operation.
Understand programming concepts and implement software operations.
In this lesson, we’ll explore a robot named “Drawing Board”.
This robot uses the Intellegence Storm (E6) controller’s screen as a digital canvas, allowing for a writable drawing experience. We’ll also cover how to navigate the coordinates and operate the E6 controller.
In real-world applications, this technology can be utilized in education, where we can create interactive art projects, or in design settings, allowing professionals to brainstorm and visualize concepts in a more engaging way.
Let’s dive in and discover how it all works!
X-axis: This is the horizontal line. It helps us move left or right.
Y-axis: This is the vertical line. It helps us move up or down.
Z-axis: The point where the X-axis and Y-axis intersect. This is usually (0, 0).
A pair of numbers that tells us the exact location of a point. For example (4, 10) means 4 steps to the right on X-axis and 10 steps up from the origin on Y-axis.
This coding block should be the first block of your code.
This coding block will reset your E6 RCU screen to black or other colors.
It acts like an infinite while (true) loop & It's part of the Control category.
It keeps executing the code inside it until the program is explicitly stopped
The If () Then block will run certain blocks of code only when a specific condition is true.
This block is be used to get the x-coordinate of a touch point.
This block is be used to get the y-coordinate of a touch point
This block reports True if the first value is greater than the second value and False otherwise.
This block returns True if at least one of its inputs are True; if neither of them are true, it returns False.
This block will draw a single point like a small pen in a given color directly on E6 RCU screen.
Try this program in RoboCode 4.0
To create variables of X and Y, Go to "Variables" and Click "Make a Variable"
Write a program for drawing board as following:
When you press the left button, the screen is reset.
Answer:
Write a program for drawing board as following:
When you press the right button, the color pen change from "White" color to "Yellow", "Purple" & "Red"
When you press the left button, the screen will reset to "Black"
Answer: