Chitti app logo

Chitti is better in the app

Coins, streaks and builds — free on Android & iOS

Get the app
Chitti logoChitti

Pen

4 Minutes · Module 3 - Simple drawing

Drawing with the robot pen in VEX VR for students, covering pen blocks and loops to draw a square on the Art Canvas. A Tamil robotics lesson.

  • Selecting Art Canvas in VEX VR and planning the square algorithm
  • Setting pen down and picking red color to draw a 500 mm side
  • Repeating four times with a repeat block and lifting the pen up
What this lesson teachesRead the lesson as text

Drawing with a robot pen in VEX VR allows a robot to trace lines and shapes on the digital Art Canvas. By lowering the pen, choosing a color, and guiding the robot through specific distances and turns, the robot creates precise geometric drawings like a square.

Planning the square algorithm

An algorithm is a step-by-step plan for the robot to follow. A square has four equal sides, making it a simple shape to program. The plan begins by setting the pen down onto the canvas and picking a drawing color. Next, the robot moves forward by 500 millimeters and turns right by 90 degrees. Doing these movement steps four times completes the square, after which the pen is lifted and the robot reverses out of the way.

Pen and drive blocks

  • The move robot pen down block lowers the drawing pen onto the canvas surface.
  • The set robot pen color block chooses the drawing color from four options, such as red or black.
  • The drive forward block moves the robot straight for a distance of 500 millimeters.
  • The turn right block pivots the robot by 90 degrees to create a square corner.

Using a repeat loop

A repeat block found in the control section runs the blocks placed inside it multiple times. Without a loop, a programmer would have to stack the forward drive and turning blocks four separate times. By changing the default value of the repeat block from 10 to 4, the robot repeats the 500-millimeter drive and the 90-degree right turn four times to form all four sides cleanly.

Lifting the pen and moving away

Once the square is complete, the robot must stop drawing so it does not leave extra marks. The move robot pen block is added from the looks menu and switched from down to up. Finally, a drive block is changed from forward to reverse for 200 millimeters, backing the robot away so the finished square can be viewed clearly on the Art Canvas.

Part of the course

ROBOTIC SIMULATION

View course →