Chitti app logo

Chitti is better in the app

Coins, streaks and builds — free on Android & iOS

Get the app
Chitti logoChitti

Introduction to Scratch

3 Minutes · Module 7 - Scratch

Scratch programming for kids: learn how Scratch works, add the Teachable Machine extension, and import models. A Tamil technology lesson.

  • What Scratch is and how sprites move using block programming
  • Adding the Teachable Machine extension to Scratch
  • Exporting a model link and importing it into Scratch
What this lesson teachesRead the lesson as text

Scratch is a visual block programming platform used to transform creative ideas into animations, playable games, and interactive applications. By linking Scratch with tools like Teachable Machine, learners can take machine learning models trained on images, sounds, or body poses and turn them into working software projects.

How Scratch works

Scratch allows users to build programs by connecting colorful blocks instead of writing traditional text code. The main workspace displays an on-screen character called a sprite on the right side. Programmers can snap blocks together to control the sprite, giving it instructions to move in any direction, perform dance actions, or sing songs. This makes it possible to turn imaginative concepts into animated scenes and functional games.

Adding the Teachable Machine extension

An extension is an add-on tool that introduces extra blocks to Scratch, allowing it to act as an advanced platform for artificial intelligence projects.

  • Click the extension button found at the bottom of the Scratch screen.
  • Locate the Teachable Machine extension, which is displayed as the very first option in the list.
  • Click on the extension to add its specialized machine learning blocks to the Scratch workspace.
  • Find the block labeled "use model paste URL here", click it, and drag it into the viewer area to prepare it for your model.

Exporting and importing a model

To use an artificial intelligence model inside Scratch, it must be exported from Teachable Machine and imported using a web link.

  • Open an existing project in Teachable Machine, such as a mask detection project, and ensure the model is trained.
  • Click the export model option to open the model export settings.
  • Under the upload share link section, click the button labeled upload my model to create a dedicated link.
  • Copy the generated web address and paste it directly into the "paste URL here" block in the Scratch workspace.
  • Scratch begins importing the model; clicking the block shows an exclamation mark change into a green tick mark once the model finishes loading.

Part of the course

A.I. with Teachable Machine

View course →