Chitti app logo

Chitti is better in the app

Coins, streaks and builds — free on Android & iOS

Get the app
Chitti logoChitti

Decoder

9 Minutes · Module 7 - Hidden Pixel Art

Coding a spy robot to decode hidden pixel messages for kids in a robotic simulation playground. A Tamil robotics lesson.

  • Exploring encoded blue and green pixel art messages on the map
  • Moving the robot and detecting green colors using the down eye
  • Using repeat loops to scan eight rows and print X on the monitor
What this lesson teachesRead the lesson as text

Decoding a hidden pixel message with a spy robot involves scanning a grid square by square, detecting colors, and printing matching symbols on a display screen. In this simulation playground, a robot scans an eight-by-eight grid of blue and green squares hidden under a brown area to reconstruct an image.

The encoded message grid

  • The simulation playground contains ten different encoded messages labeled from alphabet A to J, which can be selected using a location icon.
  • Each message consists of pixel art made up of blue and green squares, where each individual box measures 200 millimeters by 200 millimeters.
  • The robot uses its downward-facing sensor, called the down eye, to inspect the color of each square as it moves across the area.

Algorithm to decode one row

  • The program begins by clearing the monitor with a clear all rows block so previous output is wiped clean.
  • The robot drives forward 1600 millimeters to reach the top edge of the brown area and turns right 90 degrees to face along the first row.
  • An if-else block checks whether the down eye detects green; if green is detected, it prints an X on the monitor, and if blue is detected, it prints a blank space.
  • The robot drives forward 200 millimeters into the next square, and repeating this sequence eight times decodes one full horizontal row.

Moving across all eight rows

  • Once a row is completed, the robot reverses 1600 millimeters back to the start of the row.
  • It turns right 90 degrees, drives forward 200 millimeters, and turns left 90 degrees to position itself at the start of the next row.
  • A block moves the cursor on the monitor to the next line so the text output lines up with the scanned grid.
  • Placing these row-reset and scanning actions inside a repeat block set to eight allows the robot to decode all eight rows from top to bottom.

Checking and saving results

Once the program finishes running all eight rows, the monitor displays the decoded image made of printed X symbols. A magic stick button checks whether the robot successfully revealed the hidden message. The finished decoded design can then be downloaded and stored using the save button.

Part of the course

ROBOTIC SIMULATION

View course →